lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: [jira] Commented: (LUCENE-330) [PATCH] Use filter bits for next() and skipTo() in FilteredQuery
Date Sun, 05 Mar 2006 22:51:15 GMT

On Mar 5, 2006, at 5:41 PM, Erik Hatcher wrote:
> Yes, the SHOULD clauses do pass with an expected and actual result  
> of 2 documents.  However, changing both to MUST expects 0 documents  
> yet the actual number is 2.

To clarify, the actual number of 2 documents with both clauses a MUST  
is with the trunk codebase.  With the patch from the JIRA issue, an  
exception occurs.

	Erik


>
> 	Erik
>
>
> On Mar 5, 2006, at 1:24 PM, Paul Elschot wrote:
>
>> Erik,
>>
>> issues.apache.org is not available here at the moment.
>> This test passes:
>>
>>   public void testBoolean() throws Exception {
>>     BooleanQuery bq = new BooleanQuery();
>>     Query query = new FilteredQuery(new MatchAllDocsQuery(),
>>         new SingleDocTestFilter(0));
>>     bq.add(query, BooleanClause.Occur.SHOULD);
>>     query = new FilteredQuery(new MatchAllDocsQuery(),
>>         new SingleDocTestFilter(1));
>>     bq.add(query, BooleanClause.Occur.SHOULD);
>>     Hits hits = searcher.search(bq);
>>     assertEquals(2, hits.length());
>>     System.out.println(hits.id(0));
>>     System.out.println(hits.id(1));
>>   }
>>
>> Regards,
>> Paul Elschot
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org


---------------------------------------------------------------------
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