org.elasticsearch.index.cache.query.parser.resident
Class ResidentQueryParserCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.query.parser.resident.ResidentQueryParserCache
- All Implemented Interfaces:
- CloseableComponent, QueryParserCache, IndexComponent
public class ResidentQueryParserCache
- extends AbstractIndexComponent
- implements QueryParserCache
A small (by default) query parser cache mainly to not parse the same query string several times
if several shards exists on the same node.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResidentQueryParserCache
@Inject
public ResidentQueryParserCache(Index index,
@IndexSettings
Settings indexSettings)
get
public org.apache.lucene.search.Query get(QueryParserSettings queryString)
- Specified by:
get
in interface QueryParserCache
put
public void put(QueryParserSettings queryString,
org.apache.lucene.search.Query query)
- Specified by:
put
in interface QueryParserCache
clear
public void clear()
- Specified by:
clear
in interface QueryParserCache
close
public void close()
throws ElasticSearchException
- Specified by:
close
in interface CloseableComponent
- Throws:
ElasticSearchException
Copyright © 2009-2012. All Rights Reserved.