Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46311

Define common search APIs

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • Future Dev
    • None
    • Global search

    Description

      A generic search engine class should contain a set of methods to get the moodle components implementing global search, index documents in the search engine (current behaviour of search_get_iterators() for example)...

      A class to act as a "document" representation would also be needed as currently there are hardcoded references to solr in modules implementing support for global search.

      Even though these 2 classes should be abstract, not all their methods need to be abstract, I mean that for example there will be process that are common in all search engines (like gathering all iterators) but most of the processes should be defined by the specific search engine implementations; an example, the document class can define a abstract function __construct(); but the solr extension will be the responsible of extending it with a *function __construct()

      { $this->solrdocument = new SolrInputDocument();}

      * same with search engine methods.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dmonllao David Monllaó
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: