lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENE-2848) DisjunctionMaxQuery toString uses single pipe to join sub terms
Date Fri, 07 Jan 2011 20:29:48 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hoss Man resolved LUCENE-2848.
------------------------------

    Resolution: Not A Problem

the "|" is intentional -- it is not a BooleanQuery so it doesn't generate a toString thta
might be confused for a BooleaQuery -- instead it generates a string that is compact, but
 distinct from other query types.

> DisjunctionMaxQuery toString uses single pipe to join sub terms
> ---------------------------------------------------------------
>
>                 Key: LUCENE-2848
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2848
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 3.0.3
>            Reporter: George Campbell
>            Priority: Minor
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> I'm not 100% sure because I'm relatively new to Lucene but I think this line in org.apache.lucene.search.DisjunctionMaxQuery.toString(String
field) should be changed from
>       if (i != numDisjunctions-1) buffer.append(" | ");
> to
>       if (i != numDisjunctions-1) buffer.append(" OR ");

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message