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:
- A - B //hyphen being a separate word
- A - //hyphen being a separate word at the end
- A -B //hyphen working as negation operator on B
- 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