Skip to content

Commit

Permalink
fix(search): reduce minimum length filter from 3 to 2 characters
Browse files Browse the repository at this point in the history
modify elasticsearch filter settings to allow shorter search terms
change min length parameter from 3 to 2 in SettingsBuilder.java

Improves search functionality by allowing shorter search terms in multilingual environments
  • Loading branch information
sokojh committed Oct 28, 2024
1 parent 0e4b3c1 commit 29e3f82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private static Map<String, Object> buildFilters() throws IOException {

filters.put(
MIN_LENGTH,
ImmutableMap.<String, Object>builder().put(TYPE, "length").put("min", "3").build());
ImmutableMap.<String, Object>builder().put(TYPE, "length").put("min", "2").build());

Resource stemOverride =
resourceResolver.getResource("classpath:elasticsearch/stem_override.txt");
Expand Down

0 comments on commit 29e3f82

Please sign in to comment.