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

Glossary: Search always in "full text"-searchmode

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0, 2.3.6, 2.4.3, 2.5
    • 2.2.1, 2.3.7, 2.4.4
    • Glossary
    • MOODLE_20_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Hide

      Create one glossary with these 2 entries, both with case-sensitive and match whole words disabled (in the linking section):

      • concept: cat, definition: traditional enemies of dogs, alias: cats
      • concept: dog, definition: traditional enemies of cats, alias: dogs

      1) In the glossary main page there is one "search" button with one input text box. On the right "fullsearch" is ticked by default.

      2) With "fullsearch" ticked, perform these searches and verify results taking into account that all them mean that the contents of the definition are being searched:

      2a) "enemies" => returns 2 entries, with the word highlighted. Verify that the "fullsearch" checkbox continues ticked.
      2b) "cat" => returns 2 entries, with "cat" highlighted in both.
      2c) "cats" => return 2 entries, with "cats" highlighted in the dog entry.
      2d) "+cat" => return 1 entry (the cat one).
      2e) "+cats" => return 2 entries, with "cats" highlighted in the dog entry.
      2f) "+cats -dog" => return 1 entry (the cat one).
      2g) "+cats -dogs" => return 0 entries.

      3) With "fullsearch" un-ticked, perform these searches and verify results taking into account that all them mean that the contents of the definition are being completely ignored:

      3a) "enemies" => returns 0 entries. Verify that the "fullsearch" checkbox continues un-ticked.
      3b) "cat" => returns 1 entry, the cat one, with "cat" highlighted.
      3c) "cats" => return 1 entry, the cat one.
      3d) "+cat" => return 1 entry, the cat one, with "cat" highlighted.
      3e) "+cats" => return 1 entry, the cat one.
      3f) "+cats -dog" => return 1 entry (the cat one).
      3g) "+cats -dogs" => return 1 entry (the cat one).

      That's all. Ciao

      Show
      Create one glossary with these 2 entries, both with case-sensitive and match whole words disabled (in the linking section): concept: cat, definition: traditional enemies of dogs, alias: cats concept: dog, definition: traditional enemies of cats, alias: dogs 1) In the glossary main page there is one "search" button with one input text box. On the right "fullsearch" is ticked by default. 2) With "fullsearch" ticked, perform these searches and verify results taking into account that all them mean that the contents of the definition are being searched: 2a) "enemies" => returns 2 entries, with the word highlighted. Verify that the "fullsearch" checkbox continues ticked. 2b) "cat" => returns 2 entries, with "cat" highlighted in both. 2c) "cats" => return 2 entries, with "cats" highlighted in the dog entry. 2d) "+cat" => return 1 entry (the cat one). 2e) "+cats" => return 2 entries, with "cats" highlighted in the dog entry. 2f) "+cats -dog" => return 1 entry (the cat one). 2g) "+cats -dogs" => return 0 entries. 3) With "fullsearch" un-ticked, perform these searches and verify results taking into account that all them mean that the contents of the definition are being completely ignored: 3a) "enemies" => returns 0 entries. Verify that the "fullsearch" checkbox continues un-ticked. 3b) "cat" => returns 1 entry, the cat one, with "cat" highlighted. 3c) "cats" => return 1 entry, the cat one. 3d) "+cat" => return 1 entry, the cat one, with "cat" highlighted. 3e) "+cats" => return 1 entry, the cat one. 3f) "+cats -dog" => return 1 entry (the cat one). 3g) "+cats -dogs" => return 1 entry (the cat one). That's all. Ciao

    Description

      If we try to search over glossary entries we noticed that ticking the "fulltext-search" checkbox doesn't work as expected, or especially not ticking the box doesn't work in the right way.

      We would expect - as described in the documentation - that the search only shows entries with the corresponding term name if we don't tick the box. But it also searches trough the description fields. So we it shows us entries which have for example "Documentation" in the full description and not only the glossary entry called "Documentation".

      Ticking the checkbox causes the search to work in the expected way.

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              comlag_1984 Florian Schneider
              Aparup Banerjee Aparup Banerjee
              David Monllaó David Monllaó
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Jan/12