SearchScript score for nested docs

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.

  1. 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?
  2. What will be the type of the nested document field?
  3. 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!


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.