One more thing,
I cannot add the files as dependency explicitly as my Test infrastructure 
does not allow that. What i can do is to add the files to a lib directory 
in my project and when building (custom build scripts by my company) i can 
specify it to copy it over to a particular build directory. Then i would 
like ES to load it from that directory. (That's  why i asked the question)

On Tuesday, February 24, 2015 at 1:25:44 PM UTC-8, Kumar S wrote:
>
> Hi Mark, David,
> Thanks for your response.
>
> I tried the following
>
>    Settings.Builder settings = ImmutableSettings.builder()
>                 .put("path.data", "build/private")
>                 .put("index.store.type", "memory")
>                 .put("index.number_of_replicas", 0)
>                 .put("path.plugins", "/home/kumar/Downloads/"); //This 
> path contains the JAR file for elasticsearch-analysis-icu
>         
>  NodeBuilder.nodeBuilder().local(true).settings(settings).node();
>
> But to no avail...When i tried to use icu_collation in my filter, it just 
> throws an exception stating "filter not found"
>
> Custom Analyzer [ducet_sort] failed to find filter under name 
> [icu_collation]]
>
> Thanks,
> Kumar Subramanian.
>
> On Tuesday, February 24, 2015 at 12:10:04 PM UTC-8, Mark Walkom wrote:
>>
>> You just need to set path.plugins. You can do this via the config file or 
>> run ES from the CLI with -Des.path.plugins=$path
>>
>> On 25 February 2015 at 06:04, Kumar S <[email protected]> wrote:
>>
>>> Hi,
>>> How can i make ES load plugins from other than ES_HOME/plugins. Is there 
>>> a programmatic way of doing this. My test infrastructure does not allow me 
>>> to use Maven/yml files.
>>>
>>> What i have tried so far.
>>>
>>> 1) Tried to set path.plugins, plugin.types, plugins. + 
>>> PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true, "plugins." + 
>>> PluginsService.ES_PLUGIN_PROPERTIES_FILE_KEY, 
>>> "file:/home/kumarsub/Downloads/elasticsearch-analysis-icu-2.4.1.jar"
>>>
>>> I have been trying different combinations of the above and to no avail.
>>>
>>> I am sure there must be a way, it's just that i don't know :-)
>>>
>>> Your help is very much appreciated.
>>>
>>> Thanks,
>>> Kumar Subramanian.
>>>
>>> -- 
>>> 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/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%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/cb64361b-e728-4f13-bfac-d12e33ecd7f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to