class SolrDocumentResult<AO extends AmetysObject> extends Object implements SearchResult<AO>
Modifier and Type | Field and Description |
---|---|
private SolrDocument |
_document |
private AmetysObjectResolver |
_resolver |
Constructor and Description |
---|
SolrDocumentResult(SolrDocument document,
AmetysObjectResolver resolver) |
Modifier and Type | Method and Description |
---|---|
AO |
getObject()
Get the result object.
|
float |
getScore()
Get the result score.
|
private SolrDocument _document
private AmetysObjectResolver _resolver
public SolrDocumentResult(SolrDocument document, AmetysObjectResolver resolver)
public AO getObject()
SearchResult
getObject
in interface SearchResult<AO extends AmetysObject>
public float getScore()
SearchResult
getScore
in interface SearchResult<AO extends AmetysObject>