I'm new to elastic search and was wondering, once you define the script field with the menu syntax, Can you filter later, or see it in the query body as if it is another field?
I can not find any examples of this, while I have no mention of whether this is possible on the docs or not
Itemprop = "text">
This is a simple reason Not possible for: Script_fields are calculated during the last step of search (Fetch Step) and only to get your records (by default the Top 10). The script filter applies to all records that were not filtered by the previous filter and it occurs during the query stage, which occurs before the fetch phase. In other words, when the filters are applied, script_fields are not yet present.
No comments:
Post a Comment