Class ModelGraphDocumentSearch
java.lang.Object
io.fluxzero.common.search.ModelGraphDocumentSearch
Applies graph-view constraints, sorting, field selection and pagination after live graph composition.
Keeping this operation shared ensures that a live graph query has the same result semantics as an ordinary query against a materialized graph collection. Candidate-root discovery and graph composition remain explicitly bounded by the caller before this operation is invoked.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchDocumentsafterRootSelection(SearchDocuments search) Retains result field selection after the database has applied filtering, order and root pagination.static List<SerializedDocument> apply(List<SerializedDocument> documents, SearchDocuments search) Applies the complete search request to already composed graph documents.static booleancanPageRoots(SearchModelGraphDocuments request) Whether ordinary document search can select and page the roots before loading descendants.
-
Method Details
-
canPageRoots
Whether ordinary document search can select and page the roots before loading descendants. -
afterRootSelection
Retains result field selection after the database has applied filtering, order and root pagination. -
apply
public static List<SerializedDocument> apply(List<SerializedDocument> documents, SearchDocuments search) Applies the complete search request to already composed graph documents.
-