Lucene query to mongodb query


#1

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} ] }


#2

I found this:

it looks like what I’m looking for.