You can search for documents associated with a particular library and a particular class as follows.
precision=INCOMPLETE_RESULT in the response.
searchInAttachments parameter to false.libraryId is a path parameter and classId is a query parameter. These are the only mandatory arguments. However, the searchQuery query parameter is what ultimately determines what results come back, filtering them on a text string.
searchQuery query parameter. For example, if your document is called “big blue document”, then sending “big blue” or “blue document” (with the double quotes) as the searchQuery query parameter finds it, but “big document” does not.