Package org.ametys.cms.search.solr
Class SolrDocumentResult<AO extends AmetysObject>
- java.lang.Object
-
- org.ametys.cms.search.solr.SolrDocumentResult<AO>
-
- All Implemented Interfaces:
SearchResult<AO>
class SolrDocumentResult<AO extends AmetysObject> extends Object implements SearchResult<AO>
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.solr.common.SolrDocument
_document
private AmetysObjectResolver
_resolver
-
Constructor Summary
Constructors Constructor Description SolrDocumentResult(org.apache.solr.common.SolrDocument document, AmetysObjectResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AO
getObject()
Get the result object.float
getScore()
Get the result score.
-
-
-
Field Detail
-
_document
private org.apache.solr.common.SolrDocument _document
-
_resolver
private AmetysObjectResolver _resolver
-
-
Constructor Detail
-
SolrDocumentResult
public SolrDocumentResult(org.apache.solr.common.SolrDocument document, AmetysObjectResolver resolver)
-
-
Method Detail
-
getObject
public AO getObject()
Description copied from interface:SearchResult
Get the result object.- Specified by:
getObject
in interfaceSearchResult<AO extends AmetysObject>
- Returns:
- The result object.
-
getScore
public float getScore()
Description copied from interface:SearchResult
Get the result score.- Specified by:
getScore
in interfaceSearchResult<AO extends AmetysObject>
- Returns:
- The result score.
-
-