You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2011/01/07 21:29:48 UTC

[jira] Resolved: (LUCENE-2848) DisjunctionMaxQuery toString uses single pipe to join sub terms

     [ 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