Configurable QueryCache and QueryCachingPolicy in the Lucene backend

Description

Currently, it is not possible to attach your own implementation of "Query Cache" and "QueryCachingPolicy".

is followed up by

Activity

Show:

Waldemar Kłaczyński April 3, 2020 at 9:21 AM
Edited

I think this should be in the backend parameters, e.g. "... <backendname> .cache.query_cache_provider" and "... <backendname> .cache.query_caching_policy_provider", as implementatins "QueryCacheProvider" and "QueryCachingPolicyProvider". If not defined, load via java load factory service with the java "QueryCacheProvider" and "QueryCachingPolicyProvider". And the implementation of these factories shifts it to the original hibernate mechanism in "hibernate-search-mapper-orm" which downloads implementations from "StrategyRegistration".

Ultimately, if no option is defined, then default parameters from "IndexSearcher" will be used as usual.

This would enable building query caching policies and query caches using standard proven mechanisms from hibernate-orm.

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Created April 3, 2020 at 9:13 AM
Updated September 10, 2021 at 7:24 AM
Resolved February 25, 2021 at 1:21 PM