public class SolrItem extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DYNAMIC_DATE_FIELD_SUFFIX |
static String |
DYNAMIC_GEOJSON_ADDRESS_FIELD_SUFFIX |
static String |
DYNAMIC_GEOJSON_FIELD_SUFFIX |
static String |
DYNAMIC_GEOLOC_FIELD_SUFFIX |
static String |
DYNAMIC_LIST_DATE_FIELD_SUFFIX |
static String |
DYNAMIC_LIST_FIELD_SUFFIX |
static String |
DYNAMIC_LONG_FIELD_SUFFIX |
static String |
DYNAMIC_STRING_FIELD_SUFFIX |
static String |
DYNAMIC_TEXT_FIELD_SUFFIX |
static String |
DYNAMIC_URL_FIELD_SUFFIX |
static String |
FIELD_CATEGORIE |
static String |
FIELD_CONTENT |
static String |
FIELD_FILE_CONTENT |
static String |
FIELD_HIERATCHY_DATE |
static String |
FIELD_METADATA |
static String |
FIELD_SITE |
static String |
FIELD_XML_CONTENT |
| Constructor and Description |
|---|
SolrItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDynamicField(String strName,
Date dValue)
Add a dynamic field
|
void |
addDynamicField(String strName,
List<String> strValue)
Add a dynamic field
|
void |
addDynamicField(String strName,
Long lValue)
Add a dynamic field
|
void |
addDynamicField(String strName,
String strValue)
Add a dynamic field
|
void |
addDynamicFieldGeoloc(String strName,
fr.paris.lutece.plugins.leaflet.business.GeolocItem geolocItem,
String codeDocumentType)
Add a dynamic field
|
void |
addDynamicFieldGeoloc(String strName,
String strAdress,
double dLongitude,
double dLatitude,
String codeDocumentType)
Add a dynamic field
|
void |
addDynamicFieldGeoloc(String strName,
String strValue,
String codeDocumentType)
Add a dynamic field
|
void |
addDynamicFieldListDate(String strName,
List<Date> dateValue)
Add a dynamic field
|
void |
addDynamicFieldNotAnalysed(String strName,
String strValue)
Add a dynamic field
|
List<String> |
getCategorie() |
String |
getContent()
Gets the content
|
Date |
getDate()
Return the date
|
String |
getDocPortletId()
Gets the portlet document id
|
Map<String,Object> |
getDynamicFields()
Returns list of all dynamic fields
|
String |
getFileContent() |
String |
getHieDate() |
String |
getMetadata()
Gets the metadata
|
String |
getRole()
Gets the role
|
String |
getSite()
Gets the site
|
String |
getSummary()
Gets the summary
|
String |
getTitle()
Gets the title
|
String |
getType()
Gets the type
|
String |
getUid()
Gets the id
|
String |
getUrl()
Gets the url
|
String |
getXmlContent() |
void |
setCategorie(List<String> strCategorie) |
void |
setContent(String strContent)
Sets the content
|
void |
setDate(Date lDate)
Sets the date
|
void |
setDocPortletId(String strDocPortletId)
Sets the portlet document id
|
void |
setFileContent(String strFileContent) |
void |
setHieDate(String strHieDate) |
void |
setMetadata(String strMetadata)
Sets the metadata
|
void |
setRole(String strRole)
Sets the role
|
void |
setSite(String strSite)
Sets the site name
|
void |
setSummary(String strSummary)
Sets the summary
|
void |
setTitle(String strTitle)
Sets the title
|
void |
setType(String strType)
Sets the type
|
void |
setUid(String strUid)
Sets the id
|
void |
setUrl(String strUrl)
Sets the url
|
void |
setXmlContent(String strXmlContent) |
public static final String FIELD_CONTENT
public static final String FIELD_SITE
public static final String FIELD_XML_CONTENT
public static final String FIELD_FILE_CONTENT
public static final String FIELD_CATEGORIE
public static final String FIELD_HIERATCHY_DATE
public static final String FIELD_METADATA
public static final String DYNAMIC_STRING_FIELD_SUFFIX
public static final String DYNAMIC_TEXT_FIELD_SUFFIX
public static final String DYNAMIC_URL_FIELD_SUFFIX
public static final String DYNAMIC_DATE_FIELD_SUFFIX
public static final String DYNAMIC_LIST_DATE_FIELD_SUFFIX
public static final String DYNAMIC_LONG_FIELD_SUFFIX
public static final String DYNAMIC_LIST_FIELD_SUFFIX
public static final String DYNAMIC_GEOLOC_FIELD_SUFFIX
public static final String DYNAMIC_GEOJSON_FIELD_SUFFIX
public static final String DYNAMIC_GEOJSON_ADDRESS_FIELD_SUFFIX
public Map<String,Object> getDynamicFields()
public void addDynamicField(String strName, Date dValue)
strName - the name of the fielddValue - the value of the fieldpublic void addDynamicField(String strName, Long lValue)
strName - the name of the fielddValue - the value of the fieldpublic void addDynamicField(String strName, String strValue)
strName - the name of the fielddValue - the value of the fieldpublic void addDynamicField(String strName, List<String> strValue)
strName - the name of the fielddValue - the value of the fieldpublic void addDynamicFieldListDate(String strName, List<Date> dateValue)
strName - the name of the fielddateValue - the value of the fieldpublic void addDynamicFieldNotAnalysed(String strName, String strValue)
strName - the name of the fielddValue - the value of the fieldpublic void addDynamicFieldGeoloc(String strName, fr.paris.lutece.plugins.leaflet.business.GeolocItem geolocItem, String codeDocumentType)
strName - the name of the fieldgeolocItem - a GeolocItemcodeDocumentType - the codeDocumentTypepublic void addDynamicFieldGeoloc(String strName, String strAdress, double dLongitude, double dLatitude, String codeDocumentType)
strName - the name of the fieldstrAdress - the adress of the fielddLongitude - the longitude of the fielddLatitude - the latitude of the fieldcodeDocumentType - the codeDocumentTypepublic void addDynamicFieldGeoloc(String strName, String strValue, String codeDocumentType)
strName - the name of the fieldstrValue - the value of the field which should be a geojson stringcodeDocumentType - the codeDocumentTypepublic String getUrl()
public void setUrl(String strUrl)
strUrl - the urlpublic Date getDate()
public void setDate(Date lDate)
lDate - the datepublic String getTitle()
public void setTitle(String strTitle)
strTitle - the titlepublic String getUid()
public void setUid(String strUid)
strUid - the idpublic String getContent()
public void setContent(String strContent)
strContent - the contentpublic String getSite()
public void setSite(String strSite)
strSite - the site namepublic String getSummary()
public void setSummary(String strSummary)
strSummary - the summarypublic String getType()
public void setType(String strType)
strType - the typepublic String getRole()
public void setRole(String strRole)
strRole - the rolepublic String getXmlContent()
public void setXmlContent(String strXmlContent)
public String getHieDate()
public void setHieDate(String strHieDate)
public String getMetadata()
public void setMetadata(String strMetadata)
strMetadata - the metadatapublic String getDocPortletId()
public void setDocPortletId(String strDocPortletId)
strDocPortletId - the portlet document idpublic String getFileContent()
public void setFileContent(String strFileContent)
strFileContent - the strFileContent to setCopyright © 2021 City of Paris. All rights reserved.