internal package Foswiki::Store::Interfaces::SearchAlgorithm

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview

internal package Foswiki::Store::Interfaces::SearchAlgorithm is a Foswiki::Store::Interfaces::QueryAlgorithm

DEPRECATED - all SearchAlgorithm and QueryAlgorithm use the same calling convention.

Interface to search algorithms. Implementations of this interface are found in Foswiki/Store/SearchAlgorithms.

StaticMethod query( $query, $webs, $inputTopicSet, $session, $options ) → $infoCache

  • $query - A Foswiki::Search::Node object. The tokens() method of this object returns the list of search tokens.
  • $web - name of the web being searched, or may be an array reference to a set of webs to search
  • $inputTopicSet - iterator over names of topics in that web to search
  • $session - reference to the store object
  • $options - hash of requested options
This is the top-level interface to a search algorithm.

Return a Foswiki::Search::ResultSet.

Topic revision: r1 - 02 Mar 2020, UnknownUser
© 2020 Ultranauts - 75 Broad Street, 2nd Floor, Suite 206, New York, NY 10004 - info@ultranauts.co