Package org.apache.wiki.search
Class SearchMatcher.SearchResultImpl
java.lang.Object
org.apache.wiki.search.SearchMatcher.SearchResultImpl
- All Implemented Interfaces:
SearchResult
,SearchResult
- Enclosing class:
- SearchMatcher
A local search result.
-
Constructor Summary
ConstructorDescriptionSearchResultImpl
(String name, int score) Create a new SearchResult with a given name and a score. -
Method Summary
-
Constructor Details
-
SearchResultImpl
Create a new SearchResult with a given name and a score.- Parameters:
name
- Page Namescore
- A score from 0+
-
-
Method Details
-
getPage
Returns Wikipage for this result.- Specified by:
getPage
in interfaceSearchResult
- Specified by:
getPage
in interfaceSearchResult
- Returns:
- WikiPage
-
getScore
Returns a score for this match.- Specified by:
getScore
in interfaceSearchResult
- Returns:
- Score from 0+
-
getContexts
Returns an empty array, since BasicSearchProvider does not support context matching.- Specified by:
getContexts
in interfaceSearchResult
- Returns:
- an empty array
-