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

stop word/punctuation QueryParser error(return all records)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.10.4, 5.4.1
    • Fix Version/s: None
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated: