19
19
import com .marklogic .client .FailedRequestException ;
20
20
import com .marklogic .client .ForbiddenUserException ;
21
21
import com .marklogic .client .io .Format ;
22
+ import com .marklogic .client .query .SearchQueryDefinition ;
22
23
import com .marklogic .client .util .RequestLogger ;
23
24
import com .marklogic .client .ResourceNotFoundException ;
24
25
import com .marklogic .client .Transaction ;
@@ -582,7 +583,7 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
582
583
DocumentPage readMetadata (Transaction transaction , String ... uris );
583
584
584
585
/**
585
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long) QueryManager.search}
586
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long) QueryManager.search}
586
587
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
587
588
* documents in each DocumentPage. If setMetadataCategories has
588
589
* been called, populates metadata for each result in the format specified by
@@ -591,10 +592,10 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
591
592
* @param start the offset of the first document in the page (where 1 is the first result)
592
593
* @return the DocumentPage of matching documents and metadata
593
594
*/
594
- DocumentPage search (QueryDefinition querydef , long start );
595
+ DocumentPage search (SearchQueryDefinition querydef , long start );
595
596
596
597
/**
597
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long, String) QueryManager.search}
598
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long, String) QueryManager.search}
598
599
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
599
600
* documents in each DocumentPage. If setMetadataCategories has
600
601
* been called, populates metadata for each result in the format specified by
@@ -604,10 +605,10 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
604
605
* @param forestName a forest to limit this search
605
606
* @return the DocumentPage of matching documents and metadata
606
607
*/
607
- DocumentPage search (QueryDefinition querydef , long start , String forestName );
608
+ DocumentPage search (SearchQueryDefinition querydef , long start , String forestName );
608
609
609
610
/**
610
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long) QueryManager.search}
611
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long) QueryManager.search}
611
612
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
612
613
* documents in each DocumentPage. If setMetadataCategories has
613
614
* been called, populates metadata for each result in the format specified by
@@ -620,11 +621,11 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
620
621
* @return the DocumentPage of matching documents and metadata
621
622
*/
622
623
/* Hide the following for now because the API isn't yet fully fleshed-out
623
- DocumentPage search(QueryDefinition querydef, long start, long serverTimestamp);
624
+ DocumentPage search(SearchQueryDefinition querydef, long start, long serverTimestamp);
624
625
*/
625
626
626
627
/**
627
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long, Transaction) QueryManager.search}
628
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long, Transaction) QueryManager.search}
628
629
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
629
630
* documents in each DocumentPage. If setMetadataCategories has
630
631
* been called, populates metadata for each result in the format specified by
@@ -634,10 +635,10 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
634
635
* @param transaction an open transaction for matching documents
635
636
* @return the DocumentPage of matching documents and metadata
636
637
*/
637
- DocumentPage search (QueryDefinition querydef , long start , Transaction transaction );
638
+ DocumentPage search (SearchQueryDefinition querydef , long start , Transaction transaction );
638
639
639
640
/**
640
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long, Transaction, String) QueryManager.search}
641
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long, Transaction, String) QueryManager.search}
641
642
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
642
643
* documents in each DocumentPage. If setMetadataCategories has
643
644
* been called, populates metadata for each result in the format specified by
@@ -648,10 +649,10 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
648
649
* @param forestName a forest to limit this search
649
650
* @return the DocumentPage of matching documents and metadata
650
651
*/
651
- DocumentPage search (QueryDefinition querydef , long start , Transaction transaction , String forestName );
652
+ DocumentPage search (SearchQueryDefinition querydef , long start , Transaction transaction , String forestName );
652
653
653
654
/**
654
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long, Transaction) QueryManager.search}
655
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long, Transaction) QueryManager.search}
655
656
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
656
657
* documents in each DocumentPage. If setMetadataCategories has
657
658
* been called, populates metadata for each result in the format specified by
@@ -665,11 +666,11 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
665
666
* @return the DocumentPage of matching documents and metadata
666
667
*/
667
668
/* Hide the following for now because the API isn't yet fully fleshed-out
668
- DocumentPage search(QueryDefinition querydef, long start, long serverTimestamp, Transaction transaction);
669
+ DocumentPage search(SearchQueryDefinition querydef, long start, long serverTimestamp, Transaction transaction);
669
670
*/
670
671
671
672
/**
672
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long) QueryManager.search}
673
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long) QueryManager.search}
673
674
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
674
675
* documents in each DocumentPage. If searchHandle is not null,
675
676
* requests a search response and populates searchHandle with it. If setMetadataCategories has
@@ -682,10 +683,10 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
682
683
* {@link #setNonDocumentFormat setNonDocumentFormat}
683
684
* @return the DocumentPage of matching documents and metadata
684
685
*/
685
- DocumentPage search (QueryDefinition querydef , long start , SearchReadHandle searchHandle );
686
+ DocumentPage search (SearchQueryDefinition querydef , long start , SearchReadHandle searchHandle );
686
687
687
688
/**
688
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long, String) QueryManager.search}
689
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long, String) QueryManager.search}
689
690
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
690
691
* documents in each DocumentPage. If searchHandle is not null,
691
692
* requests a search response and populates searchHandle with it. If setMetadataCategories has
@@ -699,10 +700,10 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
699
700
* @param forestName a forest to limit this search
700
701
* @return the DocumentPage of matching documents and metadata
701
702
*/
702
- DocumentPage search (QueryDefinition querydef , long start , SearchReadHandle searchHandle , String forestName );
703
+ DocumentPage search (SearchQueryDefinition querydef , long start , SearchReadHandle searchHandle , String forestName );
703
704
704
705
/**
705
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long, Transaction)}
706
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long, Transaction)}
706
707
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
707
708
* documents in each DocumentPage. If searchHandle is not null,
708
709
* requests a search response and populates searchHandle with it. If setMetadataCategories has
@@ -716,10 +717,10 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
716
717
* @param transaction an open transaction for matching documents
717
718
* @return the DocumentPage of matching documents and metadata
718
719
*/
719
- DocumentPage search (QueryDefinition querydef , long start , SearchReadHandle searchHandle , Transaction transaction );
720
+ DocumentPage search (SearchQueryDefinition querydef , long start , SearchReadHandle searchHandle , Transaction transaction );
720
721
721
722
/**
722
- * Just like {@link QueryManager#search(QueryDefinition , SearchReadHandle, long, Transaction, String)}
723
+ * Just like {@link QueryManager#search(SearchQueryDefinition , SearchReadHandle, long, Transaction, String)}
723
724
* but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
724
725
* documents in each DocumentPage. If searchHandle is not null,
725
726
* requests a search response and populates searchHandle with it. If setMetadataCategories has
@@ -734,7 +735,7 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
734
735
* @param forestName a forest to limit this search
735
736
* @return the DocumentPage of matching documents and metadata
736
737
*/
737
- DocumentPage search (QueryDefinition querydef , long start , SearchReadHandle searchHandle , Transaction transaction , String forestName );
738
+ DocumentPage search (SearchQueryDefinition querydef , long start , SearchReadHandle searchHandle , Transaction transaction , String forestName );
738
739
739
740
/** Get the maximum number of records to return in a page from calls to {@link #search search}
740
741
* @return the maximum number of records to return in a page from calls to
@@ -751,7 +752,7 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
751
752
752
753
/**
753
754
* Returns the format (if set) for the search response from
754
- * {@link #search(QueryDefinition , long, SearchReadHandle) search} and
755
+ * {@link #search(SearchQueryDefinition , long, SearchReadHandle) search} and
755
756
* metadata available from {@link DocumentRecord#getMetadata(DocumentMetadataReadHandle)
756
757
* DocumentPage.next().getMetadata(handle)} (assuming
757
758
* {@link #setMetadataCategories setMetadataCategories} has been called
@@ -763,7 +764,7 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
763
764
764
765
/**
765
766
* Specifies the format for the search response from
766
- * {@link #search(QueryDefinition , long, SearchReadHandle) search} and
767
+ * {@link #search(SearchQueryDefinition , long, SearchReadHandle) search} and
767
768
* metadata available from {@link DocumentRecord#getMetadata(DocumentMetadataReadHandle)
768
769
* DocumentPage.next().getMetadata(handle)} (assuming
769
770
* {@link #setMetadataCategories setMetadataCategories} has been called
@@ -775,17 +776,17 @@ <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadat
775
776
776
777
/**
777
778
* Returns the view types included in a SearchReadHandle populated by calls to
778
- * {@link #search(QueryDefinition , long, SearchReadHandle) search}
779
+ * {@link #search(SearchQueryDefinition , long, SearchReadHandle) search}
779
780
* @return the view types included in a SearchReadHandle populated by calls to
780
- * {@link #search(QueryDefinition , long, SearchReadHandle) search}
781
+ * {@link #search(SearchQueryDefinition , long, SearchReadHandle) search}
781
782
*/
782
783
QueryView getSearchView ();
783
784
784
785
/**
785
786
* Specifies the view types included in a SearchReadHandle populated by calls to
786
- * {@link #search(QueryDefinition , long, SearchReadHandle) search}
787
+ * {@link #search(SearchQueryDefinition , long, SearchReadHandle) search}
787
788
* @param view the view types included in a SearchReadHandle populated by calls to
788
- * {@link #search(QueryDefinition , long, SearchReadHandle) search}
789
+ * {@link #search(SearchQueryDefinition , long, SearchReadHandle) search}
789
790
*/
790
791
void setSearchView (QueryView view );
791
792
0 commit comments