String statusMessage = "OK";
try {
AQuery query = new LazyParsedQuery(queryString);
if (null != payloadFields) {
for (String fieldName : payloadFields) {
query = new AndQuery(query, new PayloadQuery(fieldName));
}
}
if (null != rangeField) {
query = new AndQuery(query, new RangeQuery(rangeField,rangeStart,rangeEnd,true,true));
}
sr = searcher.search(query, start, hitsPerPage, group, groupSize, andFilter, sort);
} catch (SearcherException e) {
logger.error("SEARCHING",e);
status = 200;