Opened 2 years ago
Closed 2 years ago
#6569 closed enhancement (fixed)
Search is too permissive
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Photo Directory | Keywords: | |
Cc: |
Description
If I search for "hand" I get a photo of a cHANDelier, which doesn't seem right.
Change History (3)
#2
@
2 years ago
Just noting that it appears the Photo directory is using standard WordPress search at present.
This is the pertinent search parts of the WHERE for the above deli example:
WHERE ( ( ( wp_posts.post_title LIKE '%deli%' ) OR ( wp_posts.post_excerpt LIKE '%deli%' ) OR ( wp_term_taxonomy.taxonomy = 'photo_tag' AND wp_terms.name = 'deli' ) OR ( wp_posts.post_content LIKE '%deli%' ) ) )
Note: See
TracTickets for help on using
tickets.
Same for deli. All I wanted was some ham... https://wordpress.org/photos/?s=deli
Only allow partial matching at the start of a word, perhaps? Ideas?