public interface SearchScope
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactory |
aggregation()
Initiate the building of a search aggregation that will be valid for the indexes in this scope.
|
org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory |
predicate()
Initiate the building of a search predicate.
|
org.hibernate.search.engine.search.projection.dsl.SearchProjectionFactory<EntityReference,?> |
projection()
Initiate the building of a search projection that will be valid for the indexes in this scope.
|
org.hibernate.search.engine.search.sort.dsl.SearchSortFactory |
sort()
Initiate the building of a search sort.
|
org.hibernate.search.engine.search.predicate.dsl.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.
SearchPredicateFactoryorg.hibernate.search.engine.search.sort.dsl.SearchSortFactory sort()
The sort 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 sorts with lambdas
within the search query DSL,
removing the need to create separate objects to represent the sorts.
SearchSortFactoryorg.hibernate.search.engine.search.projection.dsl.SearchProjectionFactory<EntityReference,?> 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 SearchQueryHitTypeStep.asProjection(Function) define projections with lambdas}
within the search query DSL,
removing the need to create separate objects to represent the projections.
SearchProjectionFactoryorg.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactory 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.
SearchAggregationFactoryCopyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.