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 SearchResult
public int getScore()
getScore
in interface SearchResult
public String[] getContexts()
getContexts
in interface SearchResult
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.