Hi, I have solr setup to index technical data for a number of different types of products, and this means that different product have different facet fields available.
For example here would be a small example of the sort of data we are indexing, in reality there are between 10 and 20 facet fields per product dependent upon its category, but a user could perform a search across more than one category. A typical search would be: Stage 1 1) User types a keyword 2) The matched category's from that search are displayed 3) User chooses a category 4) All results that match that category and keyword are displayed and it's at this point I would like to display the available facets and values. Name: Microsoft Optical Mouse for PC DPI: 1200 Type: Laser Category: PC Price: 45.00 Name: Eee PC Storage Type: Flash Screen Size: 17 Category: Netbook Price: 200.00 And so on. So if I search for "PC" and then category "Netbook" I would like solr to be able to tell me what facet fields are available without me resorting to a database to store which facets fields are available to search for which products, is there any way to get SOLR to return as part of the results a list of the facets available for the current search results or even better could I get it to automatically do a facet query for each of those fields to allow drill down querys. The current commercial tool we use that we are hoping solr can replace is called "FactFinder" and does exactly this, but I do have to have drilled down a number of times before this occurs, to stop the search attempting to return facets for every item in the index. I suspect am I missing a trick here or making this more complicated than needed, any help or ideas much appreciated. Thanks Barry H ________________________________________________________________________ Misco is a division of Systemax Europe Ltd. Registered in Scotland Number 114143. Registered Office: Caledonian Exchange, 19a Canning Street, Edinburgh EH3 8EG. Telephone +44 (0)1933 686000.