Skip to content

Commit

Permalink
adds vector-search fields to default serialization constructor (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
runeanielsen authored Aug 26, 2023
1 parent 17b6ab4 commit 7871502
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Typesense/Field.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ public Field(
bool? index = null,
bool? sort = null,
bool? infix = null,
string? locale = null)
string? locale = null,
int? numberOfDimensions = null,
AutoEmbeddingConfig? embed = null)
{
Name = name;
Type = type;
Expand All @@ -149,6 +151,8 @@ public Field(
Sort = sort;
Infix = infix;
Locale = locale;
NumberOfDimensions = numberOfDimensions;
Embed = embed;
}

[Obsolete("A better choice going forward is using the constructor with 'FieldType' enum instead.")]
Expand Down

0 comments on commit 7871502

Please sign in to comment.