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