Skip to content

Commit

Permalink
Fixed compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Aug 27, 2021
1 parent fcbe3f8 commit a26f521
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void genFakerIndexIntrospection() throws Exception {
String FIELD_OUNCES = "ounces";
RedisModulesClient modulesClient = RedisModulesClient.create(REDIS_MODULES.getRedisURI());
StatefulRedisModulesConnection<String, String> connection = modulesClient.connect();
connection.sync().create(INDEX, CreateOptions.<String, String>builder().prefix("beer:").build(), Field.tag(FIELD_ID).sortable(true).build(), Field.text(FIELD_NAME).sortable(true).build(), Field.text(FIELD_STYLE).matcher(Field.Text.PhoneticMatcher.English).sortable(true).build(), Field.numeric(FIELD_ABV).sortable(true).build(), Field.numeric(FIELD_OUNCES).sortable(true).build());
connection.sync().create(INDEX, CreateOptions.<String, String>builder().prefix("beer:").build(), Field.tag(FIELD_ID).sortable().build(), Field.text(FIELD_NAME).sortable().build(), Field.text(FIELD_STYLE).matcher(Field.Text.PhoneticMatcher.English).sortable().build(), Field.numeric(FIELD_ABV).sortable().build(), Field.numeric(FIELD_OUNCES).sortable().build());
execute("import-infer", REDIS_MODULES);
SearchResults<String, String> results = connection.sync().search(INDEX, "*");
Assertions.assertEquals(1000, results.getCount());
Expand Down

0 comments on commit a26f521

Please sign in to comment.