lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENE-3316) QueryParser fails when parsing input "type:A"
Date Fri, 15 Jul 2011 11:25:59 GMT

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

Robert Muir resolved LUCENE-3316.
---------------------------------

    Resolution: Not A Problem

if searching on "a" is important to you, then adjust your stopword set accordingly!

> QueryParser fails when parsing input "type:A"
> ---------------------------------------------
>
>                 Key: LUCENE-3316
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3316
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/queryparser
>    Affects Versions: 3.1
>            Reporter: Woelfle
>
> When parsing the input string "type:A AND type:B" the QueryParser returns a Query only
for "type:B"
> This can be reproduced with following code:
> StandardAnalyzer analyzer = new StandardAnalyzer(Version.LUCENE_31);
> QueryParser parser = new QueryParser(LuceneHelper.LUCENE_VERSION, "title", analyzer);
> Query query = parser.parse("type:A AND type:B");
> System.out.println(query);

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message