mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
don't cache count queries
This commit is contained in:
parent
def8caf7db
commit
2ea7423f3a
@ -324,7 +324,8 @@ public class InternalIndexShard extends AbstractIndexShardComponent implements I
|
||||
}
|
||||
Query query = queryParser.parse(querySource);
|
||||
// wrap it in filter, cache it, and constant score it
|
||||
query = new ConstantScoreQuery(filterCache.cache(new QueryWrapperFilter(query)));
|
||||
// Don't cache it, since it might be very different queries each time...
|
||||
// query = new ConstantScoreQuery(filterCache.cache(new QueryWrapperFilter(query)));
|
||||
query = filterByTypesIfNeeded(query, types);
|
||||
Engine.Searcher searcher = engine.searcher();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user