Interface QueryCache

All Known Implementing Classes:
LRUQueryCache

public interface QueryCache
A cache for queries.
See Also:
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a wrapper around the provided weight that will cache matching docs per-segment accordingly to the given policy.
  • Method Details

    • doCache

      Weight doCache(Weight weight, QueryCachingPolicy policy)
      Return a wrapper around the provided weight that will cache matching docs per-segment accordingly to the given policy. NOTE: The returned weight will only be equivalent if scores are not needed.
      See Also: