I need to parse terms and operators from a lucene query in python.
The syntax is described here: http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
For example, I'd like to get the terms and operators from a query like this:
title:"The Right Way" AND text:go
Are there any existing modules with parsers for lucene queries in python?
I could write a parser using ply or pyparse, but I'd like to know if one exists already or if there are alternative solutions.