Package com.attivio.sdk.client.streaming
Interfaces that allow developers to request all results, facets, or document id's back from a
query. In addition, streaming can be used to send large query filters to AIE for reducing the
number of returned results.
An example usage would be:
SearchClient client = new SearchClient();
QueryRequest req = new QueryRequest("*:*");
req.setRows(Long.MAX_VALUE);
req.addFacetField("cat");
StreamingQueryResponse response = client.search(new StreamingQueryRequest(streamRequest));
for (SearchDocument doc : response.getDocuments()) {
// do something with each response document
}
for (FacetBucket bucket : response.getFacetBuckets()) {
// do something with each facet bucket
}
// once all documents and facet buckets are read you can ask for the
// query response to get back linguistic feedback, etc.
QueryResponse resp = response.getQueryResponse();
-
Interface Summary Interface Description StreamingFacetResponse StreamingQueryResponse An interface that allows the developer to retrieve results from a streaming search query.