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

GlobalSearch doesn't find users by alternatename field

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      IMPORTANT: In order to testing this issue you'll need to install and configure a SOLR server. You'll find information here

      Set up

      • As admin:
        • Create user 1: Name and Surname should be filled as well as Alternate name. The alternate name should not contain any part of name or surname, should be different.
        • Go to Site Administration | Advanced features and check Enable global search. Access to "Site administration  | Plugins | Search" and make sure the status of all the steps is green. 
        • Go to Site administration | Plugins | Search | Search area, click Gradual reindex at the "Users" row and confirm the action.
        • Access to "Site administration | Server | Scheduled tasks" and click the "Run now" link for the "Global search indexing" task.
        • Confirm that this completes and that you now see data in the Last run column, "Global search indexing" task.

      Testing instructions

      1. Search for the created user during setup by name or surname, using the global search box in the header right side.
        • Confirm that user is found
        • Confirm that the middlename and the alternatename aren't displayed
      2. Search for the same user using his/her alternate name
        • Confirm that user is found
        • Confirm that the middlename and the alternatename aren't displayed
      3. Access to "Site administration | Users | Permissions | User policies" and set the "Full name format" setting to something like "firstname lastname middlename alternatename"
      4. Search for the created user during setup by name, surname o alternate name, using the global search box in the header right side.
        • Confirm that user is found
        • Confirm that now the middlename and the alternatename are displayed at the "Global search" page

       

      The same can be tested on all other name fields. All of them has to be searchable after applying this patch.
       
       

      Show
      IMPORTANT : In order to testing this issue you'll need to install and configure a SOLR server. You'll find information  here Set up As admin: Create user 1: Name and Surname should be filled as well as Alternate name. The alternate name should not contain any part of name or surname, should be different. Go to Site Administration | Advanced features and check Enable global search . Access to "Site administration  | Plugins | Search" and make sure the status of all the steps is green.  Go to Site administration | Plugins | Search | Search area , click Gradual reindex  at the "Users" row and confirm the action. Access to "Site administration | Server | Scheduled tasks" and click the "Run now" link for the "Global search indexing" task. Confirm that this completes and that you now see data in the Last run column, "Global search indexing" task. Testing instructions Search for the created user during setup by name or surname, using the global search box in the header right side. Confirm that user is found Confirm that  the middlename and the alternatename aren't displayed Search for the same user using his/her alternate name Confirm that  user is found Confirm that  the middlename and the alternatename aren't displayed Access to "Site administration | Users | Permissions | User policies" and set the "Full name format" setting to something like "firstname lastname middlename alternatename" Search for the created user during setup by name, surname o alternate name, using the global search box in the header right side. Confirm that  user is found Confirm that now the middlename and the alternatename are displayed at the "Global search" page   The same can be tested on all other name fields. All of them has to be searchable after applying this patch.    
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.4 Branch:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-57977-master

      Description

      Now, if you use Alternate Name for users, you can change fullname display everywhere to show alternate name instead of Firstname Lastname, but when users want to find somebody by Alternate name using Global Search, they can't since this field is not added to Global Search index

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Sep/18