@@ -593,6 +593,19 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
593593 */
594594 DocumentPage search (QueryDefinition querydef , long start );
595595
596+ /**
597+ * Just like {@link QueryManager#search(QueryDefinition, SearchReadHandle, long) QueryManager.search}
598+ * but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
599+ * documents in each DocumentPage. If setMetadataCategories has
600+ * been called, populates metadata for each result in the format specified by
601+ * {@link #setNonDocumentFormat setNonDocumentFormat}.
602+ * @param querydef the definition of query criteria and query options
603+ * @param start the offset of the first document in the page (where 1 is the first result)
604+ * @param forestName a forest to limit this search
605+ * @return the DocumentPage of matching documents and metadata
606+ */
607+ DocumentPage search (QueryDefinition querydef , long start , String forestName );
608+
596609 /**
597610 * Just like {@link QueryManager#search(QueryDefinition, SearchReadHandle, long) QueryManager.search}
598611 * but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
@@ -623,6 +636,20 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
623636 */
624637 DocumentPage search (QueryDefinition querydef , long start , Transaction transaction );
625638
639+ /**
640+ * Just like {@link QueryManager#search(QueryDefinition, SearchReadHandle, long, Transaction) QueryManager.search}
641+ * but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
642+ * documents in each DocumentPage. If setMetadataCategories has
643+ * been called, populates metadata for each result in the format specified by
644+ * {@link #setNonDocumentFormat setNonDocumentFormat}.
645+ * @param querydef the definition of query criteria and query options
646+ * @param start the offset of the first document in the page (where 1 is the first result)
647+ * @param transaction an open transaction for matching documents
648+ * @param forestName a forest to limit this search
649+ * @return the DocumentPage of matching documents and metadata
650+ */
651+ DocumentPage search (QueryDefinition querydef , long start , Transaction transaction , String forestName );
652+
626653 /**
627654 * Just like {@link QueryManager#search(QueryDefinition, SearchReadHandle, long, Transaction) QueryManager.search}
628655 * but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
@@ -657,6 +684,23 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
657684 */
658685 DocumentPage search (QueryDefinition querydef , long start , SearchReadHandle searchHandle );
659686
687+ /**
688+ * Just like {@link QueryManager#search(QueryDefinition, SearchReadHandle, long) QueryManager.search}
689+ * but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
690+ * documents in each DocumentPage. If searchHandle is not null,
691+ * requests a search response and populates searchHandle with it. If setMetadataCategories has
692+ * been called, populates metadata for each result in the format specified by
693+ * {@link #setNonDocumentFormat setNonDocumentFormat}.
694+ * @param querydef the definition of query criteria and query options
695+ * @param start the offset of the first document in the page (where 1 is the first result)
696+ * @param searchHandle a handle for reading the search response which will include view types
697+ * specified by {@link #setSearchView setSearchView} and format specified by
698+ * {@link #setNonDocumentFormat setNonDocumentFormat}
699+ * @param forestName a forest to limit this search
700+ * @return the DocumentPage of matching documents and metadata
701+ */
702+ DocumentPage search (QueryDefinition querydef , long start , SearchReadHandle searchHandle , String forestName );
703+
660704 /**
661705 * Just like {@link QueryManager#search(QueryDefinition, SearchReadHandle, long, Transaction)}
662706 * but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
@@ -674,6 +718,24 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
674718 */
675719 DocumentPage search (QueryDefinition querydef , long start , SearchReadHandle searchHandle , Transaction transaction );
676720
721+ /**
722+ * Just like {@link QueryManager#search(QueryDefinition, SearchReadHandle, long, Transaction)}
723+ * but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
724+ * documents in each DocumentPage. If searchHandle is not null,
725+ * requests a search response and populates searchHandle with it. If setMetadataCategories has
726+ * been called, populates metadata for each result in the format specified by
727+ * {@link #setNonDocumentFormat setNonDocumentFormat}.
728+ * @param querydef the definition of query criteria and query options
729+ * @param start the offset of the first document in the page (where 1 is the first result)
730+ * @param searchHandle a handle for reading the search response which will include view types
731+ * specified by {@link #setSearchView setSearchView} and format specified by
732+ * {@link #setNonDocumentFormat setNonDocumentFormat}
733+ * @param transaction an open transaction for matching documents
734+ * @param forestName a forest to limit this search
735+ * @return the DocumentPage of matching documents and metadata
736+ */
737+ DocumentPage search (QueryDefinition querydef , long start , SearchReadHandle searchHandle , Transaction transaction , String forestName );
738+
677739 /** Get the maximum number of records to return in a page from calls to {@link #search search}
678740 * @return the maximum number of records to return in a page from calls to
679741 * {@link #search search} */
0 commit comments