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.SearchResult
SolrSearchResult is more complete than a SearchResult with the highlights and the site name.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the categoriesReturns the map of child documents, or null if none.Return the portlet identifierReturn all the dynamics fieldsReturn the hierarchical dateReturn the highlightReturn the metadatagetSite()Return the site nameReturn 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 metadatavoidSet the the site namevoidsetXmlContent(String strXmlContent) Set the XML contentMethods inherited from class fr.paris.lutece.portal.service.search.SearchResult
getDate, getId, getRoles, getSummary, getTitle, getType, getUrl, setDate, setId, setRole, setSummary, setTitle, setType, setUrl
-
Constructor Details
-
SolrSearchResult
public SolrSearchResult()
-
-
Method Details
-
getHighlight
Return the highlight- Returns:
- the highlight
-
setHighlight
Set the highlight- Parameters:
highlight- the highlight
-
getSite
Return the site name- Returns:
- the site name
-
setSite
Set the the site name- Parameters:
strSite- the site name
-
getCategorie
Return the categories- Returns:
- the list of categories
-
setCategorie
Set the categories- Parameters:
lstCategories- the list of categories
-
getMetadata
Return the metadata- Returns:
- the metadata
-
setMetadata
Set the metadata- Parameters:
strMetadata- the metadata
-
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
Set the dynamics fields- Parameters:
dynamicFields- the dynamics fields
-
getDocPortletId
Return the portlet identifier- Returns:
- the portlet identifier
-
setDocPortletId
Set the portlet identifier- Parameters:
strDocPortletId- the portlet identifier
-
getHieDate
Return the hierarchical date- Returns:
- the hierarchical date
-
setHieDate
Set the hierarchical date- Parameters:
strHieDate- the hierarchical date
-
getXmlContent
Return the XML content- Returns:
- the XML content
-
setXmlContent
Set the XML content- Parameters:
strXmlContent- the XML content
-
getChildDocuments
Returns the map of child documents, or null if none. -
setChildDocuments
Set child documents- Parameters:
children- the child document
-
putChildDocuments
-