An open API service indexing awesome lists of open source software.

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

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