[ https://issues.apache.org/jira/browse/OAK-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davide Giannella closed OAK-4705. --------------------------------- bulk close for 1.5.10 > 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)