|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchQueryResult
Encapsulates a search result resulting from a search using the SearchQuery class. Relevance is only stored to 3 significant decimal places (xx.x%)
| Nested Class Summary | |
|---|---|
static class |
SearchQueryResult.ResultType
Represents the different types of results that can be queried upon |
| Field Summary | |
|---|---|
static SearchQueryResult.ResultType[] |
ALL_TYPES
An array of all SearchQueryResult.ResultTypes |
| Method Summary | |
|---|---|
JiveObject |
getJiveObject()
This method returns a JiveContentObject this query result pertains to. |
long |
getJiveObjectID()
Retrieve the unique id for the jive object this query result pertains to. |
int |
getJiveObjectType()
Retrieve the type of the jive object this query result pertains to. |
Date |
getModificationDate()
Returns the modification date of the jive content object this query result pertains to. |
float |
getRelevance()
Get the relevance of this query result as determined by the search engine. |
String |
getRelevanceAsPercentage(Locale locale)
Returns the relevance as a percentage (no decimal places) formatted according to the locale passed in. |
SearchQueryResult.ResultType |
getResultType()
Returns the ResultType for this search query result. |
String[] |
highlightResult(String preTag,
String postTag)
Returns a title and summary with search words highlighted appropriate to the search query string. |
| Field Detail |
|---|
static final SearchQueryResult.ResultType[] ALL_TYPES
SearchQueryResult.ResultTypes
| Method Detail |
|---|
SearchQueryResult.ResultType getResultType()
long getJiveObjectID()
int getJiveObjectType()
JiveObject getJiveObject()
Date getModificationDate()
float getRelevance()
String getRelevanceAsPercentage(Locale locale)
locale - the locale to use to format the percentage.
String[] highlightResult(String preTag,
String postTag)
SearchQuery.highlightResult(SearchQueryResult, String, String)
preTag - a tag to be used to mark the beginning of highlighted text eg <B%gt;postTag - a tag to be used to mark the beginning of highlighted text eg </B%gt;
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||