Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7200

stop word/punctuation QueryParser error(return all records)

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.10.4, 5.4.1
    • None
    • core/queryparser
    • None
    • New

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            cnstar9988 Littlestar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: