I've set up a ElasticSearch cluster that has a number of plugins installed.
Now I'm also setting up a test environment, where each JAVA test case will
start up its own ES Node. So I've configured my Maven pom with a
ElasticSearch dependency, and programmed my test case to use ES.
Now, if I want test using the plugins that are used in the "real"
environment, how do I do that? For example the BigDesk or Phonetic plugin.
I might want to graphically monitor my test during execution or test the
search behaviour using the phonetic plugin. How can I accomplish this so
that the plugins are used with the ES instance started by my test classes?
I've set up a Elasticsearch cluster that has a number of plugins
installed. Now I'm also setting up a test environment, where each JAVA
test case will start up its own ES Node. So I've configured my Maven
pom with a Elasticsearch dependency, and programmed my test case to
use ES.
Now, if I want test using the plugins that are used in the "real"
environment, how do I do that? For example the BigDesk or Phonetic
plugin. I might want to graphically monitor my test during execution
or test the search behaviour using the phonetic plugin. How can I
accomplish this so that the plugins are used with the ES instance
started by my test classes?
Thanks. I think I understand, but in the case of for example BigHead, where
I don't have the source, I guess I should define a dependency in maven,
right? And then reference the plugin in es-plugin.properties?
I've set up a Elasticsearch cluster that has a number of plugins
installed. Now I'm also setting up a test environment, where each JAVA test
case will start up its own ES Node. So I've configured my Maven pom with a
Elasticsearch dependency, and programmed my test case to use ES.
Now, if I want test using the plugins that are used in the "real"
environment, how do I do that? For example the BigDesk or Phonetic plugin.
I might want to graphically monitor my test during execution or test the
search behaviour using the phonetic plugin. How can I accomplish this so
that the plugins are used with the ES instance started by my test classes?
I'm not looking at developing my own plugin that shall be used by an
Elasticsearch installation. My goal is to run a test environment, where
each test case is running a Java ES Node Client, and I want this client to
be run using a number of plugins
Thanks. I think I understand, but in the case of for example BigHead,
where I don't have the source, I guess I should define a dependency in
maven, right? And then reference the plugin in es-plugin.properties?
I've set up a Elasticsearch cluster that has a number of plugins
installed. Now I'm also setting up a test environment, where each JAVA test
case will start up its own ES Node. So I've configured my Maven pom with a
Elasticsearch dependency, and programmed my test case to use ES.
Now, if I want test using the plugins that are used in the "real"
environment, how do I do that? For example the BigDesk or Phonetic plugin.
I might want to graphically monitor my test during execution or test the
search behaviour using the phonetic plugin. How can I accomplish this so
that the plugins are used with the ES instance started by my test classes?
I think I have managed to solve this. I'm able to create an index with a
"phonetic" analyzer by just stating
the elasticsearch-analysis-phonetic-dependency in my pom.xml.
I'm not looking at developing my own plugin that shall be used by an
Elasticsearch installation. My goal is to run a test environment, where
each test case is running a Java ES Node Client, and I want this client to
be run using a number of plugins
Thanks. I think I understand, but in the case of for example BigHead,
where I don't have the source, I guess I should define a dependency in
maven, right? And then reference the plugin in es-plugin.properties?
I've set up a Elasticsearch cluster that has a number of plugins
installed. Now I'm also setting up a test environment, where each JAVA test
case will start up its own ES Node. So I've configured my Maven pom with a
Elasticsearch dependency, and programmed my test case to use ES.
Now, if I want test using the plugins that are used in the "real"
environment, how do I do that? For example the BigDesk or Phonetic plugin.
I might want to graphically monitor my test during execution or test the
search behaviour using the phonetic plugin. How can I accomplish this so
that the plugins are used with the ES instance started by my test classes?
Yes, it's easy as that, thanks to Maven dependency resolution. The
Elasticsearch Java plugins are distributed as JARs via the Maven central
repo, so adding them as a dependency in pom.xml is all you have to do to
get their es-plugin.properties on your classpath. For other plugins, you
may need to add other Maven repos in the pom.xml as well.
Jörg
Am 22.02.13 15:21, schrieb Per Ekman:
I think I have managed to solve this. I'm able to create an index with
a "phonetic" analyzer by just stating
the elasticsearch-analysis-phonetic-dependency in my pom.xml.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.