Support * wildcard to retrieve stored fields #10783
Labels
>enhancement
good first issue
low hanging fruit
help wanted
adoptme
:Search/Search
Search-related issues that do not fall into other categories
Currently you can retrieve stored fields of a search hit using the fields option.
However you cannot use wildcards.
Suppose I have document with several title fields such as "book_title", "chapter_title", "paragraph_title", "section_title" and I want to have all those title fields returned from a query.
It would be nice to have something like this:
No need to specify all the fields and when new title fields are added they are automatically returned.
Wildcard * is already supported when specifying the fields in a multi_match query or when specifying the fields to highlight for example.
A current workaround is using source-filtering, which does allow the * wildcard.
The text was updated successfully, but these errors were encountered: