Interface LuceneSearchProjection<P>
-
- All Superinterfaces:
SearchProjection<P>
- All Known Implementing Classes:
LuceneByMappedTypeProjection,LuceneConstantProjection,LuceneDistanceToFieldProjection,LuceneEntityCompositeProjection,LuceneEntityLoadingProjection,LuceneEntityReferenceProjection,LuceneFieldHighlightProjection,LuceneFieldProjection,LuceneIdProjection,LuceneObjectProjection,LuceneThrowingProjection
public interface LuceneSearchProjection<P> extends SearchProjection<P>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLuceneSearchProjection.Extractor<E,P>An object responsible for extracting data from the Lucene Searcher, to implement a projection.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <P> LuceneSearchProjection<P>from(LuceneSearchIndexScope<?> scope, SearchProjection<P> projection)Set<String>indexNames()LuceneSearchProjection.Extractor<?,P>request(ProjectionRequestContext context)Request the collection of per-document data that will be used inLuceneSearchProjection.Extractor.values(ProjectionExtractContext), making sure that the requirements for this projection are met.
-
-
-
Field Detail
-
log
static final Log log
-
-
Method Detail
-
request
LuceneSearchProjection.Extractor<?,P> request(ProjectionRequestContext context)
Request the collection of per-document data that will be used inLuceneSearchProjection.Extractor.values(ProjectionExtractContext), making sure that the requirements for this projection are met.- Parameters:
context- An execution context for the request.- Returns:
- An
LuceneSearchProjection.Extractor, to extract the result of the projection from the Elasticsearch response.
-
from
static <P> LuceneSearchProjection<P> from(LuceneSearchIndexScope<?> scope, SearchProjection<P> projection)
-
-