|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchResult
An individual search result. The SearchResult provides access to a number of attributes that are populated directly from the index without requiring an additional database hit. There should be enough information directly in the result to give a pretty detailed description of the hit.
Method Summary | |
---|---|
java.lang.String |
getContent()
Gets the text content of the search result. |
java.util.Date |
getCreationDate()
|
java.lang.String |
getCreator()
|
java.lang.String |
getDisplayTitle()
Gets the title of the search result appropriate for displaying to a user. |
java.util.Map<java.lang.String,java.lang.String> |
getExtraFields()
If the retrieved documents contain additional fields that cannot be directly accessed by this interface then they can be retrieved via this method. |
com.atlassian.bonnie.Handle |
getHandle()
Retrieves the handle that can then be used by the AnyTypeDao to retrieve the database object referenced by this search result. |
java.util.Set<java.lang.String> |
getLabels(com.atlassian.user.User user)
Gets the labels on the current search result that are visible to the specified user. |
java.util.Date |
getLastModificationDate()
Gets the last modification date of the entity represented by the search result. |
java.lang.String |
getLastModifier()
Gets the username of the last person to modify the entity represented by the search result. |
java.lang.String |
getLastUpdateDescription()
Gets some string describing the last modification to this content. |
java.lang.String |
getOwnerTitle()
If this result represents an attachment then this field will return the title of the page or blog post the attachment is attached to. |
java.lang.String |
getOwnerType()
If this result represents an attachment then this field will return the type of the container, a page or blogpost. |
java.util.Set<java.lang.String> |
getPersonalLabels()
Gets all the personal labels on the current search result. |
java.lang.String |
getSpaceKey()
|
java.lang.String |
getSpaceName()
|
java.lang.String |
getType()
Gets a string representation of the type of the entity represented by the search result. |
java.lang.String |
getUrlPath()
Gets the URL path to the search result, relative to the site's context root. |
boolean |
hasLabels()
|
boolean |
isHomePage()
Checks if the search result represents the homepage of a space. |
Method Detail |
---|
com.atlassian.bonnie.Handle getHandle()
Because the database and index are not updated at the same time, it is possible for a deleted entity to still be represented in the search index. Do not assume that this handle will always refer to a live object.
AnyTypeDao.findByHandle(com.atlassian.bonnie.Handle)
java.util.Map<java.lang.String,java.lang.String> getExtraFields()
The field names are abstracted from the underlying search implementation and will be centrally defined. Their values are not yet documented.
java.lang.String getContent()
java.lang.String getType()
ContentEntityObject.getType()
ContentTypeAware.getType()
boolean isHomePage()
java.util.Date getLastModificationDate()
java.lang.String getLastModifier()
java.lang.String getDisplayTitle()
Addressable.getDisplayTitle()
java.lang.String getUrlPath()
Addressable.getUrlPath()
java.lang.String getLastUpdateDescription()
This string is user-supplied, and therefore not internationalised
ContentEntityObject.getVersionComment()
java.lang.String getSpaceName()
java.lang.String getSpaceKey()
boolean hasLabels()
java.util.Set<java.lang.String> getLabels(com.atlassian.user.User user)
user
- filter labels by this user
java.util.Set<java.lang.String> getPersonalLabels()
java.util.Date getCreationDate()
java.lang.String getCreator()
java.lang.String getOwnerType()
java.lang.String getOwnerTitle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |