lucene_query_parser icon indicating copy to clipboard operation
lucene_query_parser copied to clipboard

Add features and some leniency

Open dorilla opened this issue 9 years ago • 1 comments

  • [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

dorilla avatar Sep 14 '16 23:09 dorilla

Seems fine so far. I didn't know lucene's parser was as lenient as that.

zerowidth avatar Sep 16 '16 21:09 zerowidth