I add to this that you could be interested in looking at https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/plugins/PluginsService.java?source=cc#L397
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 3 juil. 2013 à 20:42, David Pilato david@pilato.fr a écrit :
You need to have this kind of file in your jar:
Elasticsearch will load it from /plugins/yourpluginname/yourpluginjar when you start the node.
Does it help?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 3 juil. 2013 à 20:19, Amit Singh amitsingh.kec@gmail.com a écrit :
Thanks Ivan for the reply.
I am pretty new to writing plugin for Elasticsearch.
I will try to plugin my facet as suggested by you.
I have few questions;
But how will the plugin be part of Elasticsearch.
Adding the custom project/jar to the lib of Elasticsearch work.
Or the project/jar needs to added differently to the class-path of Elasticsearch.
I have added a new TermsStatsStringFacetMulti internal facet.
How will the new streams be added to TransportFacetModule.
As it does not allow a hook point.
Thanks
Amit
On Wednesday, July 3, 2013 11:08:33 PM UTC+5:30, Amit Singh wrote:
Hi All,
I am trying to build a new facet for my requirement but could not find a way to plugin my facet in Elasticsearch.
I am using Elasticsearch 0.90.1 version.
What I did so far;
Created a facet extending the Facet.
Extended the facetbuilder with returning the new custom facet builder.
Create the parser , executor and other dependent classes.
When I try to execute my facet I get the below error.
Parse Failure [No facet type found for [multi_terms_stats]]];
After further looking at the exception.
FacetParseElement.java holds the list of facetParsers. And the custom facet needs to added there.
I am hoping after I add the custom parser to FacetModule, it would get added to list and start working.
But my requirement is to add the custom facet as separate project/jar. This way I would not be modifying the existing code, would be able to update Elasticsearch without any issues. I have looked through the forum but could not find any definitive guide to custom faceting.
Any help would be greatly appreciated.
Thanks
Amit
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.