https://github.com/mrkamel/solr_precedence
Fixing Solr operator precedence
https://github.com/mrkamel/solr_precedence
Last synced: about 1 year ago
JSON representation
Fixing Solr operator precedence
- Host: GitHub
- URL: https://github.com/mrkamel/solr_precedence
- Owner: mrkamel
- Created: 2012-02-03T21:06:19.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-03T21:06:40.000Z (over 14 years ago)
- Last Synced: 2025-03-29T04:43:58.243Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SolrPrecedence
Fixing precendence for the OR operator of Solr's default query parser by using groups
## Example
irb> SolrPrecedence.fix "a OR b c"
=> "( a OR b ) c"
irb> SolrPrecedence.fix "a (b c) OR d"
=> "a ( ( b c ) OR d )"