Package org.intermine.api.searchengine
Class KeywordSearchResultContainer<E>
- java.lang.Object
-
- org.intermine.api.searchengine.KeywordSearchResultContainer<E>
-
- Type Parameters:
E
- This is generic type for document. Currenly it used as a SolrDocument in solr.
public class KeywordSearchResultContainer<E> extends java.lang.Object
Container for individual Keyword Search Result The document type has been given as generic type.- Author:
- arunans23
-
-
Constructor Summary
Constructors Constructor Description KeywordSearchResultContainer(E document, InterMineObject object, float score)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getDocument()
document Type generic Eg: SolrInputDocument, DocumentInterMineObject
getObject()
objectfloat
getScore()
score
-
-
-
Constructor Detail
-
KeywordSearchResultContainer
public KeywordSearchResultContainer(E document, InterMineObject object, float score)
constructor- Parameters:
document
- Individual Document returned from the searchobject
- Intermine Object associated with the document. Matched by IDscore
- score value for that particular document. (Level of relation)
-
-
Method Detail
-
getScore
public float getScore()
score- Returns:
- score
-
getDocument
public E getDocument()
document Type generic Eg: SolrInputDocument, Document- Returns:
- document
-
getObject
public InterMineObject getObject()
object- Returns:
- intermineobject
-
-