lucene_query_parser
lucene_query_parser copied to clipboard
Add features and some leniency
- [x] add boosting for groups
- [x] add testing for boosting for groups
- [x] support
"some distance phrase" ~10(the spaces between)- [x] add tests
- [x] support
"some boost phrase" ^10(the spaces between)- [x] add tests
- [x] support
(some boost phrase) ^10(the spaces between)- [x] add tests
- [x] support negation with a bang (eg.
!"this term)- [x] add tests
- [x] spaces between operands should be optional
- [x] add tests
- [x] allow for other kinds of spaces (non-breaking space, zero width space)
- [x] add tests
- [x] add
&&and||- [x] add tests
- [ ] ~~support blank search (eg.
'')~~- [ ] ~~add tests~~
I am also working on a library to take this result and convert it into a composed elasticsearch query... will update here when it's complete
Seems fine so far. I didn't know lucene's parser was as lenient as that.