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

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

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