From 6a0a9ff374454acfa65a01c62271af1eb864ace8 Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 6 Jan 2011 16:13:15 +0200 Subject: [PATCH] parse query with offset --- .../elasticsearch/index/shard/service/InternalIndexShard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java index 0aa79899f1a..2f5df139997 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java @@ -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)));