Package com.lucidworks.querying.api
Interface QueryResponse
public interface QueryResponse
Fusion query response. Part of the
QueryRequestResponse and populated after the result set has been
retrieved from Solr.-
Method Summary
Modifier and TypeMethodDescriptiondoublelonglonggetStart()longvoidupdateDocuments(List<Document> updatedDocuments) Update documents in the query’s result set.voidUpdate facets in the query’s result set.voidUpdate highlighted snippets in the query’s result set.
-
Method Details
-
getStatusCode
- Returns:
- the status code returned from Solr
-
getHeaders
Map<String,Collection<String>> getHeaders()- Returns:
- the response headers
-
getTotalTime
long getTotalTime()- Returns:
- the total amount of time your query spent passing through the query pipeline
-
getNumFound
long getNumFound()- Returns:
- the number of documents in the search index that matched your query
-
getMaxScore
double getMaxScore()- Returns:
- the scoring of the topmost document in query’s result set.
-
getStart
long getStart()- Returns:
- the offset into a query’s result set.
-
getDocIds
- Returns:
- the IDs of all the documents in the query’s result set.
-
getDocuments
- Returns:
- the documents in the query’s result set.
-
updateDocuments
Update documents in the query’s result set. This could be used to, for example, reorder, redact, or rewrite documents.- Parameters:
updatedDocuments- a list of updated documents
-
getFacets
- Returns:
- the facets in the query’s result set. Returned as 'facet type' mapped to 'field name' mapped to 'facet count entries'.
-
updateFacets
Update facets in the query’s result set.- Parameters:
facets- a map of updated facets.
-
getHighlighting
- Returns:
- highlighted snippets in the query’s result set. Returned as 'Doc ID' mapped to 'Field name' mapped to 'Snippets'.
-
updateHighlighting
Update highlighted snippets in the query’s result set.- Parameters:
highlighting- a map of updated highlighted snippets.
-
getGroupedResults
- Returns:
- grouped results in the query’s result set. Returned as 'group field name' or 'group query' mapped to grouping data.
-