Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4705

Fulltext parser doesn't allow stand-alone hyphen in search expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.10, 1.6.0
    • query
    • None

    Description

      Afaics, the fulltext grammar spec [0] allows a stand-alone hyphen to be a simple word.

      So, it seems all of these are valid:

      1. A - B //hyphen being a separate word
      2. A - //hyphen being a separate word at the end
      3. A -B //hyphen working as negation operator on B
      4. A -"B C" //hyphen working as negation operator on "B C"

      Currently, case 1 and 2 are treated as invalid.

      [0]: https://docs.adobe.com/content/docs/en/spec/jcr/2.0/6_Query.html#6.7.19%20FullTextSearch

      Attachments

        Issue Links

          Activity

            People

              catholicon Vikas Saurabh
              catholicon Vikas Saurabh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: