Skip to content

Allow field types to optimize phrase prefix queries (backport) #37575

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

Merged
merged 3 commits into from
Jan 18, 2019

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Jan 17, 2019

Backport of #37436 to run CI against it

jimczi and others added 2 commits January 17, 2019 16:59
This change adds a way to customize how phrase prefix queries should be created
on field types. The match phrase prefix query is exposed in field types in order
to allow optimizations based on the options set on the field.
For instance the text field uses the configured prefix field (if available) to
build a span near that mixes the original field and the prefix field on the last
position.
This change also contains a small refactoring of the match/multi_match query that
simplifies the interactions between the builders.

Closes elastic#31921
@jimczi jimczi added >non-issue :Search/Search Search-related issues that do not fall into other categories backport labels Jan 17, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@jimczi
Copy link
Contributor Author

jimczi commented Jan 17, 2019

run the gradle build tests 1

@jimczi
Copy link
Contributor Author

jimczi commented Jan 17, 2019

run the gradle build tests 2

@jimczi
Copy link
Contributor Author

jimczi commented Jan 17, 2019

run the gradle build tests 1

@jimczi
Copy link
Contributor Author

jimczi commented Jan 17, 2019

run the gradle build tests 2

@jimczi
Copy link
Contributor Author

jimczi commented Jan 17, 2019

run the gradle build tests 1

@jimczi
Copy link
Contributor Author

jimczi commented Jan 17, 2019

run the gradle build tests 2

3 similar comments
@jimczi
Copy link
Contributor Author

jimczi commented Jan 17, 2019

run the gradle build tests 2

@jimczi
Copy link
Contributor Author

jimczi commented Jan 18, 2019

run the gradle build tests 2

@jimczi
Copy link
Contributor Author

jimczi commented Jan 18, 2019

run the gradle build tests 2

@jimczi jimczi merged commit d1c8216 into elastic:6.x Jan 18, 2019
@jimczi jimczi deleted the field_match_phrase_prefix_6x branch January 18, 2019 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport >non-issue :Search/Search Search-related issues that do not fall into other categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants