Endeca navigation now works great, but I had to extend the UrlGenerator interface to have a method which can preserve old parameter values (i.e. facets=<FACET_FILTER1>||<FACET_FILTER2>) as Endeca does not filter based on a predetermined list of facets, but rather is much more data driven.
Am I correct in assuming your standard facet model is to have one parameter per facet (i.e. Author=Joe&Format=PDF)? Just trying to figure out how to do federation with other faceting searchcommands... Brian Frutchey Federal Solutions Architect M (703) 597-4875 E [email protected] Endeca 2100 Reston Parkway Ste 101 Reston, VA 20171 www.endeca.com find / analyze / understand -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mck Sent: Thursday, August 27, 2009 11:51 AM To: [email protected] Subject: Re: Selected Navigator access 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 | _______________________________________________ Kernel-development mailing list [email protected] http://sesat.no/mailman/listinfo/kernel-development
