Hi Shalin,

As there is certainly the potential for several thousand different
attribute types across all of our category's I guess I will have to
manage them myself (was hoping for a short-cut or that I was missing a
trick) but no problem. Solr still seems to outperform the commercial
package we are using

Thanks

barry

-----Original Message-----
From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2008 16:06
To: solr-user@lucene.apache.org
Subject: Re: List of available facet fields returned with the query
results

Hi Barry,

If each category has an exclusive set of fields on which you want to
facet
on, then you can simply facet on all facet-able fields (across all
categories). The ones which are not present for the selected category
will
show up with zero facets which your front-end can suppress. However if
the
total number of such fields are very large, you may be better off
managing
the mappings yourself for performance reasons. But, as always, first
measure
then optimize :)


On Thu, Aug 14, 2008 at 7:12 PM, Barry Harding
<[EMAIL PROTECTED]>wrote:

> 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.
>



-- 
Regards,
Shalin Shekhar Mangar.

________________________________________________________________________
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.

Reply via email to