On Jun 7, 2011, at 06:22 , roySolr wrote:
> Every product has different facets. I have something like this in my schema:
> 
> <dynamicField name="*_FACET" type="facetType" indexed="true"  stored="true"
> multiValued="true"/>

One optimization, if you don't need the stored values, is to set 
stored="false".  Faceting is driven off the indexed terms, not the stored 
values.  But maybe you need the stored values (but maybe not).

> In SOLR i have now a lot of fields: CPU_FACET, GPU_FACET etc. How many
> fields can SOLR handle?
> 
> Another question: Is it possible to add the FACET fields automatically to my
> query? facet.field=*_FACET? Now i do first a request to a DB to get the
> FACET titles and add this to the request: facet.field=cpu_FACET,gpu_FACET.
> I'm affraid that *_FACET is a overkill solution.

Solr currently cannot do this automatically.  But....

One thing that I built in to Solr Flare (long live Solr Flare!) was a startup 
request to Solr's luke request handler (/admin/luke?numTerms=0) and got the 
list of field names.  Then, and I used *_facet similar to you, kept a list of 
all *_facet actual field names and used those in all subsequent search requests.

        Erik

Reply via email to