Hello , Can you give a more elaborate explanation on the behavior of scoring you want ? I dont see any direct way to achieve this.
Also re-scoring might interest you - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-rescore.html Thanks Vineeth On Thu, Sep 11, 2014 at 11:19 PM, <[email protected]> wrote: > > 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 > <https://groups.google.com/d/msgid/elasticsearch/48643754-67cc-497c-8c84-c1565dfcb867%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAGdPd5mJ2jQ5ueZQepu8Z%2B0Sjo%3DwxhTh%3D3AvREOiJtKMaFOMXA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
