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

Search-time extraction of fields #52840

Closed
3 tasks
jpountz opened this issue Feb 26, 2020 · 2 comments
Closed
3 tasks

Search-time extraction of fields #52840

jpountz opened this issue Feb 26, 2020 · 2 comments
Labels
>feature Meta :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@jpountz
Copy link
Contributor

jpountz commented Feb 26, 2020

There are 3 main use-cases for search-time extraction of fields:

  • Ad-hoc queries. If you need to run a one-off query, just run it using a script query.
  • Saving space. If you index lots of data where some fields are almost never queried, it might make more sense to not index these fields preemptively and just run a script whenever a query needs them. This will also make indexing cheaper.
  • Compatibility in time-based indices. If you have time-based indices and introduce a new field in an index template, existing indices won't have this field. Scripted fields might help give a consistent experience when querying this new field across the index pattern.

To make the experience better with scripted search, we're thinking of implementing the following changes:

@jpountz jpountz added >feature :Search/Search Search-related issues that do not fall into other categories Meta labels Feb 26, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@jpountz jpountz changed the title Improve scripted search experience Search-time extraction of fields Mar 2, 2020
@rjernst rjernst added the Team:Search Meta label for search team label May 4, 2020
@javanna
Copy link
Member

javanna commented Jul 9, 2020

Closing this in favour of #59332 which covers adding support for runtime fields.

@javanna javanna closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>feature Meta :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

No branches or pull requests

4 participants