Skip to content

Commit

Permalink
Fix WeaviateContainerConnectionDetailsFactoryIT
Browse files Browse the repository at this point in the history
 - Use the WeaviateVectorStore.MetadataField types for assertion
  • Loading branch information
ilayaperumalg committed Dec 18, 2024
1 parent eccf33a commit be9d6a1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public void addAndSearchWithFilters() {
assertThat(this.properties.getFilterField()).hasSize(4);

assertThat(this.properties.getFilterField().get("country"))
.isEqualTo(WeaviateVectorStore.WeaviateVectorStoreConfig.MetadataField.Type.TEXT);
.isEqualTo(WeaviateVectorStore.MetadataField.Type.TEXT);
assertThat(this.properties.getFilterField().get("year"))
.isEqualTo(WeaviateVectorStore.WeaviateVectorStoreConfig.MetadataField.Type.NUMBER);
.isEqualTo(WeaviateVectorStore.MetadataField.Type.NUMBER);
assertThat(this.properties.getFilterField().get("active"))
.isEqualTo(WeaviateVectorStore.WeaviateVectorStoreConfig.MetadataField.Type.BOOLEAN);
.isEqualTo(WeaviateVectorStore.MetadataField.Type.BOOLEAN);
assertThat(this.properties.getFilterField().get("price"))
.isEqualTo(WeaviateVectorStore.WeaviateVectorStoreConfig.MetadataField.Type.NUMBER);
.isEqualTo(WeaviateVectorStore.MetadataField.Type.NUMBER);

var bgDocument = new Document("The World is Big and Salvation Lurks Around the Corner",
Map.of("country", "Bulgaria", "price", 3.14, "active", true, "year", 2020));
Expand Down

0 comments on commit be9d6a1

Please sign in to comment.