Interface LuceneSearchProjectionFactory<SR,R,E>
- Type Parameters:
SR
- Scope root type.R
- The type of entity references.E
- The type of entities.
- All Superinterfaces:
ExtendedSearchProjectionFactory<SR,
,LuceneSearchProjectionFactory<SR, R, E>, R, E> SearchProjectionFactory<R,
,E> TypedSearchProjectionFactory<SR,
R, E>
public interface LuceneSearchProjectionFactory<SR,R,E>
extends ExtendedSearchProjectionFactory<SR,LuceneSearchProjectionFactory<SR,R,E>,R,E>
A factory for search projections with some Lucene-specific methods.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondocument()
Project to a LuceneDocument
containing all the stored fields.Project to aDocumentTree
containing all the stored fields and nested documents.Project to a LuceneExplanation
describing the score computation for the hit.Methods inherited from interface org.hibernate.search.engine.search.projection.dsl.ExtendedSearchProjectionFactory
withRoot, withScopeRoot
Methods inherited from interface org.hibernate.search.engine.search.projection.dsl.SearchProjectionFactory
composite, composite, composite, composite, composite, composite, composite, composite, composite, composite, composite, constant, distance, documentReference, entity, entity, entityReference, extension, field, field, field, field, field, field, highlight, id, id, object, score, toAbsolutePath, withParameters
-
Method Details
-
document
ProjectionFinalStep<Document> document()Project to a LuceneDocument
containing all the stored fields.Note that only stored fields are returned: fields that are not marked as
projectable
may be missing.- Returns:
- The final step of the projection DSL.
-
explanation
ProjectionFinalStep<Explanation> explanation()Project to a LuceneExplanation
describing the score computation for the hit.This feature is relatively expensive, do not use unless you return a limited amount of objects (using pagination).
- Returns:
- The final step of the projection DSL.
-
documentTree
Project to aDocumentTree
containing all the stored fields and nested documents.Note that only stored fields are returned: fields that are not marked as
projectable
may be missing.- Returns:
- The final step of the projection DSL.
-