lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-7614) Allow single prefix "phrase*" in complexphrase queryparser
Date Sat, 07 Jan 2017 06:18:59 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-7614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15806907#comment-15806907
] 

ASF subversion and git services commented on LUCENE-7614:
---------------------------------------------------------

Commit 52f2a77b78fc95bc98d664411cda63d58606df52 in lucene-solr's branch refs/heads/master
from [~mkhludnev]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=52f2a77 ]

LUCENE-7614: ComplexPhraseQueryParser ignores quotes around single terms phrases


> Allow single prefix "phrase*" in complexphrase queryparser 
> -----------------------------------------------------------
>
>                 Key: LUCENE-7614
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7614
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/queryparser
>            Reporter: Mikhail Khludnev
>            Priority: Minor
>             Fix For: master (7.0), 6.4
>
>         Attachments: LUCENE-7614.patch, LUCENE-7614.patch
>
>
> {quote}
> From	Otmar Caduff <ocad...@gmail.com>
> Subject	ComplexPhraseQueryParser with wildcards
> Date	Tue, 20 Dec 2016 13:55:42 GMT
> Hi,
> I have an index with a single document with a field "field" and textual
> content "johnny peters" and I am using
> org.apache.lucene.queryparser.complexPhrase.ComplexPhraseQueryParser to
> parse the query:
>    field: (john* peter)
> When searching with this query, I am getting the document as expected.
> However with this query:
>    field: ("john*" "peter")
> I am getting the following exception:
> Exception in thread "main" java.lang.IllegalArgumentException: Unknown
> query type "org.apache.lucene.search.PrefixQuery" found in phrase query
> string "john*"
> at
> org.apache.lucene.queryparser.complexPhrase.ComplexPhraseQueryParser$ComplexPhraseQuery.rewrite(ComplexPhraseQueryParser.java:268)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message