Other than calling addFilterFacetAndGlobal(builder, params) in the
overridden AbstractFacetBuilder.toXContent method, is there any other code
that is required in order to support facet filters in custom facets?
Does the upcoming facet refactoring obsolete this question?
On Tuesday, February 26, 2013 3:31:21 PM UTC-8, Eric Jain wrote:
Other than calling addFilterFacetAndGlobal(builder, params) in the
overridden AbstractFacetBuilder.toXContent method, is there any other code
that is required in order to support facet filters in custom facets?
I think it does... here is the commit for the facet refactor:
It looks like the filter facet gets parsed and cached in:
src/main/java/org/elasticsearch/search/facet/FacetParseElement.java
It get applied in the abstract Facet Builder in the "facetFilter" and
"addFilterFacetAndGlobal" methods:
src/main/java/org/elasticsearch/search/facet/FacetBuilder.java
Looking at all the built-in facets, they all seem to duplicate the
facetFilter method though...
Does the upcoming facet refactoring obsolete this question?
On Tuesday, February 26, 2013 3:31:21 PM UTC-8, Eric Jain wrote:
Other than calling addFilterFacetAndGlobal(builder, params) in the
overridden AbstractFacetBuilder.toXContent method, is there any other code
that is required in order to support facet filters in custom facets?
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.