You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Eric Jain <Er...@isb-sib.ch> on 2003/06/13 16:04:42 UTC

Limited range in RangeQuery

It seems that Lucene can't handle RangeQueries with a range of something
over 1024. Is this a limitation or a bug (or am I doing something
wrong)?

  +length:[null TO 01026] -> OK
  +length:[null TO 01027] -> BooleanQuery$TooManyClauses

  +mass:[0010000 TO 0011026] -> OK
  +mass:[0010000 TO 0011027] -> BooleanQuery$TooManyClauses

--
Eric Jain


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Limited range in RangeQuery

Posted by Eric Jain <Er...@isb-sib.ch>.
> It seems that Lucene can't handle RangeQueries with a range of
> something over 1024.

Solved:

  BooleanQuery.setMaxClauseCount(Integer.MAX_VALUE);

It seems Lucene needs to expand [1000 - 2000] into '1000 or 1001 or 1003
or ...' (assuming 1002 does not occur in the index). Correct?


--
Eric Jain


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org