public class SearchMatcher.SearchResultImpl extends java.lang.Object implements SearchResult
Constructor and Description |
---|
SearchResultImpl(java.lang.String name,
int score)
Create a new SearchResult with a given name and a score.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.lang.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 java.lang.String[] getContexts()
getContexts
in interface SearchResult
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.