Did you try this?

"filter" : {
        "script" : {
            "script" : "calculate-score"
        }
    }


-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 4 juillet 2014 à 10:43:08, Guillermo Arias del Río ([email protected]) a 
écrit:

Hi, how can I specify a not dynamic script as a filter? The documentation shows 
how to specify a dynamic one:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-script-filter.html#query-dsl-script-filter

I would like to call a stored script, like in the example with the 
"calculate-score" function in:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html
--
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/36585348-ba0e-4278-9b20-4c15906a8ef8%40googlegroups.com.
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/etPan.53b66bf4.515f007c.2fae%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to