fr.paris.lutece.plugins.search.solr.indexer
Class SolrItem

java.lang.Object
  extended by fr.paris.lutece.plugins.search.solr.indexer.SolrItem

public class SolrItem
extends java.lang.Object

An item that is easy to add to a SolrServer.


Field Summary
static java.lang.String DYNAMIC_DATE_FIELD_SUFFIX
           
static java.lang.String DYNAMIC_LIST_FIELD_SUFFIX
           
static java.lang.String DYNAMIC_LONG_FIELD_SUFFIX
           
static java.lang.String DYNAMIC_STRING_FIELD_SUFFIX
           
static java.lang.String DYNAMIC_TEXT_FIELD_SUFFIX
           
static java.lang.String DYNAMIC_URL_FIELD_SUFFIX
           
static java.lang.String FIELD_CATEGORIE
           
static java.lang.String FIELD_CONTENT
           
static java.lang.String FIELD_HIERATCHY_DATE
           
static java.lang.String FIELD_METADATA
           
static java.lang.String FIELD_SITE
           
static java.lang.String FIELD_XML_CONTENT
           
 
Constructor Summary
SolrItem()
          Creates a new SolrItem
 
Method Summary
 void addDynamicField(java.lang.String strName, java.util.Date dValue)
          Add a dynamic field
 void addDynamicField(java.lang.String strName, java.util.List<java.lang.String> strValue)
          Add a dynamic field
 void addDynamicField(java.lang.String strName, java.lang.Long lValue)
          Add a dynamic field
 void addDynamicField(java.lang.String strName, java.lang.String strValue)
          Add a dynamic field
 void addDynamicFieldNotAnalysed(java.lang.String strName, java.lang.String strValue)
          Add a dynamic field
 java.util.List<java.lang.String> getCategorie()
           
 java.lang.String getContent()
          Gets the content
 java.util.Date getDate()
          Return the date
 java.lang.String getDocPortletId()
          Gets the portlet document id
 java.util.Map<java.lang.String,java.lang.Object> getDynamicFields()
          Returns list of all dynamic fields
 java.lang.String getHieDate()
           
 java.lang.String getMetadata()
          Gets the metadata
 java.lang.String getRole()
          Gets the role
 java.lang.String getSite()
          Gets the site
 java.lang.String getSummary()
          Gets the summary
 java.lang.String getTitle()
          Gets the title
 java.lang.String getType()
          Gets the type
 java.lang.String getUid()
          Gets the id
 java.lang.String getUrl()
          Gets the url
 java.lang.String getXmlContent()
           
 void setCategorie(java.util.List<java.lang.String> strCategorie)
           
 void setContent(java.lang.String strContent)
          Sets the content
 void setDate(java.util.Date lDate)
          Sets the date
 void setDocPortletId(java.lang.String strDocPortletId)
          Sets the portlet document id
 void setHieDate(java.lang.String strHieDate)
           
 void setMetadata(java.lang.String strMetadata)
          Sets the metadata
 void setRole(java.lang.String strRole)
          Sets the role
 void setSite(java.lang.String strSite)
          Sets the site name
 void setSummary(java.lang.String strSummary)
          Sets the summary
 void setTitle(java.lang.String strTitle)
          Sets the title
 void setType(java.lang.String strType)
          Sets the type
 void setUid(java.lang.String strUid)
          Sets the id
 void setUrl(java.lang.String strUrl)
          Sets the url
 void setXmlContent(java.lang.String strXmlContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_CONTENT

public static final java.lang.String FIELD_CONTENT
See Also:
Constant Field Values

FIELD_SITE

public static final java.lang.String FIELD_SITE
See Also:
Constant Field Values

FIELD_XML_CONTENT

public static final java.lang.String FIELD_XML_CONTENT
See Also:
Constant Field Values

FIELD_CATEGORIE

public static final java.lang.String FIELD_CATEGORIE
See Also:
Constant Field Values

FIELD_HIERATCHY_DATE

public static final java.lang.String FIELD_HIERATCHY_DATE
See Also:
Constant Field Values

FIELD_METADATA

public static final java.lang.String FIELD_METADATA
See Also:
Constant Field Values

DYNAMIC_STRING_FIELD_SUFFIX

public static final java.lang.String DYNAMIC_STRING_FIELD_SUFFIX
See Also:
Constant Field Values

DYNAMIC_TEXT_FIELD_SUFFIX

public static final java.lang.String DYNAMIC_TEXT_FIELD_SUFFIX
See Also:
Constant Field Values

DYNAMIC_URL_FIELD_SUFFIX

public static final java.lang.String DYNAMIC_URL_FIELD_SUFFIX
See Also:
Constant Field Values

DYNAMIC_DATE_FIELD_SUFFIX

public static final java.lang.String DYNAMIC_DATE_FIELD_SUFFIX
See Also:
Constant Field Values

DYNAMIC_LONG_FIELD_SUFFIX

public static final java.lang.String DYNAMIC_LONG_FIELD_SUFFIX
See Also:
Constant Field Values

DYNAMIC_LIST_FIELD_SUFFIX

public static final java.lang.String DYNAMIC_LIST_FIELD_SUFFIX
See Also:
Constant Field Values
Constructor Detail

SolrItem

public SolrItem()
Creates a new SolrItem

Method Detail

getDynamicFields

public java.util.Map<java.lang.String,java.lang.Object> getDynamicFields()
Returns list of all dynamic fields

Returns:
the list of all dynamic fields

addDynamicField

public void addDynamicField(java.lang.String strName,
                            java.util.Date dValue)
Add a dynamic field

Parameters:
strName - the name of the field
dValue - the value of the field

addDynamicField

public void addDynamicField(java.lang.String strName,
                            java.lang.Long lValue)
Add a dynamic field

Parameters:
strName - the name of the field
dValue - the value of the field

addDynamicField

public void addDynamicField(java.lang.String strName,
                            java.lang.String strValue)
Add a dynamic field

Parameters:
strName - the name of the field
dValue - the value of the field

addDynamicField

public void addDynamicField(java.lang.String strName,
                            java.util.List<java.lang.String> strValue)
Add a dynamic field

Parameters:
strName - the name of the field
dValue - the value of the field

addDynamicFieldNotAnalysed

public void addDynamicFieldNotAnalysed(java.lang.String strName,
                                       java.lang.String strValue)
Add a dynamic field

Parameters:
strName - the name of the field
dValue - the value of the field

getUrl

public java.lang.String getUrl()
Gets the url

Returns:
the url

setUrl

public void setUrl(java.lang.String strUrl)
Sets the url

Parameters:
strUrl - the url

getDate

public java.util.Date getDate()
Return the date

Returns:
the date

setDate

public void setDate(java.util.Date lDate)
Sets the date

Parameters:
lDate - the date

getTitle

public java.lang.String getTitle()
Gets the title

Returns:
the title

setTitle

public void setTitle(java.lang.String strTitle)
Sets the title

Parameters:
strTitle - the title

getUid

public java.lang.String getUid()
Gets the id

Returns:
the id

setUid

public void setUid(java.lang.String strUid)
Sets the id

Parameters:
strUid - the id

getContent

public java.lang.String getContent()
Gets the content

Returns:
the content

setContent

public void setContent(java.lang.String strContent)
Sets the content

Parameters:
strContent - the content

getSite

public java.lang.String getSite()
Gets the site

Returns:
the site name

setSite

public void setSite(java.lang.String strSite)
Sets the site name

Parameters:
strSite - the site name

getSummary

public java.lang.String getSummary()
Gets the summary

Returns:
the summary

setSummary

public void setSummary(java.lang.String strSummary)
Sets the summary

Parameters:
strSummary - the summary

getType

public java.lang.String getType()
Gets the type

Returns:
the type

setType

public void setType(java.lang.String strType)
Sets the type

Parameters:
strType - the type

getRole

public java.lang.String getRole()
Gets the role

Returns:
the role

setRole

public void setRole(java.lang.String strRole)
Sets the role

Parameters:
strRole - the role

getXmlContent

public java.lang.String getXmlContent()

setXmlContent

public void setXmlContent(java.lang.String strXmlContent)

getCategorie

public java.util.List<java.lang.String> getCategorie()

setCategorie

public void setCategorie(java.util.List<java.lang.String> strCategorie)

getHieDate

public java.lang.String getHieDate()

setHieDate

public void setHieDate(java.lang.String strHieDate)

getMetadata

public java.lang.String getMetadata()
Gets the metadata

Returns:
the metadata

setMetadata

public void setMetadata(java.lang.String strMetadata)
Sets the metadata

Parameters:
strMetadata - the metadata

getDocPortletId

public java.lang.String getDocPortletId()
Gets the portlet document id

Returns:
the portlet document id

setDocPortletId

public void setDocPortletId(java.lang.String strDocPortletId)
Sets the portlet document id

Parameters:
strDocPortletId - the portlet document id


Copyright © 2012 Mairie de Paris. All Rights Reserved.