Native (java) scripts


(Cuarto Espada) #1

Hi, I installed ES 1.1.0 under ubuntu 14, and I need to make custom
functions for search, so I read
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html,
and
http://www.spacevatican.org/2012/5/12/elasticsearch-native-scripts-for-dummies/
,
but I didn't understand how ES finds the script, so if I have a jar file,
should I put it in a specific directory and define a path in
elasticsearch.yml file? I know I must write

script.native: mynativescript.type: org.spacevatican.elasticsearchexample.CustomScriptFactory

but I dont know where to place the script

--
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/4226cc43-cc36-4ec6-b96b-ae4c9fb4d1df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Ivan Brusic) #2

Elasticsearch will load any jar file in the $ES_HOME/lib directory at
startup.

Here is another resource:

--
Ivan

On Fri, May 23, 2014 at 2:28 AM, Cuarto Espada massacrator.wow@gmail.comwrote:

Hi, I installed ES 1.1.0 under ubuntu 14, and I need to make custom
functions for search, so I read
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html,
and
http://www.spacevatican.org/2012/5/12/elasticsearch-native-scripts-for-dummies/,
but I didn't understand how ES finds the script, so if I have a jar file,
should I put it in a specific directory and define a path in
elasticsearch.yml file? I know I must write

script.native: mynativescript.type: org.spacevatican.elasticsearchexample.CustomScriptFactory

but I dont know where to place the script

--
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/4226cc43-cc36-4ec6-b96b-ae4c9fb4d1df%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/4226cc43-cc36-4ec6-b96b-ae4c9fb4d1df%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/CALY%3DcQCedhNpU1q57JAZ23FB_upU86P%3Di8CxrGSQ76TOQXozkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3