Hello everyone,

     I've been playing with native scripts and have a few questions:

     Is there any notion of context for native scripts? 

    For example, is there a way to know that a method "runAsDouble", for 
example, is called for the last time? 
    I might, for instance, like to send some sort of statistics after a 
search is done.

    Is there any way to know how many documents the search produced, 
beforehand? 
    I might want to do some pre calculations based on this number before 
the actual scoring begins.
   
    Is there any way to get all the documents (or ids) somehow to process 
(score) them in bulk? 
    My scoring might depend on the search result, I might want to calculate 
an average of a search result field and base my scores on this number.

    I apologize in advance, if some of my questions are uninformed. I'm new 
to ES, trying to switch from Solr.

    Thank you,

    ZS




-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/48643754-67cc-497c-8c84-c1565dfcb867%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to