Script filter (not dynamic)

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 elasticsearch+unsubscribe@googlegroups.com.
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.

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 (ariasdelrio@gmail.com) 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 elasticsearch+unsubscribe@googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
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.

Oops, my script was not in the right place and was not found. I thought, ES
was trying to evaluate the expression "" 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 (arias...@gmail.com
<javascript:>) a écrit:

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

Elasticsearch Platform — Find real-time answers at scale | Elastic

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

Elasticsearch Platform — Find real-time answers at scale | Elastic

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 elasticsearc...@googlegroups.com <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 elasticsearch+unsubscribe@googlegroups.com.
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.