
public class SearchMatcher.SearchResultImpl extends Object implements SearchResult
| Constructor and Description |
|---|
SearchResultImpl(String name,
int score)
Create a new SearchResult with a given name and a score.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getContexts()
Returns an empty array, since BasicSearchProvider does not support
context matching.
|
WikiPage |
getPage()
Returns Wikipage for this result.
|
int |
getScore()
Returns a score for this match.
|
public SearchResultImpl(String name, int score)
name - Page Namescore - A score from 0+public WikiPage getPage()
getPage in interface SearchResultpublic int getScore()
getScore in interface SearchResultpublic String[] getContexts()
getContexts in interface SearchResultCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.