How is your current and default WordPress search bar working for you and your readers? If you’re like me, you’re probably not very happy with the search results found in a standard WordPress blog. That is part of the reason why I took my down many months ago. However, a search bar is definitely needed for a blog. In fact, I have had many readers comment or email me and ask me where mine was.
I took it upon myself to create an “Advanced WordPress Search Engine” for your WordPress blog and also include a “WordPress Search Bar”.
Give mine a try:
If you like what you see, you can use it for your own WordPress blog.
The standard WordPress search algorithm produces very weak and irrelevant results. Replacing your standard search bar with this “Advanced WordPress Search Bar” will help your readers quickly find what they are looking for.
The Advanced WordPress Search Engine uses an algorithmic formula that scans your entire WordPress blog and sorts results based on the weighted keyword density found within the title of the post, the first two sentences of the post and then remaining content within that post.
The Advanced WordPress Search engine places the most weight in the post title. If two post titles contain the same number keywords, it will then check the first two sentences for the matching keyword. If the first two sentences of the post still contain the same number of keywords it will then scan the entire article for keyword density. The final results are displayed in descending order of relevance.
The Advanced WordPress Search Engine is very accurate. Don’t be alarmed if zero results are being returned. Unlike the standard WordPress search algorithm, The Advanced WordPress Search is formulated to produce accurate results and does not fill space with irrelevant results.
The purpose of a search engine is to provide the user with results based on their query. If your blog contains the keywords within a users query, results will be returned, otherwise it will return nothing. Configuring The Advanced WordPress Search Engine only requires two modifications. In less than one minute The Advanced WordPress Search Engine can be configured for your blog. Installing The Advanced WordPress Search Bar is very easy as well.
Step One: Get a copy of The Advanced WordPress Search Engine.
Step Two: CLONE (screen shot below)

Step Three: Rename the clone to your liking, add a new description and then click Edit Source (screen shot below)

Step Four: Replace the URL in the URL Builder box to reflect your WordPress URL with the /search on the end.
Example: http://www.garryconn.com/search
Screen shot below:

Step Five: Replace the fetch feed with your blog feed URL.
Example: http://www.garryconn.com/feed
Screen shot below:

Step Six: DONE! Click save!
Not that you have your Yahoo Pipe configured, now you need to install the search bar on your blog. The following steps will guide you in configuring your search bar and installing it on your blog.
Step Seven: Go to the Pipe home page and you will see the search bar. Enter a term into the search bar and then click run pipe.
(screen shot below)

Step Eight: After you click ‘Run Pipe’ you should see the search results below. Click “More options >” and then click “Get an RSS”.
Screen shot below:

Step Nine: After clicking “Get an RSS” you should instantly be transferred to your unique RSS page that displays your search results.
Screen shot below:

Look in your web browser address bar and copy your ID#. You will need this number in the next step so make sure you copy it to your clip board, etc..
Screen shot below:

Step Ten: Add your unique ID# into your search bar. Below is a copy of the HTML code for your search bar. Insert your ID# where is says, “ADD YOUR ID# HERE”.

* Download the search bar code here. Sometimes code can get screwed up when posted in blogs as they pick up on HTML formatting. I have made the code available by download. It is in an unformatted text form. Simply copy the code, add your ID# and paste it into your Textbox Widget.
Step Eleven: Now its time to insert your search bar! The easiest way to do this is to use the WordPress Widget Text Box. You can then position the widget to where you see fit.
Screen shot below:

The search bar can be hard coded into your single.php, index.php, header.php as well as above your widgets in your sidebar.php files.
At this time I am not going to publish tips on how to do this. If you are not familiar with hard coding into your WordPress files, its best that you stick to using the automatic Widgets.
If you need help however, please feel free to comment and I will provide advice.
Congrats! You are all done… You have successfully configured your Advanced WordPress Search Engine and have properly installed the Advanced WordPress Search Engine search bar! Now your readers can find exactly what they want and not worry about the default WordPress search algorithm filling in space with irrelevant results! It’s either there or its not!
Keep an eye out and subscribe to my feed because I will be showing you a very easy way to include all your favorite blogs into your Advanced WordPress search engine. We all love each other, right? Well… with The Advanced WordPress Search Engine you can share the link love in your search results and include posts written by your blog friends in your search results. The search results are displayed in a very search engine friendly RSS feed. People can subscribe to these feeds and search engines can crawl and index the links if you link directly to the search results pages in your post.
Enjoy! and feel free to ask questions, I am here to help!


Share this post with your readers on your blog. Copy the HTML code and paste it into your blog post.
Tags: WordPress Hacks, WordPress Tips
What do you have to say about this post? Leave a comment!
I enjoy meeting new people. Click the icons below and add me as a friend and I will add you. Clicking the icons will open new windows.
Date/Time: 10-25-2007 17:01:06 Comment #6015
Some people may wonder, “Garry… why not just use a Google Custom Search Engine? Wouldn’t that be easier?”
Answer:
Yes… Google CoOp may be easier, but the search results displayed depend on Google indexing your content. If Google hasn’t indexed your posts, then they will not pull up in the search results.
The Advanced WordPress Search Engine doesn’t depend on Google, Yahoo, or any search engine, as it is it own search engine that taps into your MySQL data and syndicates the results instantly in an RSS feed.
Date/Time: 10-26-2007 09:27:39 Comment #6022
For the record, Google should have indexed every post within 7 days (and usually sooner), so the main posts that would be missing would be stuff in the last 7 days. If you don’t post a lot, this stuff would probably be available on the homepage, hence not requiring search to locate.
Just my opinion
-Kyle
P.S. Great work by the way! Search works great!
Date/Time: 10-26-2007 10:06:34 Comment #6025
I was really into GCSE for awhile, but since there is very limited benefit to using it, I have scaled way back on my participation.
Date/Time: 10-26-2007 12:12:24 Comment #6028
Again, there is a huge stream of bloggers who don’t focus on Google Ranking and prefer to take matters into their own hand and get traffic by other means. Bloggers who actively maintain blogs that don’t meet Google’s quality guidelines are great examples. Some blogs are completely banned from Google all together. If any of these are the case, then GCSE will not work well for them at all.
The Advanced WordPress Search Engine is an “Instant” search engine for your WordPress blog. The minute you install it, it is ready to rock and roll!
Thanks for the comments so far!
Date/Time: 10-26-2007 14:44:34 Comment #6030
Is there a wordpress plugin that can parse the RSS & display the results in the template?
Date/Time: 10-26-2007 14:50:22 Comment #6031
Its a formula that I created within Yahoo Pipes. So, no it doesn’t use Yahoo’s search algorithm at all. This is a custom built pipe created by me that you can use for your self hosted WordPress blog. I don’t know of a WordPress plugin that will do what The Advanced WordPress Search Engine does. You could display results in a RSS widget if you copy and paste the results URL of the feed you want to display. Perhaps some of your more popular searches.
Date/Time: 10-26-2007 18:54:19 Comment #6032
Date/Time: 10-26-2007 21:31:36 Comment #6034
I think officially, you were the first to discover my updated PageRank. As much as I enjoy this update, I really need to pay the respects to many of my friends and bloggers who have taken a drop in their PageRank. I just published a post about it, you can read it here.
As far as Yahoo Pipes go… Wow!! Boy I sure have found myself a new toy! I love it and I am sure you will too. If you need any help or have any questions about Pipes, feel free to shoot me a comment and I’ll try to help out. Be sure to check out their docs and support forums… its a great place to learn more.
Date/Time: 10-26-2007 22:12:24 Comment #6037
The Brown Baron is a PR3 and easily deserves a 5. Lets not get our panties in a bunch…LOL! I want a template from Mark! I will pay! Your site looks great.
Normally I really don’t care about a flashy site. Marks work isn’t flashy, it’s CLASSY! I like it. I want to learn how to make money so I’ll be hear EVERY DAY. I’m ready to learn Gary!
I think Google is just stirring the pot which is probably good to build competition and get new blood in the game.
Date/Time: 10-27-2007 19:58:24 Comment #6068
Date/Time: 10-27-2007 20:25:36 Comment #6070
Date/Time: 11-1-2007 10:18:37 Comment #6227
i just did a search on your site and the results came up in my feedreader. Is that the expected way for results to appear? I didn’t like that at all, the results should appear in a browser window, either on your site, or at Yahoo.com. Thanks, Mike
Date/Time: 11-1-2007 11:21:13 Comment #6228
Date/Time: 11-21-2007 06:30:23 Comment #6702
nice step by step tutorial and I love pipes too.
In order to get an accurate results whith ALL the hits of your blog, you must set your feed to publish ALL your posts. Tell me if I’m wrong.
But with blogs where there are a lot of results I don’t know if these is a good idea, because once a reader subcribes to that feed the RSSreader has to download all the posts.
You too seemm to not have set your feed to publish all posts.
ciao
alex
Date/Time: 11-21-2007 11:22:58 Comment #6705
The number of posts I show in the feed will reflect the maximum number of results that will appear in the Advanced WordPress Search Engine. If I only show a maximum of 10 posts via RSS then that is the most you will get for the search engine. My blog happens to display the 40 most recent blog posts.
The Advanced WordPress search engine isn’t going to over look something because of the number of results shown. It scans the entire DB for relevant results and then displays them in a RSS results page.
Date/Time: 11-22-2007 03:32:01 Comment #6724
due to my tests, it seems that the number of posts in which the pipe searchs, depends on the number of posts you’ve set in the “Syndication Feed” in the Options->Read tab in Wordpress.
Is it the ssame for you ?
ciao
alex
Date/Time: 11-22-2007 03:38:55 Comment #6725
Do you know why this happens and how to avoid it ?
If you want I can send you a screenshot of it.
ciao
alex
Date/Time: 4-11-2008 07:36:35 Comment #13409
FYI - I haven’t indexed my blogs in Google.
Date/Time: 7-3-2008 17:45:17 Comment #16514
Thanks for the fantastic post.