Class SearchHandle

java.lang.Object
com.marklogic.client.impl.HandleImplementation<R,W>
All Implemented Interfaces:
ContentDescriptor, AbstractReadHandle, SearchReadHandle, SearchResults

public class SearchHandle extends BaseHandle<InputStream,OperationNotSupported> implements SearchReadHandle, SearchResults
A SearchHandle represents a set of search results returned by the server.

The precise nature of the results returned depends on the query options used for the search and on the configuration of this handle.

Snippets, in particular, are returned in various ways. In the default case, snippets are returned as Java objects. For custom or raw snippets, DOM documents are returned. The forceDOM flag can be set to cause the handle to always return DOM documents, even in the default case.