You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Littlestar (JIRA)" <ji...@apache.org> on 2016/04/11 05:33:25 UTC
[jira] [Created] (LUCENE-7200) stop word/punctuation QueryParser
error(return all records)
Littlestar created LUCENE-7200:
----------------------------------
Summary: stop word/punctuation QueryParser error(return all records)
Key: LUCENE-7200
URL: https://issues.apache.org/jira/browse/LUCENE-7200
Project: Lucene - Core
Issue Type: Bug
Components: core/queryparser
Affects Versions: 5.4.1, 4.10.4
Reporter: Littlestar
when user input some stop words or punctuation.
It return all records??
@Test
public void test01() throws ParseException {
QueryParser parser = new QueryParser("test", new CJKAnalyzer());
Query parse = parser.parse("test:hello AND (a)");
//Query parse = parser.parse("test:hello AND (;)");
System.out.println(parse.toString());
}
Does "test:hello AND (a)" === "test:hello"
thanks?
--
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