Interface ISearchContext
- All Known Implementing Classes:
ISearchContext.SearchContext
public interface ISearchContext
The
ISearchContext
interface allows search operations to reuse platform services such as the indexer.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription<T> T
accessBackendLevelCache
(Object key, Class<? extends T> clazz, IProvider<T> valueProvider) Allows search operations to cache values through the entire lifecycle of the local search backend.org.apache.log4j.Logger
Returns the engine-specific loggergetMatcher
(CallWithAdornment dependency) Returns a matcher for a selected query specification.Provides access to the generic query runtime context of the current engine
-
Method Details
-
getRuntimeContext
IQueryRuntimeContext getRuntimeContext()Provides access to the generic query runtime context of the current engine- Since:
- 1.7
-
getMatcher
Returns a matcher for a selected query specification.- Throws:
InterpreterRuntimeException
- Since:
- 1.5
-
accessBackendLevelCache
Allows search operations to cache values through the entire lifecycle of the local search backend. The values are calculated if not cached before using the given provider, or returned from the cache accordingly.- Since:
- 1.7
-
getLogger
org.apache.log4j.Logger getLogger()Returns the engine-specific logger- Since:
- 2.0
-