Class SolrSearchResult


  • public class SolrSearchResult
    extends fr.paris.lutece.portal.service.search.SearchResult
    SolrSearchResult is more complete than a SearchResult with the highlights and the site name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getCategorie()
      Return the categories
      java.util.Map<java.lang.String,​java.util.List<org.apache.solr.common.SolrDocument>> getChildDocuments()
      Returns the map of child documents, or null if none.
      java.lang.String getDocPortletId()
      Return the portlet identifier
      java.util.Map<java.lang.String,​java.lang.Object> getDynamicFields()
      Return all the dynamics fields
      java.lang.String getHieDate()
      Return the hierarchical date
      SolrHighlight getHighlight()
      Return the highlight
      java.lang.String getMetadata()
      Return the metadata
      java.lang.String getSite()
      Return the site name
      java.lang.String getXmlContent()
      Return the XML content
      void putChildDocuments​(java.lang.String strName, java.util.List<org.apache.solr.common.SolrDocument> children)  
      void setCategorie​(java.util.List<java.lang.String> lstCategories)
      Set the categories
      void setChildDocuments​(java.util.Map<java.lang.String,​java.util.List<org.apache.solr.common.SolrDocument>> children)
      Set child documents
      void setDocPortletId​(java.lang.String strDocPortletId)
      Set the portlet identifier
      void setDynamicFields​(java.util.Map<java.lang.String,​java.lang.Object> dynamicFields)
      Set the dynamics fields
      void setHieDate​(java.lang.String strHieDate)
      Set the hierarchical date
      void setHighlight​(SolrHighlight highlight)
      Set the highlight
      void setMetadata​(java.lang.String strMetadata)
      Set the metadata
      void setSite​(java.lang.String strSite)
      Set the the site name
      void setXmlContent​(java.lang.String strXmlContent)
      Set the XML content
      • Methods inherited from class fr.paris.lutece.portal.service.search.SearchResult

        getDate, getId, getRoles, getSummary, getTitle, getType, getUrl, setDate, setId, setRole, setSummary, setTitle, setType, setUrl
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolrSearchResult

        public SolrSearchResult()
    • Method Detail

      • getHighlight

        public SolrHighlight getHighlight()
        Return the highlight
        Returns:
        the highlight
      • setHighlight

        public void setHighlight​(SolrHighlight highlight)
        Set the highlight
        Parameters:
        highlight - the highlight
      • getSite

        public java.lang.String getSite()
        Return the site name
        Returns:
        the site name
      • setSite

        public void setSite​(java.lang.String strSite)
        Set the the site name
        Parameters:
        strSite - the site name
      • getCategorie

        public java.util.List<java.lang.String> getCategorie()
        Return the categories
        Returns:
        the list of categories
      • setCategorie

        public void setCategorie​(java.util.List<java.lang.String> lstCategories)
        Set the categories
        Parameters:
        lstCategories - the list of categories
      • getMetadata

        public java.lang.String getMetadata()
        Return the metadata
        Returns:
        the metadata
      • setMetadata

        public void setMetadata​(java.lang.String strMetadata)
        Set the metadata
        Parameters:
        strMetadata - the metadata
      • getDynamicFields

        public java.util.Map<java.lang.String,​java.lang.Object> getDynamicFields()
        Return all the dynamics fields
        Returns:
        A map which contains all the dynamics fields. The name of a dynamic field is like NAME_XXX where NAME is the name of the field and XXX a SolrItem dynamic type
      • setDynamicFields

        public void setDynamicFields​(java.util.Map<java.lang.String,​java.lang.Object> dynamicFields)
        Set the dynamics fields
        Parameters:
        dynamicFields - the dynamics fields
      • getDocPortletId

        public java.lang.String getDocPortletId()
        Return the portlet identifier
        Returns:
        the portlet identifier
      • setDocPortletId

        public void setDocPortletId​(java.lang.String strDocPortletId)
        Set the portlet identifier
        Parameters:
        strDocPortletId - the portlet identifier
      • getHieDate

        public java.lang.String getHieDate()
        Return the hierarchical date
        Returns:
        the hierarchical date
      • setHieDate

        public void setHieDate​(java.lang.String strHieDate)
        Set the hierarchical date
        Parameters:
        strHieDate - the hierarchical date
      • getXmlContent

        public java.lang.String getXmlContent()
        Return the XML content
        Returns:
        the XML content
      • setXmlContent

        public void setXmlContent​(java.lang.String strXmlContent)
        Set the XML content
        Parameters:
        strXmlContent - the XML content
      • getChildDocuments

        public java.util.Map<java.lang.String,​java.util.List<org.apache.solr.common.SolrDocument>> getChildDocuments()
        Returns the map of child documents, or null if none.
      • setChildDocuments

        public void setChildDocuments​(java.util.Map<java.lang.String,​java.util.List<org.apache.solr.common.SolrDocument>> children)
        Set child documents
        Parameters:
        children - the child document
      • putChildDocuments

        public void putChildDocuments​(java.lang.String strName,
                                      java.util.List<org.apache.solr.common.SolrDocument> children)