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

Previously indexed files show as results after file indexing turned off

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.1.2
    • Global search
    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-55190-master
    • 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

    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.

      emerrill, 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

              emerrill Eric Merrill
              dmonllao David Monllaó
              David Monllaó David Monllaó
              Dan Poltawski Dan Poltawski
              Damyon Wiese Damyon Wiese
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Sep/16