Cache invalidating and recreation on TermsFilter values change


I am using the IndexQueryParserModule and in the plugin, I have my
TermsFilter implementation.

By default, since I am writing my own ABCFilterBuilder/Parser, I believe, I
can control the caching, and ES will, by default, not cache the Lucene
TermsFilter that I return. Correct me if I am wrong.

Can I specify a cache_key and have this explicitly cached by ES? It seems,
from other FilterParsers, that this may be possible.

Although, when the documents in the filter condition change, I want the
cache to be invalidated and a new filter created again, and then cached

Is that possible? Please let me know.


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit