lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kaineci (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-700) endless loop when querying using BooleanQuery.
Date Thu, 26 Oct 2006 06:45:16 GMT
endless loop when querying using BooleanQuery.
----------------------------------------------

                 Key: LUCENE-700
                 URL: http://issues.apache.org/jira/browse/LUCENE-700
             Project: Lucene - Java
          Issue Type: Bug
          Components: Search
            Reporter: kaineci


the extreme case is: when querying term1, term2, term3 and current docid of inverted lists
of term1, term2, term3 are 0, i (larger than 0), BucketTable.SIZE, what could happen in search???However
this case should occur with low possibility.

                                         BucketTable table = new BucketTable();
		Random random = new Random();
		int tmpValue = random.nextInt(Integer.MAX_VALUE);
		table.newCollector().collect(0, 0);
		table.newCollector().collect(tmpValue, tmpValue);
		table.newCollector().collect(2048, 2048);
		Bucket bucket = table.first;
		while(bucket != null)
		{
			bucket = bucket.next;
			num++;
		}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message