Is there way to deliver custom facet type without patching ES? I developed
a new facet type needed for my project, but I have to patch FacetModule's
constructor (add to processors) to get it working.
It would be nice to declaratively add new facets thru configuration or
plugin infrastructure. Any plans on that?
You can add your facet using plugin infrastructure. If you are using 0.19
or later, all you have to do is add the following method to your Plugin
class:
public void onModule(FacetModule facetModule) {
facetModule.addFacetProcessor(MyFacetsProcessor.class);
}
Before 0.19 you can do the same thing using processModule method.
Igor
On Wednesday, April 18, 2012 12:31:31 PM UTC-4, Eric Jain wrote:
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.