Class SolrItem


  • public class SolrItem
    extends Object
    An item that is easy to add to a SolrServer.
    • Constructor Detail

      • SolrItem

        public SolrItem()
    • Method Detail

      • getDynamicFields

        public Map<String,​Object> getDynamicFields()
        Returns list of all dynamic fields
        Returns:
        the list of all dynamic fields
      • addDynamicField

        public void addDynamicField​(String strName,
                                    Date dValue)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        dValue - the value of the field
      • addDynamicField

        public void addDynamicField​(String strName,
                                    Long lValue)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        dValue - the value of the field
      • addDynamicField

        public void addDynamicField​(String strName,
                                    String strValue)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        dValue - the value of the field
      • addDynamicField

        public void addDynamicField​(String strName,
                                    List<String> strValue)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        dValue - the value of the field
      • addDynamicFieldListDate

        public void addDynamicFieldListDate​(String strName,
                                            List<Date> dateValue)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        dateValue - the value of the field
      • addDynamicFieldNotAnalysed

        public void addDynamicFieldNotAnalysed​(String strName,
                                               String strValue)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        dValue - the value of the field
      • addDynamicFieldGeoloc

        public void addDynamicFieldGeoloc​(String strName,
                                          fr.paris.lutece.plugins.leaflet.business.GeolocItem geolocItem,
                                          String codeDocumentType)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        geolocItem - a GeolocItem
        codeDocumentType - the codeDocumentType
      • addDynamicField

        public void addDynamicField​(String strName,
                                    Float value)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        value - the value of the field
      • addDynamicFieldGeoloc

        public void addDynamicFieldGeoloc​(String strName,
                                          String strAdress,
                                          double dLongitude,
                                          double dLatitude,
                                          String codeDocumentType)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        strAdress - the adress of the field
        dLongitude - the longitude of the field
        dLatitude - the latitude of the field
        codeDocumentType - the codeDocumentType
      • addDynamicFieldGeoloc

        public void addDynamicFieldGeoloc​(String strName,
                                          String strValue,
                                          String codeDocumentType)
        Add a dynamic field
        Parameters:
        strName - the name of the field
        strValue - the value of the field which should be a geojson string
        codeDocumentType - the codeDocumentType
      • getUrl

        public String getUrl()
        Gets the url
        Returns:
        the url
      • setUrl

        public void setUrl​(String strUrl)
        Sets the url
        Parameters:
        strUrl - the url
      • getDate

        public Date getDate()
        Return the date
        Returns:
        the date
      • setDate

        public void setDate​(Date lDate)
        Sets the date
        Parameters:
        lDate - the date
      • getTitle

        public String getTitle()
        Gets the title
        Returns:
        the title
      • setTitle

        public void setTitle​(String strTitle)
        Sets the title
        Parameters:
        strTitle - the title
      • getUid

        public String getUid()
        Gets the id
        Returns:
        the id
      • setUid

        public void setUid​(String strUid)
        Sets the id
        Parameters:
        strUid - the id
      • getContent

        public String getContent()
        Gets the content
        Returns:
        the content
      • setContent

        public void setContent​(String strContent)
        Sets the content
        Parameters:
        strContent - the content
      • getSite

        public String getSite()
        Gets the site
        Returns:
        the site name
      • setSite

        public void setSite​(String strSite)
        Sets the site name
        Parameters:
        strSite - the site name
      • getSummary

        public String getSummary()
        Gets the summary
        Returns:
        the summary
      • setSummary

        public void setSummary​(String strSummary)
        Sets the summary
        Parameters:
        strSummary - the summary
      • getType

        public String getType()
        Gets the type
        Returns:
        the type
      • setType

        public void setType​(String strType)
        Sets the type
        Parameters:
        strType - the type
      • getRole

        public String getRole()
        Gets the role
        Returns:
        the role
      • setRole

        public void setRole​(String strRole)
        Sets the role
        Parameters:
        strRole - the role
      • getXmlContent

        public String getXmlContent()
      • setXmlContent

        public void setXmlContent​(String strXmlContent)
      • getCategorie

        public List<String> getCategorie()
      • setCategorie

        public void setCategorie​(List<String> strCategorie)
      • getHieDate

        public String getHieDate()
      • setHieDate

        public void setHieDate​(String strHieDate)
      • getMetadata

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

        public void setMetadata​(String strMetadata)
        Sets the metadata
        Parameters:
        strMetadata - the metadata
      • getDocPortletId

        public String getDocPortletId()
        Gets the portlet document id
        Returns:
        the portlet document id
      • setDocPortletId

        public void setDocPortletId​(String strDocPortletId)
        Sets the portlet document id
        Parameters:
        strDocPortletId - the portlet document id
      • getFileContent

        public String getFileContent()
        Returns:
        the strFileContent
      • setFileContent

        public void setFileContent​(String strFileContent)
        Parameters:
        strFileContent - the strFileContent to set
      • getIdResource

        public String getIdResource()
        Returns:
        the strIdresource
      • setIdResource

        public void setIdResource​(String strIdresource)
        Parameters:
        strIdresource - the resource id to set
      • addChildDocument

        public void addChildDocument​(String strName,
                                     SolrItem child)
      • getChildDocuments

        public Map<String,​Collection<SolrItem>> getChildDocuments()
        Returns the list of child documents, or null if none.
      • getSearchChilDocuments

        public Map<String,​List<org.apache.solr.common.SolrDocument>> getSearchChilDocuments()
        Returns the list of child solr documents, or null if none.
      • getChilSolrInputDocument

        public Map<String,​Collection<org.apache.solr.common.SolrInputDocument>> getChilSolrInputDocument()
        Returns the list of child documents, or null if none.
      • hasChildDocuments

        public boolean hasChildDocuments()