After enabling UW 3 in wordpress 2.07 I noticed that my search post function through the admin interface is not operating properly. It now only returns results from the last month. If I disable the plugin, then search performs fine. Case in point, a search for bridal returns 0 results with the plugin enabled. If I go and disable the plugin and do the same search I get several months of results.
...Update - Also tried normal search through blog interface and it appears this bug affects that search as well. Presumably both searches use the same hook.
Anyone have this issue? What is the filter hook used by UW for search? Presumably I can try disabling that filter hook to see if that fixes the issue.
I have the same problem in wordpress 2.1. The results shows only post with tags.
Christine wrote about a new function in 3.1415926: "And if you do a search, posts with tags that are like your search term will be included. This is probably the neatest addition (:"
And similarly a join against wp_posts and wp_post2tag works fine:
<code>select * from wp_posts left join wp_post2tag p2t on wp_posts.id = p2t.post_id = p2t.post_id ...</code>
<b> I must be missing something here...maybe someone can help out</b> I can rewrite the inner join as a inline query and it does work, but since the original query appears fine, I'm not clear why it's not working.
Original query rewritten as a inline query produces results:
<code>select * from wp_posts left join (select p2t.* from wp_post2tag p2t, wp_tags where p2t.tag_id = wp_tags.tag_id) p2t on wp_posts.id = p2t.post_id ...</code>
It appears you aren't structuring the user search input in the same format you store it in the wp_tags table. In other words you need to cleanse the user search input in order to ensure a proper match against wp_tags:
This fix above structures the user input to ensure proper matches against tags. If you already have a cleanse tag function available, or if I'm missing any str_replaces let me know.
Hi, I've got the same problem too - after installing UTW 3.1415926 on both WordPress 2.07 and 2.1, the search function for both POSTS and PAGES are now broken - NO RESULTS ARE RETURNED at all.
I tried to follow the above, but it didn't work for me. I'll look it over again - maybe I mistyped something.
This is a major problem that is affecting every user of the latest version. A fixed version needs to be released. JesesHeap seems to have identified a workable solution a month ago but a fix hasn't been released. What gives? Does UTW need to be open sourced to allow more developers to work the code?
I tried commenting out those lines and my search is still broken. The only things that are returned are tagged posts. Not many of my posts are tagged right now, so search is basically useless. To put it into perspective, I have 7 years of blog posts. It will take me a long time to tag them all.
NEVERMIND. Rewriting the query to use LEFT JOIN instead of INNER JOIN worked, just as the poster said above. This is an easy easy fix but I think it requires a new release because most people are not comfortable with editing the code of plugins.