public class LuceneSearchResults extends SearchResults
Modifier and Type | Field and Description |
---|---|
protected SearchAttributes |
attributes |
protected org.apache.lucene.search.Hits |
hits |
protected HashMap<Integer,LuceneSearchHit> |
searchHits |
Constructor and Description |
---|
LuceneSearchResults(org.apache.lucene.search.Hits hits) |
Modifier and Type | Method and Description |
---|---|
SearchAttributes |
getAttributes()
Returns the result's
attributes . |
SearchHit |
getHit(int hitIndex)
Returns a
hit of the collection. |
int |
getHitCount()
Returns the number of
hits in the collection. |
protected org.apache.lucene.search.Hits hits
protected HashMap<Integer,LuceneSearchHit> searchHits
protected SearchAttributes attributes
public LuceneSearchResults(org.apache.lucene.search.Hits hits)
public int getHitCount()
SearchResults
hits
in the collection.getHitCount
in class SearchResults
hits
in the collection.public SearchHit getHit(int hitIndex) throws IndexOutOfBoundsException, PortalException
SearchResults
hit
of the collection.getHit
in class SearchResults
hitIndex
- index of the hit
to be returnedhit
referent to the given indexIndexOutOfBoundsException
- if the given index is greater than the hit count
PortalException
IndexOutOfBoundsException
public SearchAttributes getAttributes()
SearchResults
attributes
.
Attributes contain additional information returned by the
search engine in a query
execution
.
getAttributes
in class SearchResults
attributes
.Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.