lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Elschot (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (LUCENE-1345) Allow Filter as clause to BooleanQuery
Date Mon, 12 Jan 2009 16:40:02 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662993#action_12662993
] 

paul.elschot@xs4all.nl edited comment on LUCENE-1345 at 1/12/09 8:38 AM:
---------------------------------------------------------------

This:
bq. boolQuery.add(new TermQuery(..), SHOULD, NO_SCORE)
can be done (with the patch here applied) by:

boolQuery.add(new QueryWrapperFilter(new TermQuery(..), MUST) .

(SHOULD cannot be used for filters as clauses).

I'll post a working version of the patch within a few days. It's better to discuss on working
code than on ideas only.

      was (Author: paul.elschot@xs4all.nl):
    This:
bq. boolQuery.add(new TermQuery(..), SHOULD, NO_SCORE)
can be done (with the patch here applied) by:

boolQuery.add(new QueryWrapperFilter(new TermQuery(..), SHOULD) .

I'll post a working version of the patch within a few days. It's better to discuss on working
code than on ideas only.
  
> Allow Filter as clause to BooleanQuery
> --------------------------------------
>
>                 Key: LUCENE-1345
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1345
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Paul Elschot
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: booleansetperf.txt, DisjunctionDISI.java, DisjunctionDISI.patch,
DisjunctionDISI.patch, LUCENE-1345-Filter+Query-merge.patch, LUCENE-1345.patch, LUCENE-1345.patch,
OpenBitSetIteratorExperiment.java, TestIteratorPerf.java, TestIteratorPerf.java
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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