See: Description
| Interface | Description |
|---|---|
| StreamingFacetResponse | |
| StreamingQueryResponse |
An interface that allows the developer to retrieve results from a streaming search query.
|
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();
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.