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

Add file indexing support to Global Search

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE

      Description

      Some engines, including Solr, have support for indexing file contents.

      We should do 3 things:

      1. Update search structure to support that concept (each engine would need to declare file indexing as a feature)
      2. Update the solr engine to do this
      3. Figure out what files we index

      For number 2, the limitation is that the pecl-solr plugin doesn't support file indexing from what I can tell, but solr itself does. The way around that is to setup your own curl object make the connection, and send the file as a post.

      Number 3 is also a little less clear. For some things, like assign attachments and files in a multi-file resource, you can index all the files, as anybody who can see the item can see all the files in those areas. For single file resources, I think we can only safely index the marked "main" file.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16