Constructor CachingWrapperFilter
CachingWrapperFilter(Filter)
New deletes are ignored by default, which gives higher cache hit rate on reopened readers. Most of the time this is safe, because the filter will be AND'd with a Query that fully enforces deletions. If instead you need this filter to always enforce deletions, pass either RECACHE or DYNAMIC.
Declaration
public CachingWrapperFilter(Filter filter)
Parameters
Type | Name | Description |
---|---|---|
Filter | filter | Filter to cache results of |
CachingWrapperFilter(Filter, CachingWrapperFilter.DeletesMode)
Expert: by default, the cached filter will be shared across reopened segments that only had changes to their deletions.
Declaration
public CachingWrapperFilter(Filter filter, CachingWrapperFilter.DeletesMode deletesMode)
Parameters
Type | Name | Description |
---|---|---|
Filter | filter | Filter to cache results of |
CachingWrapperFilter.DeletesMode | deletesMode |