public class SolrResponseParser extends QueryResponseParser
| Modifier and Type | Field and Description |
|---|---|
protected eu.dnetlib.miscutils.functional.UnaryFunction<String,org.apache.solr.common.SolrDocument> |
wrapperNoRank
The wrapper no rank.
|
protected eu.dnetlib.miscutils.functional.UnaryFunction<String,org.apache.solr.common.SolrDocument> |
wrapperRank
The wrapper rank.
|
aliases, highlightUtils, includeRanking, returnEmptyFields| Constructor and Description |
|---|
SolrResponseParser(eu.dnetlib.miscutils.functional.UnaryFunction<String,String> highlightUtils,
com.google.common.collect.BiMap<String,String> aliases,
boolean returnEmptyFields,
boolean includeRanking,
org.apache.solr.client.solrj.response.QueryResponse response)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<eu.dnetlib.data.provision.index.rmi.BrowsingRow> |
getBrowsingResults()
Gets the browsing results.
|
int |
getCurrentSize()
Gets the current size.
|
long |
getElapsedTime()
Gets the elapsed time.
|
Long |
getNumberOfBrowsingResults()
method counts the number of facet fields resulting from the performed query.
|
long |
getNumFound()
Gets the num found.
|
org.apache.solr.client.solrj.response.QueryResponse |
getQueryResponse()
Gets the query response.
|
int |
getQueryTime()
Gets the query time.
|
List<String> |
getResults()
Gets the results.
|
protected String |
getSingleField(org.apache.solr.common.SolrDocument doc,
String fieldName)
Gets the single field.
|
long |
getStart()
Gets the start.
|
String |
getStatus()
Gets the status.
|
getAliasesprotected final eu.dnetlib.miscutils.functional.UnaryFunction<String,org.apache.solr.common.SolrDocument> wrapperRank
protected final eu.dnetlib.miscutils.functional.UnaryFunction<String,org.apache.solr.common.SolrDocument> wrapperNoRank
public SolrResponseParser(eu.dnetlib.miscutils.functional.UnaryFunction<String,String> highlightUtils, com.google.common.collect.BiMap<String,String> aliases, boolean returnEmptyFields, boolean includeRanking, org.apache.solr.client.solrj.response.QueryResponse response)
highlightUtils - the highlight utilsaliases - the aliasesreturnEmptyFields - the return empty fieldsincludeRanking - the include rankingresponse - the responsepublic long getNumFound()
getNumFound in class QueryResponseParserQueryResponseParser.getNumFound()public int getQueryTime()
getQueryTime in class QueryResponseParserQueryResponseParser.getQueryTime()public long getElapsedTime()
getElapsedTime in class QueryResponseParserQueryResponseParser.getElapsedTime()public String getStatus()
getStatus in class QueryResponseParserQueryResponseParser.getStatus()public int getCurrentSize()
getCurrentSize in class QueryResponseParserQueryResponseParser.getCurrentSize()public org.apache.solr.client.solrj.response.QueryResponse getQueryResponse()
public List<String> getResults()
getResults in class QueryResponseParserQueryResponseParser.getResults()public Long getNumberOfBrowsingResults()
getNumberOfBrowsingResults in class QueryResponseParserQueryResponseParser.getNumberOfBrowsingResults()public List<eu.dnetlib.data.provision.index.rmi.BrowsingRow> getBrowsingResults()
getBrowsingResults in class QueryResponseParserQueryResponseParser.getBrowsingResults()protected String getSingleField(org.apache.solr.common.SolrDocument doc, String fieldName)
doc - the docfieldName - the field namepublic long getStart()
QueryResponseParsergetStart in class QueryResponseParserCopyright © 2019. All rights reserved.