Interface LuceneSearchProjectionFactory<R,E>
- Type Parameters:
R- The type of entity references.E- The type of entities.
- All Superinterfaces:
ExtendedSearchProjectionFactory<LuceneSearchProjectionFactory<R,,E>, R, E> SearchProjectionFactory<R,E>
- All Known Implementing Classes:
LuceneSearchProjectionFactoryImpl
public interface LuceneSearchProjectionFactory<R,E>
extends ExtendedSearchProjectionFactory<LuceneSearchProjectionFactory<R,E>,R,E>
A factory for search projections with some Lucene-specific methods.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionProjectionFinalStep<org.apache.lucene.document.Document>document()Project to a LuceneDocumentcontaining all the stored fields.Project to aDocumentTreecontaining all the stored fields and nested documents.ProjectionFinalStep<org.apache.lucene.search.Explanation>Project to a LuceneExplanationdescribing the score computation for the hit.Methods inherited from interface org.hibernate.search.engine.search.projection.dsl.ExtendedSearchProjectionFactory
withRootMethods 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, extension, field, field, field, field, field, field, highlight, id, id, object, score, toAbsolutePath, withParameters
-
Method Details
-
document
ProjectionFinalStep<org.apache.lucene.document.Document> document()Project to a LuceneDocumentcontaining all the stored fields.Note that only stored fields are returned: fields that are not marked as
projectablemay be missing.- Returns:
- The final step of the projection DSL.
-
explanation
ProjectionFinalStep<org.apache.lucene.search.Explanation> explanation()Project to a LuceneExplanationdescribing 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 aDocumentTreecontaining all the stored fields and nested documents.Note that only stored fields are returned: fields that are not marked as
projectablemay be missing.- Returns:
- The final step of the projection DSL.
-