Hi,

I am trying to do the following:

Where a query might return:

Facet 1
A
B
C

Facet 2
X
Y
Z

User selects Facet 1 option A. Normally this paradigm would contract the 
results as in a refining paradigm. That would be fine and the obvious UI 
change. But by doing so, Facet 2 option X is no longer available -- again 
because of the refining. Let's say I still wanted Facet 2 option X to be 
available to instead of refining, expands the results.

Normally, my query might look like:

q=query&fq=Facet 1:A (for the first part of my question. What I have done is 
return two sets of facet results, one for the main query and one for the 
refined query. That way I can still offer option X. What I don't know how to do 
is query beyond that. I have tried some ORs and ANDs  in my unit tests, but 
don't think this is the right way.

My question is whether there is a way in a single query to bring back all the 
original facets regardless of any facet refining. If not, give that I return 
two sets of facets - a refined set and the 'original' querys' facet set, how 
would I fashion this query?

My apologies if this is rookie, I have a few years of Solr under my belt, but 
can't think outside the refining and then expanding the result set with a facet 
query that was available in the original query results.

Thank you,

Tim Christensen






Reply via email to