Faceting Question

2011-01-24 Thread beaviebugeater

I am attempting to do facets on products similar to how hayneedle does it on
their online stores (they do NOT use Solr).   See:
http://www.clockstyle.com/wall-clocks/antiqued/1359+1429+4294885075.cfm

So simple example, my left nav might contain categories and 2 attributes,
brand and capacity:

Categories
- Cat1 (23) selected
- Cat2 (16)
- Cat3 (5)

Brand
-Brand1 (18)
-Brand2 (10)
-Brand3 (0)

Capacity
-Capacity1 (14)
-Capacity2 (9)


Each category or attribute value is represented with a checkbox and can be
selected or deselected.

The initial entry into this page has one category selected.  Other
categories can be selected which might change the number of products related
to each attribute value.  The number of products in each category never
changes.

I should also be able to select one or more attribute.  

Logically this would look something like:

(Cat1 Or Cat2) AND (Value1 OR Value2) AND (Value4)

Behind the scenes I have each category and attribute value represented by a
tag, which is just a numeric value.  So I search on the tags field only
and then facet on category, brand and capacity fields which are stored
separately.  

My current Solr query ends up looking something like:

fq={!tag=tag1}tags:( |1003| |1007|) AND tags:(
|10015|)version=2.2start=0rows=10indent=onfacet=onfacet.field={!ex=tag1}categoryfacet.field=capacityfacet.field=brand

This shows 2 categories being selected (1003 and 1007) and one attribute
value (10015). 

This partially works - the categories work fine.   The problem is, if I
select, say a brand attribute (as in the above example the 10015 tag) it
does filter to the selected categories AND the selected attribute BUT I'm
not able to broaden the search by selecting another attribute value.  

I want to display of products to be filtered to what I select, but I want to
be able to broaden the filter without having to back up.  

I feel like I'm close but still missing something.  Is there a way to
specify 2 tags that should be excluded from facet fields?

I hope this example makes sense.

Any help greatly appreciated.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Faceting-Question-tp2320542p2320542.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Faceting Question

2011-01-24 Thread beaviebugeater

Hmm, thanks for the response.  I'll play around with it and see if that
helps. 
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Faceting-Question-tp2320542p2321887.html
Sent from the Solr - User mailing list archive at Nabble.com.


Facets - ORing attribute values

2009-10-29 Thread beaviebugeater

I have implemented faceting with Solr for an ecommerce project.

However, I'd like to change the default behavior somewhat.  Visualize with
me the left nav that contains:

Attribute A
value1 (count)
value2 (count)
value3 (count)

Attribute B
value4 (count)
value5 (count)

The user interface has a checkbox for each attribute value.  As a checkbox
is checked, the list of products is refined to include those with the
selected attribute(s).

The default behavior is to AND all selected attributes.

What I would like is if I check value1, none of the counts for Attribute A
change, just the product result set.  If I then check value3 the effect is
that I'm saying products with values for Attribute A of value1 OR value3
(not AND).  Counts for Attribute B do change as usual.

If I then check value4, the effect is to return products with values for
Attribute A of (value1 OR value3) AND values for Attribute B of value5.  

You can see this sort of thing in action here:

http://www.beanbags.com/bean-bag-chairs/large/1618+1620+4225.cfm#N=1618+1620+4225+4229+4231Ns=Preferredview=36display=grid_view

Is this doable with Solr out of the box or do I need to build some logic
around Solr's faceting functionality?

Thanks.
Matt

-- 
View this message in context: 
http://www.nabble.com/Facets---ORing-attribute-values-tp26117763p26117763.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Facets - ORing attribute values

2009-10-29 Thread beaviebugeater

I'll dive in.  On the surface this looks like exactly what I described.

Thanks for the quick reply!!



Yonik Seeley-2 wrote:
 
 Perhaps something like this that's actually running Solr w/ multi-selecti?
 http://search.lucidimagination.com/
 
 http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters
 
 You just need a recent version of Solr 1.4
 
 -Yonik
 http://www.lucidimagination.com
 
 
 
 On Thu, Oct 29, 2009 at 1:51 PM, beaviebugeater mbr...@jdnholdings.com
 wrote:

 I have implemented faceting with Solr for an ecommerce project.

 However, I'd like to change the default behavior somewhat.  Visualize
 with
 me the left nav that contains:

 Attribute A
 value1 (count)
 value2 (count)
 value3 (count)

 Attribute B
 value4 (count)
 value5 (count)

 The user interface has a checkbox for each attribute value.  As a
 checkbox
 is checked, the list of products is refined to include those with the
 selected attribute(s).

 The default behavior is to AND all selected attributes.

 What I would like is if I check value1, none of the counts for Attribute
 A
 change, just the product result set.  If I then check value3 the effect
 is
 that I'm saying products with values for Attribute A of value1 OR value3
 (not AND).  Counts for Attribute B do change as usual.

 If I then check value4, the effect is to return products with values for
 Attribute A of (value1 OR value3) AND values for Attribute B of value5.

 You can see this sort of thing in action here:

 http://www.beanbags.com/bean-bag-chairs/large/1618+1620+4225.cfm#N=1618+1620+4225+4229+4231Ns=Preferredview=36display=grid_view

 Is this doable with Solr out of the box or do I need to build some logic
 around Solr's faceting functionality?

 Thanks.
 Matt

 --
 View this message in context:
 http://www.nabble.com/Facets---ORing-attribute-values-tp26117763p26117763.html
 Sent from the Solr - User mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Facets---ORing-attribute-values-tp26117763p26118170.html
Sent from the Solr - User mailing list archive at Nabble.com.