Class SolrSearchResult

java.lang.Object
fr.paris.lutece.portal.service.search.SearchResult
fr.paris.lutece.plugins.search.solr.business.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.
  • Constructor Details

    • SolrSearchResult

      public SolrSearchResult()
  • Method Details

    • 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 String getSite()
      Return the site name
      Returns:
      the site name
    • setSite

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

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

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

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

      public void setMetadata(String strMetadata)
      Set the metadata
      Parameters:
      strMetadata - the metadata
    • getDynamicFields

      public Map<String,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(Map<String,Object> dynamicFields)
      Set the dynamics fields
      Parameters:
      dynamicFields - the dynamics fields
    • getDocPortletId

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

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

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

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

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

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

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

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

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