-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add prefix intervals source #43635
Add prefix intervals source #43635
Conversation
Pinging @elastic/es-search |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a small comment regarding the docs, LGTM otherwise
`use_field`:: | ||
If specified, then match intervals from this field rather than the top-level field. | ||
The `prefix` will be normalized using the search analyzer from this field, unless | ||
`analyzer` is specified separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a note regarding the index_prefixes
option of the text field since some queries will fail if they expand to more than 128
terms ?
This commit adds a prefix intervals source, allowing you to search for intervals that contain terms starting with a given prefix. The source can make use of the index_prefixes mapping option. Relates to #43198
This commit adds a
prefix
intervals source, allowing you to searchfor intervals that contain terms starting with a given prefix. The source
can make use of the
index_prefixes
mapping option.Relates to #43198