Skip to content
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 an option to split on whitespace at query time on keyword fields #30393

Closed
jpountz opened this issue May 4, 2018 · 2 comments
Closed

Add an option to split on whitespace at query time on keyword fields #30393

jpountz opened this issue May 4, 2018 · 2 comments
Labels
>feature :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Comments

@jpountz
Copy link
Contributor

jpountz commented May 4, 2018

Follow-up of #30131. We should add a way to configure keyword fields so that text would be split on whitespace at query time. In FixitFriday it was suggested that we do this by adding something like a split_queries_on_whitespace flag that sets a whitespace analyzer as a search analyzer when set to true. We also considered making it possible to configure a search analyzer, but it felt too flexible for this simple need.

@jpountz jpountz added >feature help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types labels May 4, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@akotlar
Copy link

akotlar commented May 5, 2018

This relates to #23336 as well, and would serve as a perfectly good substitute for my use case

@mayya-sharipova mayya-sharipova removed the help wanted adoptme label May 23, 2018
jimczi added a commit that referenced this issue Jun 1, 2018
)

This change adds an option named `split_queries_on_whitespace` to the `keyword`
field type. When set to true full text queries (`match`, `multi_match`, `query_string`, ...) that target the field will split the input on whitespace to build the query terms. Defaults to `false`.
Closes #30393
jimczi added a commit that referenced this issue Jun 1, 2018
)

This change adds an option named `split_queries_on_whitespace` to the `keyword`
field type. When set to true full text queries (`match`, `multi_match`, `query_string`, ...) that target the field will split the input on whitespace to build the query terms. Defaults to `false`.
Closes #30393
@javanna javanna added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>feature :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

5 participants