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

Result highlighting doesn't work in Solr

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.1
    • Global search
    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-53508-master
    • 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.

    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

              emerrill Eric Merrill
              emerrill Eric Merrill
              David Monllaó David Monllaó
              Dan Poltawski Dan Poltawski
              Rajesh Taneja Rajesh Taneja
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                23/May/16