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/12 02:45:25 UTC

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

     [ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org