|
|
@@ -583,8 +583,8 @@ public abstract class AbstractQueryTestCase<QB extends AbstractQueryBuilder<QB>>
|
|
|
context.setAllowUnmappedFields(true);
|
|
|
QB firstQuery = createTestQueryBuilder();
|
|
|
QB controlQuery = copyQuery(firstQuery);
|
|
|
- SearchContext searchContext = getSearchContext(randomTypes, context);// only set search context for toQuery to be more realistic
|
|
|
-/* we use a private rewrite context here since we want the most realistic way of asserting that we are cachabel or not.
|
|
|
+ SearchContext searchContext = getSearchContext(randomTypes, context);
|
|
|
+ /* we use a private rewrite context here since we want the most realistic way of asserting that we are cacheable or not.
|
|
|
* We do it this way in SearchService where
|
|
|
* we first rewrite the query with a private context, then reset the context and then build the actual lucene query*/
|
|
|
QueryBuilder rewritten = rewriteQuery(firstQuery, new QueryShardContext(context));
|