Lucene query to mongodb query

Hi,

I wonder if there is a library that parses Lucene query syntax to Mongodb query.

example:

(title:"foo" AND body:"bar") OR title:foo_bar

becomes :

{ $or: [{ $and: [ { title:"foo"},{body:"bar" } ] } , {title:foo_bar} ] }

I found this:

it looks like what Iā€™m looking for.

1 Like