Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add narrow-query OR(|) expression #175

Merged
merged 1 commit into from
Mar 11, 2017
Merged

Conversation

t9md
Copy link
Owner

@t9md t9md commented Mar 11, 2017

#174
Experimentally add | as OR expression for narrow-query.

  • wordA|wordB matches items include wordA or wordB.
  • Can chain multiple OR, a|b|c matches items for a or b or c.
  • query a|b|c d means, matches items (a or b or c) and also maches d.
    • General rule: | is treated as OR, white-space is always treated as AND.
  • This OR handling is NOT happen when query word starts or ends with | char.
    • e.g. |a, a|, |a|b , a|b|, |a|b|, all searched as-is(literally), | is not evaluated as OR.

@t9md t9md merged commit a75dcf2 into master Mar 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant