public class ExtRepositorySearchResult<T extends ExtRepositoryObject>
extends java.lang.Object
ExtRepository.search(SearchContext, Query, ExtRepositoryQueryMapper) method.| Constructor and Description |
|---|
ExtRepositorySearchResult(T object,
float score,
java.lang.String snippet)
Creates the search result matching the external repository object, score,
and snippet.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getObject()
Returns the external repository object associated with the search result.
|
float |
getScore()
Returns the score (between
0 and 1) associated
with the search result. |
java.lang.String |
getSnippet()
Returns the text snippet to highlight when displaying the search results
in the UI.
|
public ExtRepositorySearchResult(T object, float score, java.lang.String snippet)
object - the repository object found by the search (file, folder, or
both)score - the score (between 0 and 1)
assigned to the repository object by the search engine.snippet - the snippet used for highlighting when displaying the
search results in the UIpublic T getObject()
public float getScore()
0 and 1) associated
with the search result.public java.lang.String getSnippet()