diff --git a/nb-adapters/adapter-qdrant/src/main/java/io/nosqlbench/adapter/qdrant/opdispensers/QdrantBaseOpDispenser.java b/nb-adapters/adapter-qdrant/src/main/java/io/nosqlbench/adapter/qdrant/opdispensers/QdrantBaseOpDispenser.java index 39f9edb87..6a1a0d10c 100644 --- a/nb-adapters/adapter-qdrant/src/main/java/io/nosqlbench/adapter/qdrant/opdispensers/QdrantBaseOpDispenser.java +++ b/nb-adapters/adapter-qdrant/src/main/java/io/nosqlbench/adapter/qdrant/opdispensers/QdrantBaseOpDispenser.java @@ -117,8 +117,7 @@ public abstract class QdrantBaseOpDispenser extends BaseOpDispenser mustClauseList.add(getIsNullCondition(filterFields)); case "has_id" -> mustClauseList.add(getHasIdCondition(filterFields)); case "nested" -> mustClauseList.add(getNestedCondition(filterFields)); - default -> - logger.warn("Filter condition '{}' is not supported", filterFields.get("condition").toString()); + default -> logger.warn("Filter condition '{}' is not supported", filterFields.get("condition")); } } case "must_not" -> { @@ -136,8 +135,7 @@ public abstract class QdrantBaseOpDispenser extends BaseOpDispenser mustNotClauseList.add(getIsEmptyCondition(filterFields)); case "is_null" -> mustNotClauseList.add(getIsNullCondition(filterFields)); case "has_id" -> mustClauseList.add(getHasIdCondition(filterFields)); - default -> - logger.warn("Filter condition '{}' is not supported", filterFields.get("condition").toString()); + default -> logger.warn("Filter condition '{}' is not supported", filterFields.get("condition")); } } case "should" -> { @@ -154,8 +152,7 @@ public abstract class QdrantBaseOpDispenser extends BaseOpDispenser shouldClauseList.add(getIsEmptyCondition(filterFields)); case "is_null" -> shouldClauseList.add(getIsNullCondition(filterFields)); case "has_id" -> mustClauseList.add(getHasIdCondition(filterFields)); - default -> - logger.warn("Filter condition '{}' is not supported", filterFields.get("condition").toString()); + default -> logger.warn("Filter condition '{}' is not supported", filterFields.get("condition")); } } default -> logger.error("Clause '{}' is not supported", filterFields.get("clause")); diff --git a/nb-adapters/adapter-qdrant/src/main/resources/activities/qdrant_vectors_live.yaml b/nb-adapters/adapter-qdrant/src/main/resources/activities/qdrant_vectors_live.yaml index 169207b2c..4be75b673 100644 --- a/nb-adapters/adapter-qdrant/src/main/resources/activities/qdrant_vectors_live.yaml +++ b/nb-adapters/adapter-qdrant/src/main/resources/activities/qdrant_vectors_live.yaml @@ -195,8 +195,8 @@ blocks: count_points_op: count_points: "TEMPLATE(collection)" exact: true - filter: # More complex filtering logic could be provided as follows + #filter: # - clause: "must" # condition: "match" # key: "field1" diff --git a/nb-adapters/adapter-qdrant/src/main/resources/qdrant.md b/nb-adapters/adapter-qdrant/src/main/resources/qdrant.md index 155cc2c57..9de5da4fb 100644 --- a/nb-adapters/adapter-qdrant/src/main/resources/qdrant.md +++ b/nb-adapters/adapter-qdrant/src/main/resources/qdrant.md @@ -33,6 +33,7 @@ The following are a couple high level API operations. * Count Points * Drop Collection * Search Points (vectors) +* Create Payload Index ## Examples