Package com.day.cq.wcm.foundation
Class Search.Hit
java.lang.Object
com.day.cq.wcm.foundation.Search.Hit
- Enclosing class:
Search
A hit within the search result.
-
Method Details
-
getTitle
Returns the title for this hit. The returned string may contain HTML tags, which means it must not be escaped when written to the response.- Returns:
- the title for this hit.
- Throws:
RepositoryException- if an error occurs while reading form the repository.
-
getExcerpt
- Returns:
- the default excerpt for this hit.
- Throws:
RepositoryException- if an error occurs while building the excerpt.
-
getURL
- Returns:
- the url for this hit.
- Throws:
RepositoryException- if an error occurs while reading from the query result.
-
getSimilarURL
- Returns:
- the url that displays similar pages for this hit.
- Throws:
RepositoryException- if an error occurs while reading from the query result.
-
getIcon
Returns an icon image for this hit.- Returns:
- an icon image for this hit.
- Throws:
RepositoryException- if an error occurs while reading from the repository.
-
getExtension
Returns the extension of the url of this hit.- Returns:
- the extension
- Throws:
RepositoryException- if an error occurs
-
getProperties
- Returns:
- the content properties on this hit.
- Throws:
RepositoryException- if an error occurs while reading from the repository.
-