You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Vikas Saurabh (JIRA)" <ji...@apache.org> on 2016/09/10 13:54:20 UTC

[jira] [Resolved] (OAK-4705) Fulltext parser doesn't allow stand-alone hyphen in search expression

     [ https://issues.apache.org/jira/browse/OAK-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vikas Saurabh resolved OAK-4705.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.10

Fixed hyphen in [r1760168|https://svn.apache.org/r1760168]. [~tmueller], I've used your patch but removed the added invalid tests which were essentially about leading spaces - which, imo, should be supported... I'd open a new issue for that.

> Fulltext parser doesn't allow stand-alone hyphen in search expression
> ---------------------------------------------------------------------
>
>                 Key: OAK-4705
>                 URL: https://issues.apache.org/jira/browse/OAK-4705
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>            Priority: Minor
>             Fix For: 1.5.10
>
>
> Afaics, the fulltext grammar [spec|https://docs.adobe.com/content/docs/en/spec/jcr/2.0/6_Query.html#6.7.19%20FullTextSearch] \[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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)