You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2008/09/19 16:38:44 UTC

[jira] Updated: (LUCENE-1396) Improve PhraseQuery.toString()

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

Andrzej Bialecki  updated LUCENE-1396:
--------------------------------------

    Attachment: phraseQuery.patch

This patch improves toString(), and adds a unit test.

Gaps are represented as "?" and overlapping terms are separated by a vertial bar sign. Example:

- Query string:
 "hi this is a test"
- Parsed using StopFilter:
 "hi ? ? ? test"
- Added term "hello" at position 1:
 "hi hello ? ? test"
- Added term "hello" at position 0:
 "hi|hello ? ? ? test"

> Improve PhraseQuery.toString()
> ------------------------------
>
>                 Key: LUCENE-1396
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1396
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.4, 2.9
>            Reporter: Andrzej Bialecki 
>             Fix For: 2.4
>
>         Attachments: phraseQuery.patch
>
>
> PhraseQuery.toString() is overly simplistic, in that it doesn't correctly show phrases with gaps or overlapping terms. This may be misleading when presenting phrase queries built using complex analyzers and filters.

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