Class LuceneSearchIndexScopeImpl
- java.lang.Object
-
- org.hibernate.search.engine.backend.scope.spi.AbstractSearchIndexScope<LuceneSearchIndexScopeImpl,LuceneIndexModel,LuceneSearchIndexNodeContext,LuceneSearchIndexCompositeNodeContext>
-
- org.hibernate.search.backend.lucene.scope.model.impl.LuceneSearchIndexScopeImpl
-
- All Implemented Interfaces:
LuceneSearchAggregationIndexScope<LuceneSearchIndexScopeImpl>,LuceneSearchIndexScope<LuceneSearchIndexScopeImpl>,LuceneSearchPredicateIndexScope<LuceneSearchIndexScopeImpl>,LuceneSearchProjectionIndexScope<LuceneSearchIndexScopeImpl>,LuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>,LuceneSearchSortIndexScope<LuceneSearchIndexScopeImpl>,SearchAggregationIndexScope<LuceneSearchIndexScopeImpl>,SearchIndexScope<LuceneSearchIndexScopeImpl>,SearchPredicateIndexScope<LuceneSearchIndexScopeImpl>,SearchProjectionIndexScope<LuceneSearchIndexScopeImpl>,SearchQueryIndexScope<LuceneSearchIndexScopeImpl>,SearchSortIndexScope<LuceneSearchIndexScopeImpl>,EventContextProvider
public final class LuceneSearchIndexScopeImpl extends AbstractSearchIndexScope<LuceneSearchIndexScopeImpl,LuceneIndexModel,LuceneSearchIndexNodeContext,LuceneSearchIndexCompositeNodeContext> implements LuceneSearchIndexScope<LuceneSearchIndexScopeImpl>, LuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
-
Field Summary
-
Fields inherited from class org.hibernate.search.engine.backend.scope.spi.AbstractSearchIndexScope
mappingContext
-
-
Constructor Summary
Constructors Constructor Description LuceneSearchIndexScopeImpl(BackendMappingContext mappingContext, SearchBackendContext backendContext, LuceneAnalysisDefinitionRegistry analysisDefinitionRegistry, MultiTenancyStrategy multiTenancyStrategy, TimingSource timingSource, Set<? extends LuceneScopeIndexManagerContext> indexManagerContexts)
-
Method Summary
-
Methods inherited from class org.hibernate.search.engine.backend.scope.spi.AbstractSearchIndexScope
child, eventContext, field, fieldQueryElement, hibernateSearchIndexNames, identifier, indexesAndRootEventContext, mappedTypeContexts, mappingContext, projectionRegistry, root, rootQueryElement, toAbsolutePath, toDocumentValueConvertContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.util.common.reporting.spi.EventContextProvider
eventContext
-
Methods inherited from interface org.hibernate.search.backend.lucene.search.common.impl.LuceneSearchIndexScope
child
-
Methods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexScope
fieldQueryElement, hibernateSearchIndexNames, identifier, mappingContext, rootQueryElement, toAbsolutePath, toDocumentValueConvertContext
-
Methods inherited from interface org.hibernate.search.engine.search.projection.spi.SearchProjectionIndexScope
mappedTypeContexts, projectionRegistry
-
-
-
-
Constructor Detail
-
LuceneSearchIndexScopeImpl
public LuceneSearchIndexScopeImpl(BackendMappingContext mappingContext, SearchBackendContext backendContext, LuceneAnalysisDefinitionRegistry analysisDefinitionRegistry, MultiTenancyStrategy multiTenancyStrategy, TimingSource timingSource, Set<? extends LuceneScopeIndexManagerContext> indexManagerContexts)
-
-
Method Detail
-
self
protected LuceneSearchIndexScopeImpl self()
-
withRoot
public LuceneSearchIndexScopeImpl withRoot(String objectFieldPath)
- Specified by:
withRootin interfaceSearchIndexScope<LuceneSearchIndexScopeImpl>
-
predicateBuilders
public LuceneSearchPredicateBuilderFactory predicateBuilders()
- Specified by:
predicateBuildersin interfaceLuceneSearchPredicateIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
predicateBuildersin interfaceSearchPredicateIndexScope<LuceneSearchIndexScopeImpl>
-
sortBuilders
public LuceneSearchSortBuilderFactory sortBuilders()
- Specified by:
sortBuildersin interfaceLuceneSearchSortIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
sortBuildersin interfaceSearchSortIndexScope<LuceneSearchIndexScopeImpl>
-
projectionBuilders
public LuceneSearchProjectionBuilderFactory projectionBuilders()
- Specified by:
projectionBuildersin interfaceLuceneSearchProjectionIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
projectionBuildersin interfaceSearchProjectionIndexScope<LuceneSearchIndexScopeImpl>
-
aggregationBuilders
public LuceneSearchAggregationBuilderFactory aggregationBuilders()
- Specified by:
aggregationBuildersin interfaceLuceneSearchAggregationIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
aggregationBuildersin interfaceSearchAggregationIndexScope<LuceneSearchIndexScopeImpl>
-
select
public <P> LuceneSearchQueryBuilder<P> select(BackendSessionContext sessionContext, SearchLoadingContextBuilder<?,?> loadingContextBuilder, SearchProjection<P> projection)
- Specified by:
selectin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
selectin interfaceSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
predicateFactory
public LuceneSearchPredicateFactory predicateFactory()
- Specified by:
predicateFactoryin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
predicateFactoryin interfaceSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
sortFactory
public LuceneSearchSortFactory sortFactory()
- Specified by:
sortFactoryin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
sortFactoryin interfaceSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
projectionFactory
public <R,E> LuceneSearchProjectionFactory<R,E> projectionFactory()
- Specified by:
projectionFactoryin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
projectionFactoryin interfaceSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
aggregationFactory
public LuceneSearchAggregationFactory aggregationFactory()
- Specified by:
aggregationFactoryin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>- Specified by:
aggregationFactoryin interfaceSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
highlighterFactory
public SearchHighlighterFactory highlighterFactory()
- Specified by:
highlighterFactoryin interfaceSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
analysisDefinitionRegistry
public LuceneAnalysisDefinitionRegistry analysisDefinitionRegistry()
- Specified by:
analysisDefinitionRegistryin interfaceLuceneSearchIndexScope<LuceneSearchIndexScopeImpl>
-
filterOrNull
public org.apache.lucene.search.Query filterOrNull(String tenantId)
- Specified by:
filterOrNullin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
createTimeoutManager
public TimeoutManager createTimeoutManager(Long timeout, TimeUnit timeUnit, boolean exceptionOnTimeout)
- Specified by:
createTimeoutManagerin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
indexes
public Collection<LuceneScopeIndexManagerContext> indexes()
- Specified by:
indexesin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
mappedTypeNameToIndex
public Map<String,? extends LuceneSearchIndexContext> mappedTypeNameToIndex()
- Specified by:
mappedTypeNameToIndexin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
hasNestedDocuments
public boolean hasNestedDocuments()
- Specified by:
hasNestedDocumentsin interfaceLuceneSearchQueryIndexScope<LuceneSearchIndexScopeImpl>
-
createMultiIndexSearchRootContext
protected LuceneSearchIndexCompositeNodeContext createMultiIndexSearchRootContext(List<LuceneSearchIndexCompositeNodeContext> rootForEachIndex)
-
createMultiIndexSearchValueFieldContext
protected LuceneSearchIndexNodeContext createMultiIndexSearchValueFieldContext(String absolutePath, List<LuceneSearchIndexNodeContext> fieldForEachIndex)
-
createMultiIndexSearchObjectFieldContext
protected LuceneSearchIndexNodeContext createMultiIndexSearchObjectFieldContext(String absolutePath, List<LuceneSearchIndexNodeContext> fieldForEachIndex)
-
-