Class SearchMatcher.SearchResultImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      SearchResultImpl​(java.lang.String name, int score)
      Create a new SearchResult with a given name and a score.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearchResultImpl

        public SearchResultImpl​(java.lang.String name,
                                int score)
        Create a new SearchResult with a given name and a score.
        Parameters:
        name - Page Name
        score - A score from 0+