Beispiel #1
0
 @Override
 public void clusterChanged(ClusterChangedEvent event) {
   // clear the query parser cache if the metadata (mappings) changed...
   if (event.metaDataChanged()) {
     queryParserCache.clear();
   }
 }
Beispiel #2
0
 @Override
 public void close() throws ElasticSearchException {
   filterCache.close();
   fieldDataCache.close();
   idCache.close();
   queryParserCache.close();
   if (clusterService != null) {
     clusterService.remove(this);
   }
 }
Beispiel #3
0
 public void clear() {
   filterCache.clear();
   fieldDataCache.clear();
   idCache.clear();
   queryParserCache.clear();
 }