com.atlassian.confluence.search.v2.SearchResult |
Known Indirect Subclasses |
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. It is heavier than it's parent @see BaseSearchResult which should be used in preference when the lucene fields required to be accessed can be known by the developer in advance of the lucene query being executed.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the text content of the search result.
| |||||||||||
Returns the version of the content if available, or
null if there's no version for this result. | |||||||||||
Gets the title of the search result appropriate for displaying to a user.
| |||||||||||
If the retrieved documents contain additional fields that cannot be directly accessed by this interface then they
can be retrieved via this method.
| |||||||||||
Gets the labels on the current search result that are visible to the specified user.
| |||||||||||
Gets the last modification date of the entity represented by the search result.
| |||||||||||
Gets the username of the last person to modify the entity represented by the search result.
| |||||||||||
Gets some string describing the last modification to this content.
| |||||||||||
If this result represents an attachment then this field will return the title of the page or blog post the
attachment is attached to.
| |||||||||||
If this result represents an attachment then this field will return the type of the container, a page or
blogpost.
| |||||||||||
Gets all the personal labels on the current search result.
| |||||||||||
Gets a string representation of the type of the entity represented by the search result.
| |||||||||||
Gets the URL path to the search result, relative to the site's context root.
| |||||||||||
Checks if the search result represents the homepage of a space.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.confluence.search.v2.BaseSearchResult
|
Gets the text content of the search result.
Returns the version of the content if available, or null
if there's no version for this result.
NumberFormatException | if the document in the index has an unparseable version number |
---|
Gets the title of the search result appropriate for displaying to a user. All results should return something useful for this method.
If the retrieved documents contain additional fields that cannot be directly accessed by this interface then they can be retrieved via this method.
The field names are abstracted from the underlying search implementation and will be centrally defined. Their values are not yet documented.
Gets the labels on the current search result that are visible to the specified user.
user | filter labels by this user |
---|
Gets the last modification date of the entity represented by the search result.
Gets the username of the last person to modify the entity represented by the search result.
Gets some string describing the last modification to this content. May be null if no such string is available. For content objects, this will be the same as the "version comment"
This string is user-supplied, and therefore not internationalised
If this result represents an attachment then this field will return the title of the page or blog post the attachment is attached to.
If this result represents an attachment then this field will return the type of the container, a page or blogpost.
Gets all the personal labels on the current search result.
Gets the URL path to the search result, relative to the site's context root. All results should return something useful for this method
Checks if the search result represents the homepage of a space.