Class 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 Detail

      • KeywordSearchResultContainer

        public KeywordSearchResultContainer​(E document,
                                            InterMineObject object,
                                            float score)
        constructor
        Parameters:
        document - Individual Document returned from the search
        object - Intermine Object associated with the document. Matched by ID
        score - 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