Class SolrSearchItem
java.lang.Object
fr.paris.lutece.plugins.search.solr.business.SolrSearchItem
A SearchItem
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorSolrSearchItem(org.apache.solr.common.SolrDocument document) Creates and fills a SolrSearchItem form a SolrDocument -
Method Summary
Modifier and TypeMethodDescriptiongetDate()Return the dategetId()Return the idgetRole()Return the rolegetSite()Return the site name.Return the summarygetTitle()Return the titlegetType()Return the typegetUrl()Return the urlvoidSet the datevoidSets the idvoidSet the rolevoidSets the site name.voidsetSummary(String strSummary) Set the summaryvoidSet the titlevoidSet the typevoidSet the url
-
Constructor Details
-
SolrSearchItem
public SolrSearchItem()Empty constructor -
SolrSearchItem
public SolrSearchItem(org.apache.solr.common.SolrDocument document) Creates and fills a SolrSearchItem form a SolrDocument- Parameters:
document- the document
-
-
Method Details
-
getId
Return the id- Returns:
- the id
-
setId
Sets the id- Parameters:
strId- the id
-
getType
Return the type- Returns:
- the type
-
setType
Set the type- Parameters:
strType- the type
-
getTitle
Return the title- Returns:
- the title
-
setTitle
Set the title- Parameters:
strTitle- the title
-
getSummary
Return the summary- Returns:
- the summary
-
setSummary
Set the summary- Parameters:
strSummary- the summary
-
getUrl
Return the url- Returns:
- the url
-
setUrl
Set the url- Parameters:
strUrl- the url
-
getDate
Return the date- Returns:
- the date
-
setDate
Set the date- Parameters:
date- the date.
-
getRole
Return the role- Returns:
- the role
-
setRole
Set the role- Parameters:
strRole- the role
-
getSite
Return the site name.- Returns:
- the site name.
-
setSite
Sets the site name.- Parameters:
strSite- the new site name.
-