Class SolrItem
java.lang.Object
fr.paris.lutece.plugins.search.solr.indexer.SolrItem
An item that is easy to add to a SolrServer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildDocument(String strName, SolrItem child) voidaddChildDocuments(String strName, Collection<SolrItem> children) voidaddDynamicField(String strName, Float value) Add a dynamic fieldvoidaddDynamicField(String strName, Long lValue) Add a dynamic fieldvoidaddDynamicField(String strName, String strValue) Add a dynamic fieldvoidaddDynamicField(String strName, Date dValue) Add a dynamic fieldvoidaddDynamicField(String strName, List<String> strValue) Add a dynamic fieldvoidaddDynamicFieldGeoloc(String strName, fr.paris.lutece.plugins.leaflet.business.GeolocItem geolocItem, String codeDocumentType) Add a dynamic fieldvoidaddDynamicFieldGeoloc(String strName, String strAdress, double dLongitude, double dLatitude, String codeDocumentType) Add a dynamic fieldvoidaddDynamicFieldGeoloc(String strName, String strValue, String codeDocumentType) Add a dynamic fieldvoidaddDynamicFieldListDate(String strName, List<Date> dateValue) Add a dynamic fieldvoidaddDynamicFieldNotAnalysed(String strName, String strValue) Add a dynamic fieldReturns the list of child documents, or null if none.Map<String,Collection<org.apache.solr.common.SolrInputDocument>> Returns the list of child documents, or null if none.Gets the contentgetDate()Return the dateGets the portlet document idReturns list of all dynamic fieldsGets the metadatagetRole()Gets the roleReturns the list of child solr documents, or null if none.getSite()Gets the siteGets the summarygetTitle()Gets the titlegetType()Gets the typegetUid()Gets the idgetUrl()Gets the urlbooleanvoidsetCategorie(List<String> strCategorie) voidsetContent(String strContent) Sets the contentvoidSets the datevoidsetDocPortletId(String strDocPortletId) Sets the portlet document idvoidsetFileContent(String strFileContent) voidsetHieDate(String strHieDate) voidsetIdResource(String strIdresource) voidsetMetadata(String strMetadata) Sets the metadatavoidSets the rolevoidSets the site namevoidsetSummary(String strSummary) Sets the summaryvoidSets the titlevoidSets the typevoidSets the idvoidSets the urlvoidsetXmlContent(String strXmlContent)
-
Field Details
-
FIELD_CONTENT
- See Also:
-
FIELD_SITE
- See Also:
-
FIELD_XML_CONTENT
- See Also:
-
FIELD_FILE_CONTENT
- See Also:
-
FIELD_CATEGORIE
- See Also:
-
FIELD_HIERATCHY_DATE
- See Also:
-
FIELD_METADATA
- See Also:
-
FIELD_ID_RESOURCE
- See Also:
-
DYNAMIC_STRING_FIELD_SUFFIX
- See Also:
-
DYNAMIC_TEXT_FIELD_SUFFIX
- See Also:
-
DYNAMIC_URL_FIELD_SUFFIX
- See Also:
-
DYNAMIC_DATE_FIELD_SUFFIX
- See Also:
-
DYNAMIC_LIST_DATE_FIELD_SUFFIX
- See Also:
-
DYNAMIC_LONG_FIELD_SUFFIX
- See Also:
-
DYNAMIC_LIST_FIELD_SUFFIX
- See Also:
-
DYNAMIC_GEOLOC_FIELD_SUFFIX
- See Also:
-
DYNAMIC_GEOJSON_FIELD_SUFFIX
- See Also:
-
DYNAMIC_FLOAT_FIELD_SUFFIX
- See Also:
-
DYNAMIC_GEOJSON_ADDRESS_FIELD_SUFFIX
- See Also:
-
FIELD_CHILD_DOCUMENTS
- See Also:
-
-
Constructor Details
-
SolrItem
public SolrItem()
-
-
Method Details
-
getDynamicFields
Returns list of all dynamic fields- Returns:
- the list of all dynamic fields
-
addDynamicField
Add a dynamic field- Parameters:
strName- the name of the fielddValue- the value of the field
-
addDynamicField
Add a dynamic field- Parameters:
strName- the name of the fielddValue- the value of the field
-
addDynamicField
Add a dynamic field- Parameters:
strName- the name of the fielddValue- the value of the field
-
addDynamicField
Add a dynamic field- Parameters:
strName- the name of the fielddValue- the value of the field
-
addDynamicFieldListDate
Add a dynamic field- Parameters:
strName- the name of the fielddateValue- the value of the field
-
addDynamicFieldNotAnalysed
Add a dynamic field- Parameters:
strName- the name of the fielddValue- 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 fieldgeolocItem- a GeolocItemcodeDocumentType- the codeDocumentType
-
addDynamicField
Add a dynamic field- Parameters:
strName- the name of the fieldvalue- 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 fieldstrAdress- the adress of the fielddLongitude- the longitude of the fielddLatitude- the latitude of the fieldcodeDocumentType- the codeDocumentType
-
addDynamicFieldGeoloc
Add a dynamic field- Parameters:
strName- the name of the fieldstrValue- the value of the field which should be a geojson stringcodeDocumentType- the codeDocumentType
-
getUrl
Gets the url- Returns:
- the url
-
setUrl
Sets the url- Parameters:
strUrl- the url
-
getDate
Return the date- Returns:
- the date
-
setDate
Sets the date- Parameters:
lDate- the date
-
getTitle
Gets the title- Returns:
- the title
-
setTitle
Sets the title- Parameters:
strTitle- the title
-
getUid
Gets the id- Returns:
- the id
-
setUid
Sets the id- Parameters:
strUid- the id
-
getContent
Gets the content- Returns:
- the content
-
setContent
Sets the content- Parameters:
strContent- the content
-
getSite
Gets the site- Returns:
- the site name
-
setSite
Sets the site name- Parameters:
strSite- the site name
-
getSummary
Gets the summary- Returns:
- the summary
-
setSummary
Sets the summary- Parameters:
strSummary- the summary
-
getType
Gets the type- Returns:
- the type
-
setType
Sets the type- Parameters:
strType- the type
-
getRole
Gets the role- Returns:
- the role
-
setRole
Sets the role- Parameters:
strRole- the role
-
getXmlContent
-
setXmlContent
-
getCategorie
-
setCategorie
-
getHieDate
-
setHieDate
-
getMetadata
Gets the metadata- Returns:
- the metadata
-
setMetadata
Sets the metadata- Parameters:
strMetadata- the metadata
-
getDocPortletId
Gets the portlet document id- Returns:
- the portlet document id
-
setDocPortletId
Sets the portlet document id- Parameters:
strDocPortletId- the portlet document id
-
getFileContent
- Returns:
- the strFileContent
-
setFileContent
- Parameters:
strFileContent- the strFileContent to set
-
getIdResource
- Returns:
- the strIdresource
-
setIdResource
- Parameters:
strIdresource- the resource id to set
-
addChildDocument
-
addChildDocuments
-
getChildDocuments
Returns the list of child documents, or null if none. -
getSearchChilDocuments
Returns the list of child solr documents, or null if none. -
getChilSolrInputDocument
Returns the list of child documents, or null if none. -
hasChildDocuments
public boolean hasChildDocuments()
-