[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]