https://github.com/mrkamel/lucene_precedence
Fixing lucene's operator precedence
https://github.com/mrkamel/lucene_precedence
Last synced: about 1 month ago
JSON representation
Fixing lucene's operator precedence
- Host: GitHub
- URL: https://github.com/mrkamel/lucene_precedence
- Owner: mrkamel
- Created: 2013-09-10T19:26:30.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-10T19:26:59.000Z (almost 13 years ago)
- Last Synced: 2025-02-03T14:36:54.818Z (over 1 year ago)
- Language: Ruby
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LucenePrecedence
Fixing precendence for the OR operator of Lucene's default query parser by using groups
## Example
irb> LucenePrecedence.fix "a OR b c"
=> "( a OR b ) c"
irb> LucenePrecedence.fix "a (b c) OR d"
=> "a ( ( b c ) OR d )"