Open Bug 898578 Opened 11 years ago Updated 3 years ago

Handle quoted strings in search.

Categories

(Participation Infrastructure :: Phonebook, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: williamr, Unassigned)

References

Details

(Whiteboard: [Triage 2015-04-17][kb=1059165] [search] [iam-RFE])

Attachments

(1 file)

Attached image screenshot
When searching by someone's name, we should display a profile if the name matches exactly one user. This behavior already happens when searching for a unique value (IRC name, username), so it makes sense to do this for names as well.

For example, when I search for 'William Reynolds' I see a list of all people with the name William, and my profile is displayed first. Since my full name is unique in the database, the search result should just show my profile instead of a list of results.

Screenshot attached.
Whiteboard: [search] → [kb=1059165] [search]
There is an important difference between these two searches:

William Reynolds
"William Reynolds"

The first should return the result set the attached screenshot depicts -- that is, everyone with william or reynolds in their profile. The second should return one result (with current data) -- that is, everyone with the exact string "william reynolds" in their profile. Right now they both return the same set of results (https://mozillians.org/en-US/search/?q=%22william+reynolds%22). 

Suggestion: Handle quoted strings in search.
Summary: Show profile when search matches exactly one name → Handle quoted strings in search.
May I take this bug to work with it?
If I understand correctly it should work if someone searches with quoted strings and if only one result is found than directly shows profile of that person, otherwise it displays all results matching this quoted strings.
And what about the groups? If it found only one group and no persons, it redirect us to page with that group?
Flags: needinfo?(hoosteeno)
Matjaz,

Thanks for offering to help with this bug. We're using ElasticSearch on mozillians, are you familiar with it?
Flags: needinfo?(hoosteeno)
Unfortunately I've never been using ElasticSearch. If it's not too complicated (you would probably know that) I maybe try it anyway.
I suggest that you pick another bug then. ElasticSearch can get really complicated and this is not a novice ES bug. Thanks!
Ok.
Whiteboard: [kb=1059165] [search] → [Triage 2015-04-17][kb=1059165] [search]
No longer depends on: 925405
Whiteboard: [Triage 2015-04-17][kb=1059165] [search] → [Triage 2015-04-17][kb=1059165] [search] [iam-RFE]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: