FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

clean code · AnonymousDotNet/BotSharp@c1fd5f3 · GitHub

Repository navigation

Commit c1fd5f3

Browse files
committed
clean code
1 parent 0c01014 commit c1fd5f3

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎src/Plugins/BotSharp.Plugin.Qdrant/QdrantDb.cs‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,7 @@ public async Task<bool> CreateCollectionPayloadIndex(string collectionName, Crea
373373

374374
var client = GetClient();
375375
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);
383377
return result.Status == UpdateStatus.Completed;
384378
}
385379

@@ -561,7 +555,7 @@ public async Task<bool> DeleteCollectionShapshot(string collectionName, string s
561555
var field = new FieldCondition
562556
{
563557
Key = f.Key,
564-
Match = new Match { Text = f.Value },
558+
Match = new Match { Text = f.Value }
565559
};
566560

567561
if (bool.TryParse(f.Value, out var boolVal))

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL