Making WordPress.org

Opened 3 years ago

Closed 2 years ago

#6362 closed enhancement (fixed)

Search photos by username

Reported by: topher1kenobe's profile topher1kenobe Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Photo Directory Keywords:
Cc:

Description

The search on /photos should also return values when searching by username. Currently searching for either Topher or topher1kenobe returns no results.

Attachments (2)

6362-search-no-results-username-match.png (145.5 KB) - added by coffee2code 2 years ago.
Example of a search for "topher1kenobe" (which has no matching photos) that presents a link to that user's photo archive
6362-search-results-username-match.png (624.5 KB) - added by coffee2code 2 years ago.
Example of a search for "mattt" (which has a matching photo) that also presents a link to that user's photo archive

Download all attachments as: .zip

Change History (5)

@coffee2code
2 years ago

Example of a search for "topher1kenobe" (which has no matching photos) that presents a link to that user's photo archive

@coffee2code
2 years ago

Example of a search for "mattt" (which has a matching photo) that also presents a link to that user's photo archive

#1 @coffee2code
2 years ago

I don't think we should integrate photos from contributors whose username matches the search (e.g. photos contributed by @pickle don't make sense when someone searches for "pickle"). However, it would definitely be helpful to suggest viewing the archive of a contributor if the search is fully and exactly for their username.

See 6362-search-no-results-username-match.png for an example of how a search for "topher1kenobe" returns no results (since no photos match), but a link to your photo archive is presented.

See 6362-search-results-username-match.png for an example of how a search for "matt" shows a result (the search term is a partial match within the description) but also offers a link to a matching user's archive. _This is likely to be a rare situation._ (Note: as of this posting, matt does not have a photo in the Photo Directory so the screenshot is what the search would look like if he did.)

I don't think it's appropriate for the photo search to function as a user search. Finding usernames itself may have merit as a standalone utility (perhaps as a Profiles search tool), but that should be raised separately. Therefore, a search for "topher" will continue to not find users with "topher" in their name, only potentially @topher if such an account exists and has contributed a photo.

#2 @coffee2code
2 years ago

In 12203:

Photo Directory, Search: Add function to determine if search query string matches a contributor's username.

See #6362.

#3 @coffee2code
2 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 12204:

Photo Directory: Offer a link to a contributor's photo archive if a search exactly matches a contributor's username.

Props topher1kenobe, coffee2code.
Fixes #6362.

Note: See TracTickets for help on using tickets.