public interface ResponseTransformer extends Stage
QueryResponse
before being sent back to a client. The framework will first
call processResponseInfo(QueryResponse)
, followed by
processResponseDocuments(QueryResponse, SearchDocumentList)
.Modifier and Type | Method and Description |
---|---|
void |
processResponseDocuments(QueryResponse info,
SearchDocumentList documents)
Process the documents for a response.
|
void |
processResponseInfo(QueryResponse info)
Process a
QueryResponse which contains information about the query request and the metadata about how long it took to
compute the results. |
void processResponseInfo(QueryResponse info) throws AttivioException
QueryResponse
which contains information about the query request and the metadata about how long it took to
compute the results.AttivioException
void processResponseDocuments(QueryResponse info, SearchDocumentList documents) throws AttivioException
NOTE: The only modifications made to info
should be the addition of feedback messages. If you want to do any
transformation of the info
block, you should implement
processResponseInfo(QueryResponse)
.
info
- documents
- AttivioException
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.