Hierarchical faceting with Date
Hi, I'm trying to perform a hierarchical (pivot) faceted search and it doesn't work with date (as one of the field). My questions are 1. Is this a supported feature or just a bug that needs to be addressed? 2. If it is not intended to be supported, what is the complexity involved in implementing it. FYI I'm using a SOLR 4.0 build from 09/30/2011. Regards Ravi Bulusu
Re: SOLR error with custom FacetComponent
Thanks for your response. I could solve my use case with your suggestion. -Ravi Bulusu On Sat, Sep 24, 2011 at 1:51 PM, Ravi Bulusu ravi.b...@gmail.com wrote: Erik, Unfortunately the facet fields are not static. The field are dynamic SOLR fields and are generated by different applications. The field names will be populated into a data store (like memcache) and facets have to be driven from that data store. I need to write a Custom FacetComponent which picks up the facet fields from the data store. Thanks for your response. -Ravi Bulusu Subject: Re: SOLR error with custom FacetComponent From: Erik Hatcher erik.hatcher@... Date: 2011-09-21 18:18 Why create a custom facet component for this? Simply add lines like this to your request handler(s): str name=facet.fieldmanu_exact/str either in defaults or appends sections. Erik On Wed, Sep 21, 2011 at 2:00 PM, Ravi Bulusu ravi.b...@gmail.com wrote: Hi All, I'm trying to write a custom SOLR facet component and I'm getting some errors when I deploy my code into the SOLR server. Can you please let me know what Im doing wrong? I appreciate your help on this issue. Thanks. *Issue* I'm getting an error saying Error instantiating SearchComponent My Custom Class is not a org.apache.solr.handler.component.SearchComponent. My custom class inherits from *FacetComponent* which extends from * SearchComponent*. My custom class is defined as follows… I implemented the process method to meet our functionality. We have some default facets that have to be sent every time, irrespective of the Query request. /** * * @author ravibulusu */ public class MyFacetComponent extends FacetComponent { …. }
Re: SOLR error with custom FacetComponent
Erik, Unfortunately the facet fields are not static. The field are dynamic SOLR fields and are generated by different applications. The field names will be populated into a data store (like memcache) and facets have to be driven from that data store. I need to write a Custom FacetComponent which picks up the facet fields from the data store. Thanks for your response. -Ravi Bulusu Subject: Re: SOLR error with custom FacetComponent From: Erik Hatcher erik.hatcher@... Date: 2011-09-21 18:18 Why create a custom facet component for this? Simply add lines like this to your request handler(s): str name=facet.fieldmanu_exact/str either in defaults or appends sections. Erik On Wed, Sep 21, 2011 at 2:00 PM, Ravi Bulusu ravi.b...@gmail.com wrote: Hi All, I'm trying to write a custom SOLR facet component and I'm getting some errors when I deploy my code into the SOLR server. Can you please let me know what Im doing wrong? I appreciate your help on this issue. Thanks. *Issue* I'm getting an error saying Error instantiating SearchComponent My Custom Class is not a org.apache.solr.handler.component.SearchComponent. My custom class inherits from *FacetComponent* which extends from * SearchComponent*. My custom class is defined as follows… I implemented the process method to meet our functionality. We have some default facets that have to be sent every time, irrespective of the Query request. /** * * @author ravibulusu */ public class MyFacetComponent extends FacetComponent { …. }
SOLR error with custom FacetComponent
Hi All, I'm trying to write a custom SOLR facet component and I'm getting some errors when I deploy my code into the SOLR server. Can you please let me know what Im doing wrong? I appreciate your help on this issue. Thanks. *Issue* I'm getting an error saying Error instantiating SearchComponent My Custom Class is not a org.apache.solr.handler.component.SearchComponent. My custom class inherits from *FacetComponent* which extends from * SearchComponent*. My custom class is defined as follows… I implemented the process method to meet our functionality. We have some default facets that have to be sent every time, irrespective of the Query request. /** * * @author ravibulusu */ public class MyFacetComponent extends FacetComponent { …. }