Class SearchResult
java.lang.Object
io.meeds.notes.legacy.api.search.data.SearchResult
Deprecated, for removal: This API element is subject to removal in a future version.
Copied from commons-search to this module.
Should be reworked to be more simple.
Search result returned by SearchService and all of its connectors, for rendering their search results on UI in a unified format.
- eXo level API
- Experimental
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResult(String url, String title, String excerpt, String detail, String imageUrl, long date, long relevancy) Deprecated, for removal: This API element is subject to removal in a future version.Constructor that helps to create search result by the unique waySearchResult(String url, String previewUrl, String title, String excerpt, String detail, String imageUrl, long date, long relevancy) Deprecated, for removal: This API element is subject to removal in a future version.Constructor that helps to create search result by the unique way (keeping the other constructor without previewUrl for backward compatibility reasons)SearchResult(String url, String title, Map<String, List<String>> excerpts, String excerpt, String detail, String imageUrl, Long date, long relevancy) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionlonggetDate()Deprecated, for removal: This API element is subject to removal in a future version.Get date of resultDeprecated, for removal: This API element is subject to removal in a future version.Get detail of resultDeprecated, for removal: This API element is subject to removal in a future version.Get excerpt of resultDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get image url of avatarDeprecated, for removal: This API element is subject to removal in a future version.Get preview url of resultlongDeprecated, for removal: This API element is subject to removal in a future version.Get relevancy of resultgetTitle()Deprecated, for removal: This API element is subject to removal in a future version.Get title of resultgetUrl()Deprecated, for removal: This API element is subject to removal in a future version.Get url of resultvoidsetDate(long date) Deprecated, for removal: This API element is subject to removal in a future version.Set data for resultvoidDeprecated, for removal: This API element is subject to removal in a future version.Set detail for resultvoidsetExcerpt(String excerpt) Deprecated, for removal: This API element is subject to removal in a future version.Set excerpt for resultvoidsetExcerpts(Map<String, List<String>> excerpts) Deprecated, for removal: This API element is subject to removal in a future version.voidsetImageUrl(String imageUrl) Deprecated, for removal: This API element is subject to removal in a future version.Set image url for avatarvoidsetPreviewUrl(String previewUrl) Deprecated, for removal: This API element is subject to removal in a future version.Set preview url for resultvoidsetRelevancy(long relevancy) Deprecated, for removal: This API element is subject to removal in a future version.Set relevancyvoidDeprecated, for removal: This API element is subject to removal in a future version.Set title for resultvoidDeprecated, for removal: This API element is subject to removal in a future version.Set url for resulttoString()Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
SearchResult
public SearchResult(String url, String title, String excerpt, String detail, String imageUrl, long date, long relevancy) Deprecated, for removal: This API element is subject to removal in a future version.Constructor that helps to create search result by the unique way- Parameters:
url- Url of this resulttitle- Title to be displayed on UIexcerpt- The excerpt to be displayed on UIdetail- Details informationimageUrl- An image to be displayed on UIdate- Created or modified date, for sorting on UIrelevancy- The result's relevancy, for sorting on UI- eXo level API
- Experimental
-
SearchResult
public SearchResult(String url, String previewUrl, String title, String excerpt, String detail, String imageUrl, long date, long relevancy) Deprecated, for removal: This API element is subject to removal in a future version.Constructor that helps to create search result by the unique way (keeping the other constructor without previewUrl for backward compatibility reasons)- Parameters:
url- Url of this resultpreviewUrl- Preview url of this resulttitle- Title to be displayed on UIexcerpt- The excerpt to be displayed on UIdetail- Details informationimageUrl- An image to be displayed on UIdate- Created or modified date, for sorting on UIrelevancy- The result's relevancy, for sorting on UI- eXo level API
- Experimental
-
SearchResult
public SearchResult(String url, String title, Map<String, List<String>> excerpts, String excerpt, String detail, String imageUrl, Long date, long relevancy) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getExcerpts
Deprecated, for removal: This API element is subject to removal in a future version. -
setExcerpts
Deprecated, for removal: This API element is subject to removal in a future version. -
getUrl
Deprecated, for removal: This API element is subject to removal in a future version.Get url of result- Returns:
- String
- eXo level API
- Experimental
-
setUrl
Deprecated, for removal: This API element is subject to removal in a future version.Set url for result- Parameters:
url-- eXo level API
- Experimental
-
getPreviewUrl
Deprecated, for removal: This API element is subject to removal in a future version.Get preview url of result- Returns:
- String
- eXo level API
- Experimental
-
setPreviewUrl
Deprecated, for removal: This API element is subject to removal in a future version.Set preview url for result- Parameters:
previewUrl-- eXo level API
- Experimental
-
getTitle
Deprecated, for removal: This API element is subject to removal in a future version.Get title of result- Returns:
- String
- eXo level API
- Experimental
-
setTitle
Deprecated, for removal: This API element is subject to removal in a future version.Set title for result- Parameters:
title-- eXo level API
- Experimental
-
getExcerpt
Deprecated, for removal: This API element is subject to removal in a future version.Get excerpt of result- Returns:
- String
- eXo level API
- Experimental
-
setExcerpt
Deprecated, for removal: This API element is subject to removal in a future version.Set excerpt for result- Parameters:
excerpt-- eXo level API
- Experimental
-
getDetail
Deprecated, for removal: This API element is subject to removal in a future version.Get detail of result- Returns:
- String
- eXo level API
- Experimental
-
setDetail
Deprecated, for removal: This API element is subject to removal in a future version.Set detail for result- Parameters:
detail-- eXo level API
- Experimental
-
getImageUrl
Deprecated, for removal: This API element is subject to removal in a future version.Get image url of avatar- Returns:
- String
- eXo level API
- Experimental
-
setImageUrl
Deprecated, for removal: This API element is subject to removal in a future version.Set image url for avatar- Parameters:
imageUrl-- eXo level API
- Experimental
-
getDate
public long getDate()Deprecated, for removal: This API element is subject to removal in a future version.Get date of result- Returns:
- Long
- eXo level API
- Experimental
-
setDate
public void setDate(long date) Deprecated, for removal: This API element is subject to removal in a future version.Set data for result- Parameters:
date-- eXo level API
- Experimental
-
getRelevancy
public long getRelevancy()Deprecated, for removal: This API element is subject to removal in a future version.Get relevancy of result- Returns:
- Long
- eXo level API
- Experimental
-
setRelevancy
public void setRelevancy(long relevancy) Deprecated, for removal: This API element is subject to removal in a future version.Set relevancy- Parameters:
relevancy-- eXo level API
- Experimental
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-