lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Bialecki (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1396) Improve PhraseQuery.toString()
Date Fri, 19 Sep 2008 14:38:44 GMT

     [ 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


Mime
View raw message