Hello,

I have a lucene CustomScoreQuery which I am wanting to execute with a lucene
Filter.  However the getDocListAndSet API provided by the SolrIndexSearcher
doesn't seem to allow Filters to be used along with Queries.  Instead it
seems that the Filters must be first converted to a DocSet.  Internally, the
SolrIndexSearcher then seems to call Searcher.search(Query, HitCollector),
which results in my CustomScoreQuery being called for every document
resulting from the query (which in my case is every document in the index),
instead of those resulting from the Query and the Filter.  Ideally
SolrIndexSearcher would call something like Searcher.search(Query, Filter,
Sort) (although I understand this particular method returns Hits, which is
deprecated).  Is there anyway to achieve this functionality without
extending the SolrIndexSearcher API? In other words, is it possible to run
the query on top of a filtered view of the index so the CustomScoreQuery
will not be called for every document in the it?

Thanks
Chris

Reply via email to