|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wiki.search.SearchMatcher.SearchResultImpl
public class SearchMatcher.SearchResultImpl

A local search result.
| Constructor Summary | |
|---|---|
SearchMatcher.SearchResultImpl(String name,
int score)
Create a new SearchResult with a given name and a score. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchMatcher.SearchResultImpl(String name,
int score)
name - Page Namescore - A score from 0+| Method Detail |
|---|
public WikiPage getPage()
getPage in interface SearchResultpublic int getScore()
getScore in interface SearchResultpublic String[] getContexts()
getContexts in interface SearchResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||