Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mayya-sharipova committed Aug 26, 2024
1 parent 6c24a94 commit 481df77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public static IntervalsSourceProvider fromXContent(XContentParser parser) throws
}
throw new ParsingException(
parser.getTokenLocation(),
"Unknown interval type [" + parser.currentName() + "], expecting one of [match, any_of, all_of, prefix, wildcard]"
"Unknown interval type [" + parser.currentName() +
"], expecting one of [match, any_of, all_of, prefix, wildcard, regexp, range]"
);
}

Expand Down
10 changes: 10 additions & 0 deletions server/src/main/java/org/elasticsearch/search/SearchModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,16 @@ public static List<NamedWriteableRegistry.Entry> getIntervalsSourceProviderNamed
IntervalsSourceProvider.class,
IntervalsSourceProvider.Fuzzy.NAME,
IntervalsSourceProvider.Fuzzy::new
),
new NamedWriteableRegistry.Entry(
IntervalsSourceProvider.class,
IntervalsSourceProvider.Regexp.NAME,
IntervalsSourceProvider.Regexp::new
),
new NamedWriteableRegistry.Entry(
IntervalsSourceProvider.class,
IntervalsSourceProvider.Range.NAME,
IntervalsSourceProvider.Range::new
)
);
}
Expand Down

0 comments on commit 481df77

Please sign in to comment.