Oops, my script was not in the right place and was not found. I thought, ES 
was trying to evaluate the expression "<script-name>" and I had to tell it 
that it was a script. Thanks.

El viernes, 4 de julio de 2014 10:55:30 UTC+2, David Pilato escribió:
>
> Did you try this?
>
> "filter" : {
>         "script" : {
>             "script" : "calculate-score"
>         }
>     }
>
>
>
> -- 
> *David Pilato* | *Technical Advocate* | *Elasticsearch.com*
> @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr 
> <https://twitter.com/elasticsearchfr>
>
>
> Le 4 juillet 2014 à 10:43:08, Guillermo Arias del Río ([email protected] 
> <javascript:>) 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] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/36585348-ba0e-4278-9b20-4c15906a8ef8%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/elasticsearch/36585348-ba0e-4278-9b20-4c15906a8ef8%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/70d24648-f0bb-4f64-aa62-ccb833344662%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to