Class SolrSearchResult
- java.lang.Object
-
- fr.paris.lutece.portal.service.search.SearchResult
-
- fr.paris.lutece.plugins.search.solr.business.SolrSearchResult
-
public class SolrSearchResult extends fr.paris.lutece.portal.service.search.SearchResultSolrSearchResult is more complete than a SearchResult with the highlights and the site name.
-
-
Constructor Summary
Constructors Constructor Description SolrSearchResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getCategorie()Return the categoriesMap<String,List<org.apache.solr.common.SolrDocument>>getChildDocuments()Returns the map of child documents, or null if none.StringgetDocPortletId()Return the portlet identifierMap<String,Object>getDynamicFields()Return all the dynamics fieldsStringgetHieDate()Return the hierarchical dateSolrHighlightgetHighlight()Return the highlightStringgetMetadata()Return the metadataStringgetSite()Return the site nameStringgetXmlContent()Return the XML contentvoidputChildDocuments(String strName, List<org.apache.solr.common.SolrDocument> children)voidsetCategorie(List<String> lstCategories)Set the categoriesvoidsetChildDocuments(Map<String,List<org.apache.solr.common.SolrDocument>> children)Set child documentsvoidsetDocPortletId(String strDocPortletId)Set the portlet identifiervoidsetDynamicFields(Map<String,Object> dynamicFields)Set the dynamics fieldsvoidsetHieDate(String strHieDate)Set the hierarchical datevoidsetHighlight(SolrHighlight highlight)Set the highlightvoidsetMetadata(String strMetadata)Set the metadatavoidsetSite(String strSite)Set the the site namevoidsetXmlContent(String strXmlContent)Set the XML content
-
-
-
Method Detail
-
getHighlight
public SolrHighlight getHighlight()
Return the highlight- Returns:
- the highlight
-
setHighlight
public void setHighlight(SolrHighlight highlight)
Set the highlight- Parameters:
highlight- the highlight
-
getSite
public String getSite()
Return the site name- Returns:
- the site name
-
setSite
public void setSite(String strSite)
Set the the site name- Parameters:
strSite- the site name
-
getCategorie
public List<String> getCategorie()
Return the categories- Returns:
- the list of categories
-
setCategorie
public void setCategorie(List<String> lstCategories)
Set the categories- Parameters:
lstCategories- the list of categories
-
getMetadata
public String getMetadata()
Return the metadata- Returns:
- the metadata
-
setMetadata
public void setMetadata(String strMetadata)
Set the metadata- Parameters:
strMetadata- the metadata
-
getDynamicFields
public Map<String,Object> getDynamicFields()
Return all the dynamics fields- Returns:
- A map which contains all the dynamics fields. The name of a dynamic field is like NAME_XXX where NAME is the name of the field and XXX a SolrItem dynamic type
-
setDynamicFields
public void setDynamicFields(Map<String,Object> dynamicFields)
Set the dynamics fields- Parameters:
dynamicFields- the dynamics fields
-
getDocPortletId
public String getDocPortletId()
Return the portlet identifier- Returns:
- the portlet identifier
-
setDocPortletId
public void setDocPortletId(String strDocPortletId)
Set the portlet identifier- Parameters:
strDocPortletId- the portlet identifier
-
getHieDate
public String getHieDate()
Return the hierarchical date- Returns:
- the hierarchical date
-
setHieDate
public void setHieDate(String strHieDate)
Set the hierarchical date- Parameters:
strHieDate- the hierarchical date
-
getXmlContent
public String getXmlContent()
Return the XML content- Returns:
- the XML content
-
setXmlContent
public void setXmlContent(String strXmlContent)
Set the XML content- Parameters:
strXmlContent- the XML content
-
getChildDocuments
public Map<String,List<org.apache.solr.common.SolrDocument>> getChildDocuments()
Returns the map of child documents, or null if none.
-
setChildDocuments
public void setChildDocuments(Map<String,List<org.apache.solr.common.SolrDocument>> children)
Set child documents- Parameters:
children- the child document
-
-