1
|
package eu.dnetlib.index.query;
|
2
|
|
3
|
import eu.dnetlib.clients.index.query.IndexQueryResponse;
|
4
|
import org.apache.solr.client.solrj.response.QueryResponse;
|
5
|
|
6
|
/**
|
7
|
* The Class SolrIndexQueryResponse.
|
8
|
*/
|
9
|
public class SolrIndexQueryResponse implements IndexQueryResponse<QueryResponse> {
|
10
|
|
11
|
private QueryResponse solrQueryResponse;
|
12
|
|
13
|
public SolrIndexQueryResponse(final QueryResponse solrQueryResponse) {
|
14
|
this.solrQueryResponse = solrQueryResponse;
|
15
|
}
|
16
|
|
17
|
@Override
|
18
|
public QueryResponse getContextualQueryResponse() {
|
19
|
return solrQueryResponse;
|
20
|
}
|
21
|
|
22
|
}
|