@@ -97,11 +97,10 @@ internal override void AddFieldTypeArgs(List<object> args)
97
97
AddPhonetic ( args ) ;
98
98
AddWeight ( args ) ;
99
99
if ( WithSuffixTrie ) args . Add ( SearchArgs . WITHSUFFIXTRIE ) ;
100
- if ( Sortable ) args . Add ( FieldOptions . SORTABLE ) ;
101
100
if ( Unf ) args . Add ( SearchArgs . UNF ) ;
102
101
if ( MissingIndex ) args . Add ( FieldOptions . INDEXMISSING ) ;
103
102
if ( EmptyIndex ) args . Add ( FieldOptions . INDEXEMPTY ) ;
104
-
103
+ if ( Sortable ) args . Add ( FieldOptions . SORTABLE ) ;
105
104
}
106
105
107
106
private void AddWeight ( List < object > args )
@@ -165,10 +164,10 @@ internal override void AddFieldTypeArgs(List<object> args)
165
164
args . Add ( Separator ) ;
166
165
}
167
166
if ( CaseSensitive ) args . Add ( SearchArgs . CASESENSITIVE ) ;
168
- if ( Sortable ) args . Add ( FieldOptions . SORTABLE ) ;
169
167
if ( Unf ) args . Add ( SearchArgs . UNF ) ;
170
168
if ( MissingIndex ) args . Add ( FieldOptions . INDEXMISSING ) ;
171
169
if ( EmptyIndex ) args . Add ( FieldOptions . INDEXEMPTY ) ;
170
+ if ( Sortable ) args . Add ( FieldOptions . SORTABLE ) ;
172
171
}
173
172
}
174
173
@@ -192,10 +191,9 @@ internal GeoField(string name, bool sortable = false, bool noIndex = false, bool
192
191
internal override void AddFieldTypeArgs ( List < object > args )
193
192
{
194
193
if ( NoIndex ) args . Add ( SearchArgs . NOINDEX ) ;
195
- if ( Sortable ) args . Add ( FieldOptions . SORTABLE ) ;
196
194
if ( MissingIndex ) args . Add ( FieldOptions . INDEXMISSING ) ;
195
+ if ( Sortable ) args . Add ( FieldOptions . SORTABLE ) ;
197
196
}
198
-
199
197
}
200
198
201
199
public class GeoShapeField : Field
@@ -252,10 +250,9 @@ internal NumericField(string name, bool sortable = false, bool noIndex = false,
252
250
internal override void AddFieldTypeArgs ( List < object > args )
253
251
{
254
252
if ( NoIndex ) args . Add ( SearchArgs . NOINDEX ) ;
255
- if ( Sortable ) args . Add ( FieldOptions . SORTABLE ) ;
256
253
if ( MissingIndex ) args . Add ( FieldOptions . INDEXMISSING ) ;
254
+ if ( Sortable ) args . Add ( FieldOptions . SORTABLE ) ;
257
255
}
258
-
259
256
}
260
257
261
258
public class VectorField : Field
@@ -322,6 +319,10 @@ public Schema AddField(Field field)
322
319
/// <param name="unf">Set this to true to prevent the indexer from sorting on the normalized form.
323
320
/// Normalied form is the field sent to lower case with all diaretics removed</param>
324
321
/// <param name="withSuffixTrie">Keeps a suffix trie with all terms which match the suffix.</param>
322
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
323
+ /// Note the difference between a field with an empty value and a document with a missing value.
324
+ /// By default, missing values are not indexed.</param>
325
+ /// <param name="emptyIndex"> allows you to index and search for empty strings. By default, empty strings are not indexed.</param>
325
326
/// <returns>The <see cref="Schema"/> object.</returns>
326
327
public Schema AddTextField ( string name , double weight = 1.0 , bool sortable = false , bool unf = false , bool noStem = false ,
327
328
string ? phonetic = null , bool noIndex = false , bool withSuffixTrie = false , bool missingIndex = false , bool emptyIndex = false )
@@ -342,6 +343,10 @@ public Schema AddTextField(string name, double weight = 1.0, bool sortable = fal
342
343
/// <param name="unf">Set this to true to prevent the indexer from sorting on the normalized form.
343
344
/// Normalied form is the field sent to lower case with all diaretics removed</param>
344
345
/// <param name="withSuffixTrie">Keeps a suffix trie with all terms which match the suffix.</param>
346
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
347
+ /// Note the difference between a field with an empty value and a document with a missing value.
348
+ /// By default, missing values are not indexed.</param>
349
+ /// <param name="emptyIndex"> allows you to index and search for empty strings. By default, empty strings are not indexed.</param>
345
350
/// <returns>The <see cref="Schema"/> object.</returns>
346
351
public Schema AddTextField ( FieldName name , double weight = 1.0 , bool sortable = false , bool unf = false , bool noStem = false ,
347
352
string ? phonetic = null , bool noIndex = false , bool withSuffixTrie = false , bool missingIndex = false , bool emptyIndex = false )
@@ -355,6 +360,9 @@ public Schema AddTextField(FieldName name, double weight = 1.0, bool sortable =
355
360
/// </summary>
356
361
/// <param name="name">The field's name.</param>
357
362
/// <param name="system">The coordinate system to use.</param>
363
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
364
+ /// Note the difference between a field with an empty value and a document with a missing value.
365
+ /// By default, missing values are not indexed.</param>
358
366
/// <returns>The <see cref="Schema"/> object.</returns>
359
367
public Schema AddGeoShapeField ( string name , CoordinateSystem system , bool missingIndex = false )
360
368
{
@@ -367,6 +375,9 @@ public Schema AddGeoShapeField(string name, CoordinateSystem system, bool missin
367
375
/// </summary>
368
376
/// <param name="name">The field's name.</param>
369
377
/// <param name="system">The coordinate system to use.</param>
378
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
379
+ /// Note the difference between a field with an empty value and a document with a missing value.
380
+ /// By default, missing values are not indexed.</param>
370
381
/// <returns>The <see cref="Schema"/> object.</returns>
371
382
public Schema AddGeoShapeField ( FieldName name , CoordinateSystem system , bool missingIndex = false )
372
383
{
@@ -380,6 +391,9 @@ public Schema AddGeoShapeField(FieldName name, CoordinateSystem system, bool mis
380
391
/// <param name="name">The field's name.</param>
381
392
/// <param name="sortable">If true, the text field can be sorted.</param>
382
393
/// <param name="noIndex">Attributes can have the NOINDEX option, which means they will not be indexed.</param>
394
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
395
+ /// Note the difference between a field with an empty value and a document with a missing value.
396
+ /// By default, missing values are not indexed.</param>
383
397
/// <returns>The <see cref="Schema"/> object.</returns>
384
398
public Schema AddGeoField ( FieldName name , bool sortable = false , bool noIndex = false , bool missingIndex = false )
385
399
{
@@ -393,6 +407,9 @@ public Schema AddGeoField(FieldName name, bool sortable = false, bool noIndex =
393
407
/// <param name="name">The field's name.</param>
394
408
/// <param name="sortable">If true, the text field can be sorted.</param>
395
409
/// <param name="noIndex">Attributes can have the NOINDEX option, which means they will not be indexed.</param>
410
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
411
+ /// Note the difference between a field with an empty value and a document with a missing value.
412
+ /// By default, missing values are not indexed.</param>
396
413
/// <returns>The <see cref="Schema"/> object.</returns>
397
414
public Schema AddGeoField ( string name , bool sortable = false , bool noIndex = false , bool missingIndex = false )
398
415
{
@@ -406,6 +423,9 @@ public Schema AddGeoField(string name, bool sortable = false, bool noIndex = fal
406
423
/// <param name="name">The field's name.</param>
407
424
/// <param name="sortable">If true, the text field can be sorted.</param>
408
425
/// <param name="noIndex">Attributes can have the NOINDEX option, which means they will not be indexed.</param>
426
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
427
+ /// Note the difference between a field with an empty value and a document with a missing value.
428
+ /// By default, missing values are not indexed.</param>
409
429
/// <returns>The <see cref="Schema"/> object.</returns>
410
430
public Schema AddNumericField ( FieldName name , bool sortable = false , bool noIndex = false , bool missingIndex = false )
411
431
{
@@ -419,6 +439,9 @@ public Schema AddNumericField(FieldName name, bool sortable = false, bool noInde
419
439
/// <param name="name">The field's name.</param>
420
440
/// <param name="sortable">If true, the text field can be sorted.</param>
421
441
/// <param name="noIndex">Attributes can have the NOINDEX option, which means they will not be indexed.</param>
442
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
443
+ /// Note the difference between a field with an empty value and a document with a missing value.
444
+ /// By default, missing values are not indexed.</param>
422
445
/// <returns>The <see cref="Schema"/> object.</returns>
423
446
public Schema AddNumericField ( string name , bool sortable = false , bool noIndex = false , bool missingIndex = false )
424
447
{
@@ -437,6 +460,10 @@ public Schema AddNumericField(string name, bool sortable = false, bool noIndex =
437
460
/// <param name="caseSensitive">If true, Keeps the original letter cases of the tags.</param>
438
461
/// Normalied form is the field sent to lower case with all diaretics removed</param>
439
462
/// <param name="withSuffixTrie">Keeps a suffix trie with all terms which match the suffix.</param>
463
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
464
+ /// Note the difference between a field with an empty value and a document with a missing value.
465
+ /// By default, missing values are not indexed.</param>
466
+ /// <param name="emptyIndex"> allows you to index and search for empty strings. By default, empty strings are not indexed.</param>
440
467
/// <returns>The <see cref="Schema"/> object.</returns>
441
468
public Schema AddTagField ( FieldName name , bool sortable = false , bool unf = false ,
442
469
bool noIndex = false , string separator = "," ,
@@ -457,6 +484,10 @@ public Schema AddTagField(FieldName name, bool sortable = false, bool unf = fals
457
484
/// <param name="caseSensitive">If true, Keeps the original letter cases of the tags.</param>
458
485
/// Normalied form is the field sent to lower case with all diaretics removed</param>
459
486
/// <param name="withSuffixTrie">Keeps a suffix trie with all terms which match the suffix.</param>
487
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
488
+ /// Note the difference between a field with an empty value and a document with a missing value.
489
+ /// By default, missing values are not indexed.</param>
490
+ /// <param name="emptyIndex"> allows you to index and search for empty strings. By default, empty strings are not indexed.</param>
460
491
/// <returns>The <see cref="Schema"/> object.</returns>
461
492
public Schema AddTagField ( string name , bool sortable = false , bool unf = false ,
462
493
bool noIndex = false , string separator = "," ,
@@ -471,7 +502,10 @@ public Schema AddTagField(string name, bool sortable = false, bool unf = false,
471
502
/// </summary>
472
503
/// <param name="name">The field's name.</param>
473
504
/// <param name="algorithm">The vector similarity algorithm to use.</param>
474
- /// <param name="attribute">The algorithm attributes for the creation of the vector index.</param>
505
+ /// <param name="attributes">The algorithm attributes for the creation of the vector index.</param>
506
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
507
+ /// Note the difference between a field with an empty value and a document with a missing value.
508
+ /// By default, missing values are not indexed.</param>
475
509
/// <returns>The <see cref="Schema"/> object.</returns>
476
510
public Schema AddVectorField ( FieldName name , VectorAlgo algorithm , Dictionary < string , object > ? attributes = null , bool missingIndex = false )
477
511
{
@@ -484,7 +518,10 @@ public Schema AddVectorField(FieldName name, VectorAlgo algorithm, Dictionary<st
484
518
/// </summary>
485
519
/// <param name="name">The field's name.</param>
486
520
/// <param name="algorithm">The vector similarity algorithm to use.</param>
487
- /// <param name="attribute">The algorithm attributes for the creation of the vector index.</param>
521
+ /// <param name="attributes">The algorithm attributes for the creation of the vector index.</param>
522
+ /// <param name="missingIndex"> search for missing values, that is, documents that do not contain a specific field.
523
+ /// Note the difference between a field with an empty value and a document with a missing value.
524
+ /// By default, missing values are not indexed.</param>
488
525
/// <returns>The <see cref="Schema"/> object.</returns>
489
526
public Schema AddVectorField ( string name , VectorAlgo algorithm , Dictionary < string , object > ? attributes = null , bool missingIndex = false )
490
527
{
0 commit comments