Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15933

Curly bracket escape issue in Children Query Parser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.11.1
    • None
    • query parsers
    • None

    Description

      During query tests, I discovered a curly bracket escape issue with the Children Query Parser.

       

      I created a new collection with _default config set, then I uploaded these documents:

      documents.txt

      The execution of this query

      ({!child of=": -nest_path:*"}+name_s:"parentName001") AND name_s:"childName001"

      is OK, but this one

      ({!child of=": -nest_path:*"}+name_s:"parentName{002}") AND name_s:"childName002"

      returns an Exception:

      Cannot parse '+name_s:"parentName': Lexical error at line 1, column 20.  Encountered: <EOF> after : "\"parentName"

      I attached the full stack trace.

      Attachments

        1. documents.txt
          0.3 kB
          Alberto Ferrini
        2. fullstacktrace.txt
          10 kB
          Alberto Ferrini

        Activity

          People

            Unassigned Unassigned
            alberto.ferrini.mail@gmail.com Alberto Ferrini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: