Class SolrSearchResultDocumentList
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchengine.solr.SolrSearchResultDocumentList
-
- All Implemented Interfaces:
SearchResultDocumentList,Iterable<SearchResultDocument>
public class SolrSearchResultDocumentList extends Object implements SearchResultDocumentList
A Solr-based implementation of SearchResultDocumentList. It's necessary to use this instead of the base version, so the iterator can convert each document as it is requested.
-
-
Constructor Summary
Constructors Constructor Description SolrSearchResultDocumentList(org.apache.solr.common.SolrDocumentList solrDocs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResultDocumentget(int i)Retrieve the i'th document, starting with 0.longgetNumFound()The number of documents that would satisfy the queryIterator<SearchResultDocument>iterator()intsize()The number of documents that are included in this result.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
iterator
public Iterator<SearchResultDocument> iterator()
- Specified by:
iteratorin interfaceIterable<SearchResultDocument>
-
getNumFound
public long getNumFound()
Description copied from interface:SearchResultDocumentListThe number of documents that would satisfy the query- Specified by:
getNumFoundin interfaceSearchResultDocumentList
-
size
public int size()
Description copied from interface:SearchResultDocumentListThe number of documents that are included in this result.- Specified by:
sizein interfaceSearchResultDocumentList
-
get
public SearchResultDocument get(int i)
Description copied from interface:SearchResultDocumentListRetrieve the i'th document, starting with 0.- Specified by:
getin interfaceSearchResultDocumentList
-
-