Class MatchingIndexEntry
- java.lang.Object
-
- org.silverpeas.core.index.indexing.model.IndexEntry
-
- org.silverpeas.core.index.search.model.MatchingIndexEntry
-
- All Implemented Interfaces:
Serializable
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.core.index.indexing.model.IndexEntry
END_DATE_DEFAULT, START_DATE_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description MatchingIndexEntry(IndexEntryKey pk)
The constructor set only the key part of the entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
To be equal two IndexEntry must have the same PK.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 XMLMap<String,String>
getXMLFormFieldsForFacets()
int
hashCode()
Returns the hash code of the indexEntry.boolean
isExternalResult()
void
setEmbeddedFileIds(String[] embeddedFileIds)
Set the list of all linked attachment in wysiwyg contentvoid
setExternalResult(boolean externalResult)
void
setScore(float score)
Set the score of this entry.void
setSortableXMLFormFields(Map<String,String> sortableXMLFormFields)
Sets the Sortable fields if the content is a form XMLvoid
setXMLFormFieldsForFacets(Map<String,String> fields)
-
Methods inherited from class org.silverpeas.core.index.indexing.model.IndexEntry
getComponent, getCreationDate, getCreationUser, getEndDate, getFilename, getKeywords, getKeywords, getLang, getLanguages, getLastModificationDate, getLastModificationUser, getLinkedObjectId, getObjectId, getObjectType, getPaths, getPK, getPreview, getPreview, getServerName, getStartDate, getThumbnail, getThumbnailDirectory, getThumbnailMimeType, getTitle, getTitle, isAlias, isIndexId, isLinkedObject, setAlias, setCreationDate, setCreationDate, setCreationUser, setEndDate, setEndDate, setFilename, setIndexId, setKeywords, setKeywords, setLang, setLastModificationDate, setLastModificationDate, setLastModificationUser, setPaths, setPK, setPreview, setPreview, setServerName, setStartDate, setStartDate, setThumbnail, setThumbnailDirectory, setThumbnailMimeType, setTitle, setTitle, toString
-
-
-
-
Constructor Detail
-
MatchingIndexEntry
public MatchingIndexEntry(IndexEntryKey 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.
-
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(Map<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
-
isExternalResult
public boolean isExternalResult()
-
setExternalResult
public void setExternalResult(boolean externalResult)
-
equals
public boolean equals(Object o)
Description copied from class:IndexEntry
To be equal two IndexEntry must have the same PK. The equals method is redefined so IndexEntry objects can be put in a Set or used as Map key.- Overrides:
equals
in classIndexEntry
-
hashCode
public int hashCode()
Description copied from class:IndexEntry
Returns the hash code of the indexEntry. The hashCode method is redefined so IndexEntry objects can be put in a Set or used as Map key. Only the primary key is used to compute the hash code, as only the primary key is used to compare two entries.- Overrides:
hashCode
in classIndexEntry
-
-