Strange wordpress search results?

I'm struggling with the search results my wordpress theme. I've added a ajax powered search with fallback to a single page, if no javascript is enabled. Basically my search.php asks if a certain post parameter is set, and if yes, only the results are returned. Else the whole site will be returned.

But the search delivers really strange results! Often post are found, which doesn't contain anything related to the search term and even dump searches like sdfsdf will return sometime a result. What is going wrong here?

The searchterm seems to be found, as I can use get_search_query(); to print it out. Has anybody else encountered this before?

Answers


The search is probably looking for the search term in all of the content, visible and non-visible. Try repeating one of the searches that looked incorrect to you and view the page source (ctrl+u in most browsers), then find (ctrl+f) the search term and see if it turns up in a link or file name.


Need Your Help

Can't find the generated bulkloader.yaml

eclipse google-app-engine

I am trying to generate a bulkloader.yaml file in this way

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.