aspose file tools*
The moose likes Websphere and the fly likes Websphere Commerce 7 : SOLR and wcf:getData : Filtering on multiple facets at once Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere Commerce 7 : SOLR and wcf:getData : Filtering on multiple facets at once" Watch "Websphere Commerce 7 : SOLR and wcf:getData : Filtering on multiple facets at once" New topic
Author

Websphere Commerce 7 : SOLR and wcf:getData : Filtering on multiple facets at once

Nils Quairiat
Greenhorn

Joined: Sep 22, 2011
Posts: 6

Hello,

does anyone know if there exists (for WC7 latest feature pack) an out-of-the-box way to call SOLR in order to filter results with multiple facets at once ?
I can filter on one facet, then on another additional one and so on, but this requires a new service call everytime a new facet is added for filtering.
Example : with the

I can easily add a facet filter, but not a list of facets filters at once.

There exists a "advancedFacetList" parameter, but here is what I found out about it :

I made some testing with the advanced search form provided by the Madisons starter store.

In this form (and the corresponding wcf:getData call defined in SearchSetup.jspf), there are, notably, the following fields :
"manufacturer"
"minPrice"
"maxPrice"
"advancedFacetList"

If for example you use "Fedex" as manufacturer, "10" as minprice and "20" as maxprice, the following fields are filled like this :

- manufacturer : Fedex
- minPrice : 10
- maxPrice : 10
- advancedFacetList : mfName_ntk_cs:Fedex;price_EUR:10 20;


If I manually remove the values in the "manufacturer","minPrice" and "maxPrice" fields, but keep the "advancedFacetList" with the correct values, no filter is applied.

Therefore, one could ask : What is the goal of the "advancedFacetList" ? Can it really be used for filtering ?

Any info would be greatly appreciated.

Best regards,

N
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere Commerce 7 : SOLR and wcf:getData : Filtering on multiple facets at once