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

Result highlighting doesn't work in Solr

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Global search
    • Labels:
    • Testing Instructions:
      Hide
      1. Setup solr search indexing
        • Note that if you have indexed before, you will need to delete and remake your core (or move to a different core), as the schema for existing fields is changing. Same if you have a phpunit core.
      2. Create an assignment with a large description
        • Include some text that could be HTML if it were not encoded properly. Like <i>Something</i>, but in atto, so it renders as text.
        • Make sure the content is over 500 characters long
      3. Update your index.
      4. Search for various matching words and strings in your content. Confirm that the keywords are highlighted (light blue in the standard theme).
      5. Search for "Something" so that you get the HTML characters. Confirm that <i>Something</i> shows up, NOT Something in italics!
      6. Run Solr phpunit tests.
      Show
      Setup solr search indexing Note that if you have indexed before, you will need to delete and remake your core (or move to a different core), as the schema for existing fields is changing. Same if you have a phpunit core. Create an assignment with a large description Include some text that could be HTML if it were not encoded properly. Like <i>Something</i>, but in atto, so it renders as text. Make sure the content is over 500 characters long Update your index. Search for various matching words and strings in your content. Confirm that the keywords are highlighted (light blue in the standard theme). Search for "Something" so that you get the HTML characters. Confirm that <i>Something</i> shows up, NOT Something in italics! Run Solr phpunit tests.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53508-master

      Description

      When you search for a criteria that hits, the design of the engine is supposed to allow matching keywords to bold, and the appropriate matching snipped to be displayed, but it does not work currently.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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