We're updating the issue view to help you get more done. 

Multiple BrowseSelections based on MultiValueFacetHandler result in zero results

Description

When I add two BrowseSelections for Facets based on
MultiValueFacetHandler, I get zero results.

1 2 3 4 5 6 7 8 9 10 11 12 <bean id="categoryFacet" class="com.browseengine.bobo.facets.impl.MultiValueFacetHandler" parent="facetHandler"> <constructor-arg value="category" type="java.lang.String"/> <constructor-arg value="category.id" type="java.lang.String"/> </bean> <bean id="cityFacet" class="com.browseengine.bobo.facets.impl.MultiValueFacetHandler" parent="facetHandler"> <constructor-arg value="city" type="java.lang.String"/> <constructor-arg value="city.id" type="java.lang.String"/> </bean>

When I turn them into SimpleFacetHandler I get normal results

1 2 3 4 5 6 7 8 9 10 11 12 <bean id="categoryFacet" class="com.browseengine.bobo.facets.impl.SimpleFacetHandler" parent="facetHandler"> <constructor-arg value="category" type="java.lang.String"/> <constructor-arg value="category.id" type="java.lang.String"/> </bean> <bean id="cityFacet" class="com.browseengine.bobo.facets.impl.SimpleFacetHandler" parent="facetHandler"> <constructor-arg value="city" type="java.lang.String"/> <constructor-arg value="city.id" type="java.lang.String"/> </bean>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 BoboIndexReader boboReader = BoboIndexReader.getInstance(reader,handlerList); BrowseRequest br=new BrowseRequest(); br.setCount(10); br.setOffset(0); BrowseSelection sel=new BrowseSelection("city"); sel.addValue("10"); br.addSelection(sel); BrowseSelection sel=new BrowseSelection("category"); sel.addValue("15"); br.addSelection(sel); QueryParser parser = new QueryParser("contents",new StandardAnalyzer(Version.LUCENE_CURRENT)); Query q=parser.parse("cool car"); br.setQuery(q); FacetSpec catSpec = new FacetSpec(); catSpec.setOrderBy(FacetSortSpec.OrderValueDesc); catSpec.setMaxHitCount(20); FacetSpec citySpec = new FacetSpec(); citySpec.setMinHitCount(1); citySpec.setOrderBy(FacetSortSpec.OrderHitsDesc); br.setFacetSpec("category",catSpec); br.setFacetSpec("city",citySpec); SortField sort = new SortField("sortDate",SortField.LONG,true); br.setSort(new SortField[]{sort});

I'm using Bobo Browse 3.0.1/Lucene 3.5

Environment

None

Status

Assignee

Lei Wang

Reporter

Marc Schipperheyn

Labels

None

Components

Fix versions

Affects versions

3.0.2

Priority

Blocker