E - A supertype of all types in this scope.public interface SearchScope<E>
| Modifier and Type | Method and Description |
|---|---|
SearchAggregationFactory |
aggregation()
Initiate the building of a search aggregation that will be valid for the indexes in this scope.
|
MassIndexer |
massIndexer()
Create a
MassIndexer for the indexes mapped to types in this scope, or to any of their sub-types. |
MassIndexer |
massIndexer(String tenantId)
Create a
MassIndexer for the indexes mapped to types in this scope, or to any of their sub-types. |
SearchPredicateFactory |
predicate()
Initiate the building of a search predicate.
|
SearchProjectionFactory<EntityReference,E> |
projection()
Initiate the building of a search projection that will be valid for the indexes in this scope.
|
SearchSchemaManager |
schemaManager()
Create a
SearchSchemaManager for the indexes mapped to types in this scope, or to any of their sub-types. |
SearchSortFactory |
sort()
Initiate the building of a search sort.
|
SearchWorkspace |
workspace()
Create a
SearchWorkspace for the indexes mapped to types in this scope, or to any of their sub-types. |
SearchWorkspace |
workspace(String tenantId)
Create a
SearchWorkspace for the indexes mapped to types in this scope, or to any of their sub-types. |
SearchPredicateFactory predicate()
The predicate will only be valid for search queries
created using this scope or another scope instance targeting the same indexes.
Note this method is only necessary if you do not want to use lambda expressions,
since you can define predicates with lambdas
within the search query DSL,
removing the need to create separate objects to represent the predicates.
SearchPredicateFactorySearchSortFactory sort()
The sort will only be valid for search queries
created using this scope or another scope instance targeting the same indexes.
or a wider scope.
Note this method is only necessary if you do not want to use lambda expressions,
since you can define sorts with lambdas
within the search query DSL,
removing the need to create separate objects to represent the sorts.
SearchSortFactorySearchProjectionFactory<EntityReference,E> projection()
The projection will only be valid for search queries
created using this scope or another scope instance targeting the same indexes.
Note this method is only necessary if you do not want to use lambda expressions,
since you can SearchQuerySelectStep.select(Function) define projections with lambdas}
within the search query DSL,
removing the need to create separate objects to represent the projections.
SearchProjectionFactorySearchAggregationFactory aggregation()
The aggregation will only be usable in search queries
created using this scope or another scope instance targeting the same indexes.
Note this method is only necessary if you do not want to use lambda expressions,
since you can SearchQueryOptionsStep.aggregation(AggregationKey, SearchAggregation) define aggregations with lambdas}
within the search query DSL,
removing the need to create separate objects to represent the aggregation.
SearchAggregationFactorySearchSchemaManager schemaManager()
SearchSchemaManager for the indexes mapped to types in this scope, or to any of their sub-types.SearchSchemaManager.SearchWorkspace workspace()
SearchWorkspace for the indexes mapped to types in this scope, or to any of their sub-types.
This method only works for single-tenant applications.
If multi-tenancy is enabled, use workspace(String) instead.
SearchWorkspace.SearchWorkspace workspace(String tenantId)
SearchWorkspace for the indexes mapped to types in this scope, or to any of their sub-types.
This method only works for multi-tenant applications.
If multi-tenancy is disabled, use workspace() instead.
tenantId - The identifier of the tenant whose index content should be targeted.SearchWorkspace.MassIndexer massIndexer()
MassIndexer for the indexes mapped to types in this scope, or to any of their sub-types.
This method only works for single-tenant applications.
If multi-tenancy is enabled, use massIndexer(String) instead.
MassIndexer instances cannot be reused.
MassIndexer.MassIndexer massIndexer(String tenantId)
MassIndexer for the indexes mapped to types in this scope, or to any of their sub-types.
This method only works for multi-tenant applications.
If multi-tenancy is disabled, use massIndexer() instead.
MassIndexer instances cannot be reused.
tenantId - The identifier of the tenant whose index content should be targeted.MassIndexer.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.