Re: Faceted Browsing Question/Discussion

2006-07-22 Thread Chris Hostetter
: 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

Re: Faceted Browsing Question/Discussion

2006-07-21 Thread Greg Ludington
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

Re: Faceted Browsing Question/Discussion

2006-07-21 Thread Chris Hostetter
: 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

Re: Faceted Browsing Question/Discussion

2006-07-20 Thread Greg Ludington
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

Re: Faceted Browsing Question/Discussion

2006-07-20 Thread Greg Ludington
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

Re: Faceted Browsing Question/Discussion

2006-07-20 Thread Chris Hostetter
: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

Faceted Browsing Question/Discussion

2006-07-19 Thread Greg Ludington
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