Opened 22 months ago
Closed 22 months ago
#6569 closed enhancement (fixed)
Search is too permissive
Reported by: | topher1kenobe | Owned by: | coffee2code |
---|---|---|---|
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
@
22 months 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?