new QueryParser(.... ).parse (somequery);
it works only for string indexed fields. Say i have a field called count where count is a integer field (
QueryParser won't create a NumericRangeQuery as it has no way to know whether a field was indexed with NumericField. Just extend the QueryParser to handle this case.