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.field">manu_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 { >> >> …. >> >> } >> > >