Skip to content

Commit

Permalink
use parametrized integer index
Browse files Browse the repository at this point in the history
  • Loading branch information
generall committed Jun 20, 2024
1 parent 971347a commit 3d7c722
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/java/io/qdrant/client/PointsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -617,15 +617,16 @@ private void createAndSeedCollection(String collectionName) throws ExecutionExce

client.createCollectionAsync(request).get();

// ToDo: create params for integer index, so that only Range is enabled
//
// Collections.PayloadIndexParams params = Collections.PayloadIndexParamsOrBuilder()
Collections.PayloadIndexParams params = Collections.PayloadIndexParams.newBuilder()
.setIntegerIndexParams(
Collections.IntegerIndexParams.newBuilder().setLookup(false).setRange(true).build())
.build();

UpdateResult resultIndex = client.createPayloadIndexAsync(
testName,
"bar",
PayloadSchemaType.Integer,
null,
params,
true,
null,
null).get();
Expand Down

0 comments on commit 3d7c722

Please sign in to comment.