Skip to content

Commit

Permalink
Fix NodeIndexingMetricsIT
Browse files Browse the repository at this point in the history
  • Loading branch information
albertzaharovits committed Jan 8, 2025
1 parent 116aad5 commit eb4b379
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,10 @@ public static final class TestAnalysisPlugin extends Plugin implements AnalysisP

@Override
public Map<String, AnalysisModule.AnalysisProvider<TokenFilterFactory>> getTokenFilters() {
return singletonMap("test_token_filter", (indexSettings, environment, name, settings) -> new AbstractTokenFilterFactory(name) {
@Override
return singletonMap(
"test_token_filter",
(indexSettings, environment, name, settings) -> new AbstractTokenFilterFactory(name, settings) {
@Override
public TokenStream create(TokenStream tokenStream) {
if (throwParsingError.get()) {
throw new MapperParsingException("simulate mapping parsing error");
Expand Down

0 comments on commit eb4b379

Please sign in to comment.