Uploaded image for project: 'Atlassian Intelligence'
  1. Atlassian Intelligence
  2. AI-294

User and Group search doesn't return correct results for 1 character after space

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Low Low
    • Search - Indexing
    • None
    • Severity 3 - Minor

      Summary

      When doing a user or group search to set Permissions on a page, the results are not reflecting the search pattern when the search has a space. Example: A search for "test j" will return the same results as "test" without considering the space or the letter "j".

      Problem:
      If the site has more than 6 users with the same name but different last name, the searchable user may not be listed at all, and incorrect users will be listed

      Environment

      • Confluence

      Steps to Reproduce

      1. Create at least 7 users with the same first name but different last names
      2. Search for the 7th user using the Last name initial

      Expected Results:

      • User is listed because it is matches the search.
      • Other users not matching the search pattern are not listed.

      Actual Results:
      User is not listed at all

      the user "Test Jk" exists and should be listed.

      The search is triggering the call:

      https://site.atlassian.net/wiki/rest/prototype/1/search/user-or-group.json?max-results=6&query=test+j&_=1492998751784
      

      that returns the same results as "query=test" and don't include "Test Jk" because it is limited to 6 results.

      Notes

      Searching with the first 2 letters of the last name will return the correct results

      User mentions on pages and comments are not affected because they use a different rest api call to get search results.

      Workaround

      Search for more than 2 letters for first and last names.

        1. test1.jpg
          test1.jpg
          142 kB
        2. test2.jpg
          test2.jpg
          134 kB

            [AI-294] User and Group search doesn't return correct results for 1 character after space

            pqz made changes -
            Component/s Original: Search - Indexing [ 46493 ]
            Component/s New: Search - Indexing [ 75295 ]
            Key Original: CONFCLOUD-54757 New: AI-294
            QA Demo Status Original: Not Done [ 14330 ]
            QA Kickoff Status Original: Not Done [ 14234 ]
            Affects Version/s Original: 1000.122.1 [ 68106 ]
            Project Original: Confluence Cloud [ 18513 ] New: Atlassian Intelligence [ 23110 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2365947 ] New: JAC Bug Workflow v3 [ 3402979 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2239954 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2365947 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2200930 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2239954 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2135408 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2200930 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2012358 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2135408 ]

            This happens by design. The user fullname is on a "leading edge bigram" analyser. The name "John Smith" will be searchable only on "Jo", "Joh", "John" and "Sm", "Smi", "Smit", "Smith". The one character case is ignored since that creates too much noise in the results for most other cases.

            Mauro Badii (Inactive) added a comment - This happens by design. The user fullname is on a "leading edge bigram" analyser. The name "John Smith" will be searchable only on "Jo", "Joh", "John" and "Sm", "Smi", "Smit", "Smith". The one character case is ignored since that creates too much noise in the results for most other cases.
            YoyoGuy (Inactive) made changes -
            Resolution New: Not a bug [ 12 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            Mauro Badii (Inactive) made changes -
            Link New: This issue relates to CONFCLOUD-43226 [ CONFCLOUD-43226 ]
            Mauro Badii (Inactive) made changes -
            Status Original: Needs Verification [ 10004 ] New: Open [ 1 ]

              Unassigned Unassigned
              mfernandezbadii Mauro Badii (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: