fr.paris.lutece.plugins.search.solr.business
Class SolrSearchResult

java.lang.Object
  extended by fr.paris.lutece.portal.service.search.SearchResult
      extended by 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
SolrSearchResult()
           
 
Method Summary
 java.util.List<java.lang.String> getCategorie()
          Return the categories
 java.lang.String getDocPortletId()
          Return the portlet identifier
 java.util.Map<java.lang.String,java.lang.Object> getDynamicFields()
          Return all the dynamics fields
 java.lang.String getHieDate()
          Return the hierarchical date
 SolrHighlight getHighlight()
          Return the highlight
 java.lang.String getMetadata()
          Return the metadata
 java.lang.String getSite()
          Return the site name
 java.lang.String getXmlContent()
          Return the XML content
 void setCategorie(java.util.List<java.lang.String> lstCategories)
          Set the categories
 void setDocPortletId(java.lang.String strDocPortletId)
          Set the portlet identifier
 void setDynamicFields(java.util.Map<java.lang.String,java.lang.Object> dynamicFields)
          Set the dynamics fields
 void setHieDate(java.lang.String strHieDate)
          Set the hierarchical date
 void setHighlight(SolrHighlight highlight)
          Set the highlight
 void setMetadata(java.lang.String strMetadata)
          Set the metadata
 void setSite(java.lang.String strSite)
          Set the the site name
 void setXmlContent(java.lang.String strXmlContent)
          Set the XML content
 
Methods inherited from class fr.paris.lutece.portal.service.search.SearchResult
getDate, getId, getRoles, getSummary, getTitle, getType, getUrl, setDate, setId, setRole, setSummary, setTitle, setType, setUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrSearchResult

public SolrSearchResult()
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 java.lang.String getSite()
Return the site name

Returns:
the site name

setSite

public void setSite(java.lang.String strSite)
Set the the site name

Parameters:
strSite - the site name

getCategorie

public java.util.List<java.lang.String> getCategorie()
Return the categories

Returns:
the list of categories

setCategorie

public void setCategorie(java.util.List<java.lang.String> lstCategories)
Set the categories

Parameters:
lstCategories - the list of categories

getMetadata

public java.lang.String getMetadata()
Return the metadata

Returns:
the metadata

setMetadata

public void setMetadata(java.lang.String strMetadata)
Set the metadata

Parameters:
strMetadata - the metadata

getDynamicFields

public java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.Object> dynamicFields)
Set the dynamics fields

Parameters:
dynamicFields - the dynamics fields

getDocPortletId

public java.lang.String getDocPortletId()
Return the portlet identifier

Returns:
the portlet identifier

setDocPortletId

public void setDocPortletId(java.lang.String strDocPortletId)
Set the portlet identifier

Parameters:
strDocPortletId - the portlet identifier

getHieDate

public java.lang.String getHieDate()
Return the hierarchical date

Returns:
the hierarchical date

setHieDate

public void setHieDate(java.lang.String strHieDate)
Set the hierarchical date

Parameters:
strHieDate - the hierarchical date

getXmlContent

public java.lang.String getXmlContent()
Return the XML content

Returns:
the XML content

setXmlContent

public void setXmlContent(java.lang.String strXmlContent)
Set the XML content

Parameters:
strXmlContent - the XML content


Copyright © 2012 Mairie de Paris. All Rights Reserved.