E - A supertype of all types in this scope.public interface SearchScope<E>
| Modifier and Type | Method and Description |
|---|---|
MassIndexer |
massIndexer()
Create a
MassIndexer for the indexes mapped to types in this scope, or to any of their sub-types. |
SearchPredicateFactoryContext |
predicate()
Initiate the building of a search predicate.
|
SearchProjectionFactoryContext<EntityReference,E> |
projection()
Initiate the building of a search projection that will be valid for the indexes in this scope.
|
HibernateOrmSearchQueryResultDefinitionContext<E> |
search()
Initiate the building of a search query.
|
SearchSortFactoryContext |
sort()
Initiate the building of a search sort.
|
SearchWriter |
writer()
Create a
SearchWriter for the indexes mapped to types in this scope, or to any of their sub-types. |
HibernateOrmSearchQueryResultDefinitionContext<E> search()
The query will target the indexes mapped to types in this scope, or to any of their sub-types.
get the resulting query.HibernateOrmSearchQueryResultDefinitionContextSearchPredicateFactoryContext predicate()
The predicate will only be valid for search queries created using this scope
or a wider scope.
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.
get the resulting predicate.SearchPredicateFactoryContextSearchSortFactoryContext sort()
The sort will only be valid for search queries created using this scope
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.
get the resulting sort.SearchSortFactoryContextSearchProjectionFactoryContext<EntityReference,E> projection()
The projection will only be valid for search queries created using this scope
or a wider scope.
Note this method is only necessary if you do not want to use lambda expressions,
since you can SearchQueryResultDefinitionContext.asProjection(Function) define projections with lambdas}
within the search query DSL,
removing the need to create separate objects to represent the projections.
get the resulting projection.SearchProjectionFactoryContextSearchWriter writer()
SearchWriter for the indexes mapped to types in this scope, or to any of their sub-types.SearchWriter.MassIndexer massIndexer()
MassIndexer for the indexes mapped to types in this scope, or to any of their sub-types.
MassIndexer instances cannot be reused.
MassIndexer.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.