lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Dutcher <kdutc...@gmail.com>
Subject Re: Too many required clauses for a BooleanQuery
Date Thu, 09 Feb 2006 21:46:32 GMT
Thanks Hoss... You're absolutely right!

Kevin


On 2/9/06, Chris Hostetter <hossman_lucene@fucit.org> wrote:
>
>
> : I need all the documents returned from the search and am manipulating
> the
> : results with a custom HitCollector, therefore I can't use filters.
>
> I don't understand this comment.  There are certianly methods in the
> Searchble interface that allow you to use both a Filter and a HitCollector
> together -- as for "need all the documents returned from the search" ...
> I'm not suggesting you filter out any docs your query doesn't allready
> restrict out because of hte required clauses.  I'm just saying that
> instead of a few dozen required clauses, you use a Filter like the one
> previously posted in this thread.  if you need to combine those "required"
> filters with other optional condition,s you cna do that using a
> ChainedFilter (or writting your own custom Filter that unions the BitSets
> yourself)
>
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message