org.silverpeas.search.searchEngine.model
Class MatchingIndexEntry

java.lang.Object
  extended by org.silverpeas.search.indexEngine.model.IndexEntry
      extended by org.silverpeas.search.searchEngine.model.MatchingIndexEntry
All Implemented Interfaces:
Serializable, Cloneable

public class MatchingIndexEntry
extends IndexEntry
implements Serializable

A MatchingIndexEntry is an IndexEntry completed with a score by the search engine.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.silverpeas.search.indexEngine.model.IndexEntry
ENDDATE_DEFAULT, STARTDATE_DEFAULT
 
Constructor Summary
MatchingIndexEntry(IndexEntryPK pk)
          The constructor set only the key part of the entry.
MatchingIndexEntry(String space, String component, String objectType, String objectId)
          The constructor set only the key part of the entry.
 
Method Summary
 List<String> getEmbeddedFileIds()
          List of all linked attachment in wysiwyg content
 String getPageAndParams()
          Returns web'activ logic parameters for the URL used to displayed this entry.
 String getParams()
           
 float getScore()
          Return the score of this entry according the request.
 Map<String,String> getSortableXMLFormFields()
          gets the list of Sortable fields if the content is a form XML
 Map<String,String> getXMLFormFieldsForFacets()
           
 void setEmbeddedFileIds(String[] embeddedFileIds)
          Set the list of all linked attachment in wysiwyg content
 void setScore(float score)
          Set the score of this entry.
 void setSortableXMLFormFields(HashMap<String,String> sortableXMLFormFields)
          Sets the Sortable fields if the content is a form XML
 void setXMLFormFieldsForFacets(Map<String,String> fields)
           
 
Methods inherited from class org.silverpeas.search.indexEngine.model.IndexEntry
clone, equals, getComponent, getCreationDate, getCreationUser, getEndDate, getFilename, getKeyWords, getKeywords, getLang, getLanguages, getLastModificationDate, getLastModificationUser, getObjectId, getObjectType, getPaths, getPK, getPreView, getPreview, getServerName, getStartDate, getThumbnail, getThumbnailDirectory, getThumbnailMimeType, getTitle, getTitle, hashCode, isAlias, isIndexId, setAlias, setCreationDate, setCreationDate, setCreationUser, setEndDate, setFilename, setIndexId, setKeyWords, setKeywords, setLang, setLastModificationDate, setLastModificationDate, setLastModificationUser, setPaths, setPK, setPreView, setPreview, setServerName, setStartDate, setThumbnail, setThumbnailDirectory, setThumbnailMimeType, setTitle, setTitle, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchingIndexEntry

public MatchingIndexEntry(String space,
                          String component,
                          String objectType,
                          String objectId)
The constructor set only the key part of the entry.


MatchingIndexEntry

public MatchingIndexEntry(IndexEntryPK pk)
The constructor set only the key part of the entry.

Method Detail

getScore

public float getScore()
Return the score of this entry according the request.


setScore

public void setScore(float score)
Set the score of this entry. Only the searchEngine should call this method.


getPageAndParams

public String getPageAndParams()
Returns web'activ logic parameters for the URL used to displayed this entry.


getParams

public String getParams()

getSortableXMLFormFields

public Map<String,String> getSortableXMLFormFields()
gets the list of Sortable fields if the content is a form XML

Returns:
the sortableXMLFormFields

setSortableXMLFormFields

public void setSortableXMLFormFields(HashMap<String,String> sortableXMLFormFields)
Sets the Sortable fields if the content is a form XML

Parameters:
sortableXMLFormFields - the sortableXMLFormFields to set

setEmbeddedFileIds

public void setEmbeddedFileIds(String[] embeddedFileIds)
Set the list of all linked attachment in wysiwyg content

Parameters:
embeddedFileIds - attachments ids separated by a blank space

getEmbeddedFileIds

public List<String> getEmbeddedFileIds()
List of all linked attachment in wysiwyg content


setXMLFormFieldsForFacets

public void setXMLFormFieldsForFacets(Map<String,String> fields)

getXMLFormFieldsForFacets

public Map<String,String> getXMLFormFieldsForFacets()


Copyright © 2016 Silverpeas. All Rights Reserved.