Apache Lucy query extension for writing your own Query classes