lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MitchK <mitc...@web.de>
Subject Re: Custom SearchComponent to reset facet value counts after collapse
Date Mon, 03 May 2010 05:36:48 GMT

Good morning,

I do not have the time to read your full code very carefully at the moment.
I will do so later on, however: Have a look at simpleFacets. Consider the
method that creates the facetCounts. When I got it right in mind, the author
uses the IndexSearcher's numDoc(arg1, arg2) method. 
That's what you need here, I *think* (I never created such a feature).

There is one thing that may be tricky: Which field to quey against (in an
universal way - at the moment you need to do so when we are talking about
multiValued fields).



> If I use param (CollapseParams.COLLAPSE_FACET, "after") I get accurate
> counts for some facet values, while other facet values (from multi-value
> fields) are completely missing. 
> 
What you've said was shown in your example? Just want to know to verify,
that we see the same problem.

Kind regards
- Mitch
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Custom-SearchComponent-to-reset-facet-value-counts-after-collapse-tp770826p772544.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message