I guess you mean this? http://lucene.apache.org/java/2_3_2/queryparsersyntax.html#Range%20Searches
/src/search/range-query.lisp does seem to define range queries. But
I've never used them so I don't know if they work or to what extent.
I don't know what it has to do with extracting a substring from a
document field though.