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

Previously indexed files show as results after file indexing turned off

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1.2
    • Component/s: Global search
    • Labels:
    • Testing Instructions:
      Hide
      1. Setup and configure global search
      2. Create a text file named "MyFile.txt" with "FindMe" in the contents
      3. Add the file as a file resource, name the resource "My File Resource"
      4. Index the site contents (Admin>Reports>Global search info)
      5. Search for "FindMe" and confirm that "My File Resource" is a result
      6. On the solr config page (Admin>Plugins>Search>Solr) uncheck "Enable file indexing"
      7. Search for "FindMe"
      8. Confirm you get no results
      9. Search for "*"
      10. Confirm that no files (with the suffix) appear as results
      Show
      Setup and configure global search Create a text file named "MyFile.txt" with "FindMe" in the contents Add the file as a file resource, name the resource "My File Resource" Index the site contents (Admin>Reports>Global search info) Search for "FindMe" and confirm that "My File Resource" is a result On the solr config page (Admin>Plugins>Search>Solr) uncheck "Enable file indexing" Search for "FindMe" Confirm you get no results Search for "*" Confirm that no files (with the suffix) appear as results
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull 3.1 Branch:
    • Pull Master Branch:
      MDL-55190-master

      Description

      If you index content with file index on, and then turn it off, individual files show as rows in search results.

      Old:
      If you go to https://moodle.org/search/index.php?q=* without being logged you get a "normal" list of results, if you instead perform the same query (just a wildcard) the first results pages are files attached to results.

      Eric Merrill, I'm setting this as a bug because if I remember correctly files shouldn't be returned as results, but the document they belong to instead.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Sep/16