lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: nested faceting ?
Date Mon, 31 Jan 2011 17:41:10 GMT
I don't think you'll be able to do this with your present schema, the
information
isn't available in the faceting response, you'd get something like
<manufacturers>1100</manufacturers> and no way to know that 1,000
of them were accessories.

You could change the values in your index to something like
"accessories_manufacturer" and "device_manufacturer" and get at the
info that way.

If you're on trunk, grouping might help too.

I admit I'm on my way out the door so this is an "off the cuff" answer,
maybe
I'm overlooking the obvious (again!)....

Best
Erick

On Mon, Jan 31, 2011 at 11:13 AM, abhayd <ajdabholkar@hotmail.com> wrote:

>
> hi
>
> We already have faceting on our site.
>
> I am loading devices and accessories in solr index. deviceType indicates if
> its a device or accessory
>
> All other attributes are same for device and accessory. When query results
> come back I would like to display someting like
>
> Devices
> +Manucaturer (100)
>  - Samsung (50)
>  - Sharp (50)
> Accessories
> +Manufacturer(1000)
>  -Samsung (500)
>  -Apple(500)
>
> How would my query look like in this case?
> Is it possible with solr or do i need to implement this at applicaton level
> by parsing ersponse from SOLR?
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/nested-faceting-tp2389841p2389841.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message