| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -373,13 +373,7 @@ public async Task<bool> CreateCollectionPayloadIndex(string collectionName, Crea | |||
| 373 | 373 | ||
| 374 | 374 | var client = GetClient(); | |
| 375 | 375 | var schemaType = ConvertPayloadSchemaType(options.FieldSchemaType); | |
| 376 | - var result = await client.CreatePayloadIndexAsync(collectionName, options.FieldName, schemaType, indexParams: new() | ||
| 377 | - { | ||
| 378 | - IntegerIndexParams = new() | ||
| 379 | - { | ||
| 380 | - Range = true | ||
| 381 | - } | ||
| 382 | - }); | ||
| 376 | + var result = await client.CreatePayloadIndexAsync(collectionName, options.FieldName, schemaType); | ||
| 383 | 377 | return result.Status == UpdateStatus.Completed; | |
| 384 | 378 | } | |
| 385 | 379 | ||
@@ -561,7 +555,7 @@ public async Task<bool> DeleteCollectionShapshot(string collectionName, string s | |||
| 561 | 555 | var field = new FieldCondition | |
| 562 | 556 | { | |
| 563 | 557 | Key = f.Key, | |
| 564 | - Match = new Match { Text = f.Value }, | ||
| 558 | + Match = new Match { Text = f.Value } | ||
| 565 | 559 | }; | |
| 566 | 560 | ||
| 567 | 561 | if (bool.TryParse(f.Value, out var boolVal)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments