Skip to content

Commit c7d6740

Browse files
committed
- add structured object-model for complex vector index creation, with specialized types for the 3 vector types
- add VectorField.Dimensions, .Type and .DistanceMetric - add mechanism to bake those into command without breaking existing usage - AddDirectAttributes, DirectAttributeCount - new type FlatVectorField - new type HnswVectorField - new type SvsVanamaVectorField - make it possible to extract approx command from SerializedCommand.ToString() - add implicit operator from string to FieldName to reduce new overloads needed - add new Schema.Add*VectorField APIs - add tests to demonstrate correct index construction
1 parent c6d7692 commit c7d6740

File tree

4 files changed

+446
-7
lines changed

4 files changed

+446
-7
lines changed

src/NRedisStack/Search/FieldName.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ public FieldName As(string attribute)
3636
this.Alias = attribute;
3737
return this;
3838
}
39+
40+
public static implicit operator FieldName(string name) => Of(name);
3941
}
4042
}

0 commit comments

Comments
 (0)