@@ -48,6 +48,16 @@ public static IndexOptionsBuilder SetBackground(bool value)
48
48
return new IndexOptionsBuilder ( ) . SetBackground ( value ) ;
49
49
}
50
50
51
+ /// <summary>
52
+ /// Sets the location precision bits.
53
+ /// </summary>
54
+ /// <param name="value">The value.</param>
55
+ /// <returns>The builder (so method calls can be chained).</returns>
56
+ public static IndexOptionsBuilder SetBits ( int value )
57
+ {
58
+ return new IndexOptionsBuilder ( ) . SetBits ( value ) ;
59
+ }
60
+
51
61
/// <summary>
52
62
/// Sets the bucket size for geospatial haystack indexes.
53
63
/// </summary>
@@ -183,6 +193,17 @@ public IndexOptionsBuilder SetBackground(bool value)
183
193
return this ;
184
194
}
185
195
196
+ /// <summary>
197
+ /// Sets the location precision bits.
198
+ /// </summary>
199
+ /// <param name="value">The value.</param>
200
+ /// <returns>The builder (so method calls can be chained).</returns>
201
+ public IndexOptionsBuilder SetBits ( int value )
202
+ {
203
+ _document [ "bits" ] = value ;
204
+ return this ;
205
+ }
206
+
186
207
/// <summary>
187
208
/// Sets the bucket size for geospatial haystack indexes.
188
209
/// </summary>
@@ -352,6 +373,16 @@ public static IndexOptionsBuilder<TDocument> SetBackground(bool value)
352
373
return new IndexOptionsBuilder < TDocument > ( ) . SetBackground ( value ) ;
353
374
}
354
375
376
+ /// <summary>
377
+ /// Sets the location precision bits.
378
+ /// </summary>
379
+ /// <param name="value">The value.</param>
380
+ /// <returns>The builder (so method calls can be chained).</returns>
381
+ public static IndexOptionsBuilder < TDocument > SetBits ( int value )
382
+ {
383
+ return new IndexOptionsBuilder < TDocument > ( ) . SetBits ( value ) ;
384
+ }
385
+
355
386
/// <summary>
356
387
/// Sets the bucket size for geospatial haystack indexes.
357
388
/// </summary>
@@ -493,6 +524,17 @@ public IndexOptionsBuilder<TDocument> SetBackground(bool value)
493
524
return this ;
494
525
}
495
526
527
+ /// <summary>
528
+ /// Sets the location precision bits.
529
+ /// </summary>
530
+ /// <param name="value">The value.</param>
531
+ /// <returns>The builder (so method calls can be chained).</returns>
532
+ public IndexOptionsBuilder < TDocument > SetBits ( int value )
533
+ {
534
+ _indexOptionsBuilder . SetBits ( value ) ;
535
+ return this ;
536
+ }
537
+
496
538
/// <summary>
497
539
/// Sets the bucket size for geospatial haystack indexes.
498
540
/// </summary>
0 commit comments