Package org.apache.wiki.api.search
Interface SearchResult
-
- All Known Subinterfaces:
SearchResult
- All Known Implementing Classes:
SearchMatcher.SearchResultImpl
public interface SearchResult
Defines a search result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String[]
getContexts()
Collection of XHTML fragments representing some contexts in which the match was made (a.k.a., "snippets").Page
getPage()
Return the page.int
getScore()
Returns the score.
-
-
-
Method Detail
-
getScore
int getScore()
Returns the score.- Returns:
- A positive score value. Note that there is no upper limit for the score.
-
getContexts
java.lang.String[] getContexts()
Collection of XHTML fragments representing some contexts in which the match was made (a.k.a., "snippets").- Returns:
- the search results
- Since:
- 2.4
-
-