[jira] [Updated] (LUCENE-7200) stop word/punctuation QueryParser error(return all records)

2016-04-11 Thread Littlestar (JIRA)

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

Littlestar updated LUCENE-7200:
---
Priority: Minor  (was: Major)

> 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: 4.10.4, 5.4.1
>Reporter: Littlestar
>Priority: Minor
>
> when user input some stop words or punctuation.
> It return all records??
> {code}
>   @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());
> }
> {code}
> Does "test:hello AND (a)"  === "test:hello"
> thanks?



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

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



[jira] [Updated] (LUCENE-7200) stop word/punctuation QueryParser error(return all records)

2016-04-11 Thread Littlestar (JIRA)

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

Littlestar updated LUCENE-7200:
---
Description: 
when user input some stop words or punctuation.
It return all records??
{code}
  @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());
}
{code}

Does "test:hello AND (a)"  === "test:hello"

thanks?

  was:
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?


> 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: 4.10.4, 5.4.1
>Reporter: Littlestar
>
> when user input some stop words or punctuation.
> It return all records??
> {code}
>   @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());
> }
> {code}
> Does "test:hello AND (a)"  === "test:hello"
> thanks?



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

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