: This perfectly fits my needs, but has one problem. Since the
: requestHandler flags are not passed through, XMLWriter throws a
: NullPointerException when it encounters iterator.score() when trying
: to write out a results.docList with scores. Adding the flags argument
Really?? ... that's we
Don't let me discourage you from having a "FacetHandler" interface that
supports generic faceting functionality using different rules (ie:
I don't get discouraged -- I just take advice from smart people when
they offer it :). I still do have my generic Facet handling
mechanism, because the Face
: After thinking over your comments, I removed the facetHandler
: completely, instead loading the Facets into a plain user cache, and
: put the output work in a utils class similar to SolrPluginUtils. It
: complicates the Term caching for me slightly, but it allows me to add
: a "FacetUtils.doSta
After thinking over your comments, I removed the facetHandler
completely, instead loading the Facets into a plain user cache, and
put the output work in a utils class similar to SolrPluginUtils. It
complicates the Term caching for me slightly, but it allows me to add
a "FacetUtils.doStandardFacet
that's a very good way to do it. You could also use
SolrIndexSearcher.numDocs -- it is esentially the same thing, but in the
future there may be optimizations that can be done to eliminate the
construction of one DocSet (if the other one already exists)
Thank you for the tip -- I will take a lo
:DocSet valueDocSet = req.getSearcher().getDocSet(item.getQuery());
:long count = valueDocSet.intersectionSize(results);
:
: Is this the preferred way to obtain such a count, or ithere another
that's a very good way to do it. You could also use
SolrIndexSearcher.numDocs -- it is
I have implemented faceted browsing in prototype I have been working
on with Solr, but I would like to ask some more experienced hands
about performance implications. Currently, I calculate the count of
a given facet as follows:
DocSet valueDocSet = req.getSearcher().getDocSet(item.getQue