On Thu, 2009-08-27 at 13:48 -0400, Brian Frutchey wrote:
> I am trying to duplicate the faceted navigation I see in the Solr and
> Fast SearchCommands, but am having some difficulty understanding how
> the search command gets the user-activated facet filters.  Both the
> Solr and Fast SearchCommand classes are getting their facets from the
> associated SearchCommandConfig class

The Facets coming from the CommandConfig classes are the configured
possible facets a command may have (and should be requesting so to give
the user the navigation list to choose from).
This is inside SolrSearchCommand.collectFacets(..)

What you want, making the command narrow to a user selected navigation
item is inside
SolrSearchCommand.createFacets(..)
 and SolrSimpleFacetToolkitImpl.createFacets(..)

Latter down the later class you can see the line:
 final StringDataObject facetValue = 
context.getDataModel().getParameters().getValue(facet.getId());

This is it.


btw. Facet handling in SolrSearchCommand and SolrSimpleFacetToolkitImpl
is the superior implementation being written fresh after the Facet API
was designed. The Fast search commands are much older.

~mck


-- 
"Living on Earth is expensive, but it does include a free trip around
the sun every year." Unknown 
| semb.wever.org | sesat.no | finn.no |

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Kernel-development mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-development

Reply via email to