This is taxonomy/index design... One way is to have a series of fields by category:
TV - tv_size, resolution Computer - cpu, gpu Solr can have as many fields as you need, and if you do not store them into the index they are ignored. So if a user picks "TV", you pass these to Solr: q=*:*&facet=true&facet.field=tv_size&facet.field=resolution If a user picks "Computer", you pass these to Solr: q=*:*&facet=true&facet.field=cpu&facet.field=gpu The other option is to return ALL of the fields facet'd, but this is not recommended since you would certainly have performance issues depending on the number of fields. On 7/5/11 1:00 AM, "roySolr" <royrutten1...@gmail.com> wrote: >Hi, > >I know i can add components to my requesthandler. In this situation facets >are dependent of there category. So if a user choose for the category TV: > >Inch: >32 inch(5) >34 inch(3) >40 inch(1) > >Resolution: >Full HD(5) >HD ready(2) > >When a user search for category Computer: > >CPU: >Intel(12) >AMD(10) > >GPU: >Ati(5) >Nvidia(2) > >So i can't put it in my requesthandler as default. Every search there can >be >other facets. Do you understand what i mean? > >-- >View this message in context: >http://lucene.472066.n3.nabble.com/How-many-fields-can-SOLR-handle-tp30339 >10p3139833.html >Sent from the Solr - User mailing list archive at Nabble.com.