public class CmsSolrResultList extends java.util.ArrayList<CmsSearchResource>
CmsSearchResource
).
This list can be accessed exactly like an ArrayList
which entries are
CmsSearchResource
that extend CmsResource
and
holds the Solr implementation of I_CmsSearchDocument
as member. This enables you to deal with the resulting list as you do with
well known List
and work on it's entries like you do on
CmsResource
.
构造器和说明 |
---|
CmsSolrResultList(org.apache.solr.client.solrj.SolrQuery query,
org.apache.solr.client.solrj.response.QueryResponse queryResponse,
org.apache.solr.common.SolrDocumentList resultDocuments,
java.util.List<CmsSearchResource> resourceDocumentList,
int start,
java.lang.Integer rows,
int end,
int page,
long visibleHitCount,
java.lang.Float maxScore,
long startTime,
long highlightEndTime)
The public constructor.
|
限定符和类型 | 方法和说明 |
---|---|
int |
getEnd()
Returns the last index of documents to display.
|
org.apache.solr.client.solrj.response.FacetField |
getFacetDate(java.lang.String name)
Delegator.
|
java.util.List<org.apache.solr.client.solrj.response.FacetField> |
getFacetDates()
Delegator.
|
org.apache.solr.client.solrj.response.FacetField |
getFacetField(java.lang.String name)
Delegator.
|
java.util.List<org.apache.solr.client.solrj.response.FacetField> |
getFacetFields()
Delegator.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getFacetQuery()
Delegator.
|
java.util.List<org.apache.solr.client.solrj.response.RangeFacet> |
getFacetRanges()
Delegator.
|
long |
getHighlightEndTime()
Returns the time in ms when the highlighting is finished.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<java.lang.String>>> |
getHighLighting()
Returns the highlighting information.
|
java.util.List<org.apache.solr.client.solrj.response.FacetField> |
getLimitingFacets()
Delegator.
|
java.lang.Float |
getMaxScore()
Returns the score of the best matching document.
|
long |
getNumFound()
Returns the count of docs that have been found.
|
int |
getPage()
Returns the current page.
|
org.apache.solr.client.solrj.SolrQuery |
getQuery()
The original Solr query.
|
java.lang.Integer |
getRows()
Returns the requested row count.
|
java.lang.Long |
getStart()
Returns the start index (offset).
|
long |
getStartTime()
Returns the start time.
|
long |
getVisibleHitCount()
Returns the visible hit count.
|
public CmsSolrResultList(org.apache.solr.client.solrj.SolrQuery query, org.apache.solr.client.solrj.response.QueryResponse queryResponse, org.apache.solr.common.SolrDocumentList resultDocuments, java.util.List<CmsSearchResource> resourceDocumentList, int start, java.lang.Integer rows, int end, int page, long visibleHitCount, java.lang.Float maxScore, long startTime, long highlightEndTime)
query
- original Solr queryqueryResponse
- original query responseresultDocuments
- original list of Solr documentsresourceDocumentList
- the list of resource documentsstart
- the start (offset)rows
- the rows (hits per page)end
- the end (start + rows)page
- the current page (start / rows)visibleHitCount
- the visible hit countmaxScore
- the max score of the best matching docstartTime
- the start time when the query has been executedhighlightEndTime
- the time in ms when the highlighting is finishedpublic int getEnd()
public org.apache.solr.client.solrj.response.FacetField getFacetDate(java.lang.String name)
name
- the namepublic java.util.List<org.apache.solr.client.solrj.response.FacetField> getFacetDates()
public org.apache.solr.client.solrj.response.FacetField getFacetField(java.lang.String name)
name
- the namepublic java.util.List<org.apache.solr.client.solrj.response.FacetField> getFacetFields()
public java.util.Map<java.lang.String,java.lang.Integer> getFacetQuery()
public java.util.List<org.apache.solr.client.solrj.response.RangeFacet> getFacetRanges()
public long getHighlightEndTime()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getHighLighting()
public java.util.List<org.apache.solr.client.solrj.response.FacetField> getLimitingFacets()
public java.lang.Float getMaxScore()
public long getNumFound()
public int getPage()
public org.apache.solr.client.solrj.SolrQuery getQuery()
public java.lang.Integer getRows()
public java.lang.Long getStart()
public long getStartTime()
public long getVisibleHitCount()