parse query with offset

This commit is contained in:
kimchy 2011-01-06 16:13:15 +02:00
parent b9e808f755
commit 6a0a9ff374
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ public class InternalIndexShard extends AbstractIndexShardComponent implements I
throw new IndexQueryParserMissingException(queryParserName);
}
}
Query query = queryParser.parse(querySource).query();
Query query = queryParser.parse(querySource, querySourceOffset, querySourceLength).query();
// wrap it in filter, cache it, and constant score it
// Don't cache it, since it might be very different queries each time...
// query = new ConstantScoreQuery(filterCache.cache(new QueryWrapperFilter(query)));