Hi!
I am trying to implement a SearchScript to have a custom scoring algo. Some of the queries I use have filters on nested fields. So I have a few questions I didn't find answers on the documentation.
Also I am using ES 6.3.2 version.
- I assume the document I get from SearchScript.getDoc() will provide me with the full document and the nested documents will be accessible from there via getField(). Is that a correct assumption?
- What will be the type of the nested document field?
- Assuming there are some nested documents that don't fit the filter and some that fit the filter of the "filter" part of the query, is there a way I can distinguish them in the SearchScript I implement (other than applying the filter test logic again)?
Thanks in advance for the help!
Pierre