jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikas Saurabh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-4705) Fulltext parser doesn't allow stand-alone hyphen in search expression
Date Fri, 02 Sep 2016 14:12:21 GMT

    [ https://issues.apache.org/jira/browse/OAK-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15458640#comment-15458640

Vikas Saurabh commented on OAK-4705:

bq. whether it would be better to support " -" (space before term: currently illegal)

I agree that this should be legal. I'd work for this too.

bq. whether it's a good idea to sort entries ("hello - world" becomes "- hello world") and
make them unique ("test test" becomes "test").

I think parser shouldn't play with ordering .. but I can see the rational that it allows consumer
of parsed output to potentially have forward seeks in their dictionaries. Otoh, I think making
unique or not shouldn't be parsers's concern at all.
I'd open a new issue to follow up on these aspects.

> 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
> 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

View raw message