Re: Custom SearchComponent to reset facet value counts after collapse

2010-05-04 Thread MitchK
I would prefer extending the given CollapseComponent, because of performance-reasons. What you want to do sounds a bit like making things too complicate. There are two options I would prefer: 1. get the schema-information for every field you want to query against and define, whether you want to

Re: Custom SearchComponent to reset facet value counts after collapse

2010-05-04 Thread MitchK
When is the returned facet-info the expected info for your multiValued fields? Before or after your collapse? It could be possible, that you need to facet only on your multiValued fields before you are collapsing to retrive the right values. If this is the case, you need to integrate the before-co

Re: Custom SearchComponent to reset facet value counts after collapse

2010-05-02 Thread MitchK
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. Tha

Re: Custom SearchComponent to reset facet value counts after collapse

2010-05-02 Thread MitchK
Unfortunately this patch does not support multiValued-fields (as this is said by the author and some others that worked with that patch). I had a look on others, but they seem to have the same problem. What would I suggest, hmm... Out-of-the-box and at this time (it's late here in Germany) I got o

Re: Custom SearchComponent to reset facet value counts after collapse

2010-05-02 Thread MitchK
Kelly, did you have a look at the facetComponent - class and simpleFacets-class? Why do you want to reset the counts? What is your usecase? What is the difference between the facetComponent's return-value and your component? Kind regards - Mitch -- View this message in context: http://lucene.