Skip to content

Commit

Permalink
fix(index): Do not override the search analyzer for ngram fields (#8818)
Browse files Browse the repository at this point in the history
Co-authored-by: Indy Prentice <[email protected]>
  • Loading branch information
iprentic and Indy Prentice authored Sep 11, 2023
1 parent 0f3819b commit 1efc5d9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ private static Map<String, Object> getMappingsForField(@Nonnull final Searchable
String analyzerName = entry.getValue();
subFields.put(fieldName, ImmutableMap.of(
TYPE, TEXT,
ANALYZER, analyzerName,
SEARCH_ANALYZER, analyzerName
ANALYZER, analyzerName
));
}
}
Expand Down

0 comments on commit 1efc5d9

Please sign in to comment.