lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-9046) Fix wrong example in Javadoc of TermInSetQuery
Date Fri, 15 Nov 2019 18:02:00 GMT

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

ASF subversion and git services commented on LUCENE-9046:
---------------------------------------------------------

Commit 4ffd6ee7c2f88621f0463ba145b1646736022d3d in lucene-solr's branch refs/heads/branch_8x
from Namgyu Kim
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=4ffd6ee ]

LUCENE-9046: Fix wrong example in Javadoc of TermInSetQuery

Signed-off-by: Namgyu Kim <namgyu@apache.org>


> Fix wrong example in Javadoc of TermInSetQuery
> ----------------------------------------------
>
>                 Key: LUCENE-9046
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9046
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Namgyu Kim
>            Assignee: Namgyu Kim
>            Priority: Minor
>             Fix For: 8.x, master (9.0)
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> There is a wrong example in Javadoc of TermInSetQuery.
> This patch will be merged to the master and 8.x branch.
>  
> Before
> {code:java}
> Query q1 = new TermInSetQuery(new Term("field", "foo"), new Term("field", "bar"));
> BooleanQuery bq = new BooleanQuery();
> bq.add(new TermQuery(new Term("field", "foo")), Occur.SHOULD);
> bq.add(new TermQuery(new Term("field", "bar")), Occur.SHOULD);
> Query q2 = new ConstantScoreQuery(bq);
> {code}
> After
> {code:java}
> Query q1 = new TermInSetQuery("field", new BytesRef("foo"), new BytesRef("bar"));
> BooleanQuery bq = new BooleanQuery();
> bq.add(new TermQuery(new Term("field", "foo")), Occur.SHOULD);
> bq.add(new TermQuery(new Term("field", "bar")), Occur.SHOULD);
> Query q2 = new ConstantScoreQuery(bq);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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


Mime
View raw message