org.apache.wiki.search
Interface SearchResult

All Known Implementing Classes:
SearchMatcher.SearchResultImpl

public interface SearchResult

Defines a search result.


Method Summary
 String[] getContexts()
          Collection of XHTML fragments representing some contexts in which the match was made (a.k.a., "snippets").
 WikiPage getPage()
          Return the page.
 int getScore()
          Returns the score.
 

Method Detail

getPage

WikiPage getPage()
Return the page.

Returns:
the WikiPage object containing this result

getScore

int getScore()
Returns the score.

Returns:
A positive score value. Note that there is no upper limit for the score.

getContexts

String[] getContexts()
Collection of XHTML fragments representing some contexts in which the match was made (a.k.a., "snippets").

Returns:
the search results
Since:
2.4


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.