Skip navigation links

Package com.attivio.sdk.client.streaming

Interfaces that allow developers to request all results, facets, or document id's back from a query.

See: Description

Package com.attivio.sdk.client.streaming Description

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. Copyright 2015 Attivio Inc., All rights reserved. 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();
 
Skip navigation links

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.