How to Set Up the Smart Search Module in Joomla 2.5 & up
Video Transcript:
Hi, I'm Scott Greenwald from JoomlaDirect.com. And in this video, I'm going to show you how to set up the new Smart Search feature in Joomla 2.5.
So, What is Smart Search? Smart Search is something similar to this: I'm sure you've seen it on Google.com. When you start typing in something, the search box will start suggesting terms for you. That's all it is. And Joomla 2.5 has this built right into the core. Let's take a look at how to set it up, because by default it is disabled.
So, let's go ahead and enable the Smart Search. We'll log in to the backend.
The first thing we need to do is enable the Smart Search plugin. So, under Extensions, Plugin Manager, just do a search for "search."
And right here. Content Smart Search. Just press this button to enable it, and there we go.
The second thing we need to do is go over to Components, Smart Search, and we need to index all of our content. Now, your site is probably going to have nothing here. I've already run an index once. So just go ahead and press Index right here. And that's going to build a cache file to run the Smart Search against.
And, it's complete. It may take while, depending on the size of your site and your internet connection. So, close that out. This is basically just a list of words that Joomla is going to run the smart search against.
And, the last step is to enable the Smart Search module. So, we'll go to Extensions, Module Manager. The first thing we're going to do here is check the module position that my current search box is published to. An easy way to do that is to filter the module list by type. I think this is it, position-0.
Let's go ahead and disable that module, and add the new Smart Search module. Just press New. And, Smart Search Module is right here. Give it a fancy title. And, I'm, going to add it to position-0. You can search for position-0 in the module positions popup, or just type it in. And, I want it to appear on all pages. I'm going to leave everything to the default settings. And then press Save & Close.
And, here's our Smart Search module that we just created. Ok, let's take a look at the front-end, and check out the smart search module.
Did it work? Let's see.
And look at that! There is our list of Smart Search auto suggestions. I think it's strange that when you click on it, you still have to press Enter. That's kind of weird. But, here's your search results. Your search term is highlighted here. And, Smart Search also works right here, in the search results search box.
And there we have it! That was the new Smart Search feature of Joomla 2.5
How are you using Smart Search? Leave a comment below. And, remember to subscribe to Joomla Direct for more beginner tutorials straight to your inbox. Thanks for watching!
- Tags: auto suggest, Joomla 2_5, search module, smart search


Comments (32)
bubiny
Hello,
Do you know how to setup the smart search results to list up instead of down? I have the search module at the bottom of the page and listing down does not make sense.
Scott Greenwald
Nope, that's not an option. Perhaps an experienced Joomla developer could build a custom solution for you.
afroz
wow thats really great.. thanks alot it helped me..
Gyanesh Sharma
This module works fine. However, on the front page, the search result comes way in the bottom after all the modules. There is no way to assign an item id (aka menu) for the search results similar to the core joomla search.
Scott Greenwald
This is a known Joomla bug that also depends on the design of your template. Have you tried creating a Smart Search menu item, from where you can set the module assignment?
DaveVSGolliath
I'm having a serious issue with being able to get the indexing to go beyond 4%. Please email me with a solution, cause I've not got much hair left, thanks.
Scott Greenwald
@DaveVSGolliath If you're having problems indexing your content, the first thing I would check is your PHP memory limit and timeout settings, located in your hosting account's php.ini file. This is not part of Joomla, rather it is related your server configuration. If you are on a shared hosting plan, then you may need to contact your hosting provider to change your php configuration. Hope I was able to help.
M.Kn3dl
Hi Mr. Greenwald.
I tried to set up smart search as you wrote, but still didn't work. Running on joomla 2.5 with OutsourcingJT template and with two test articles. Index was run and made something but no suggestions. Tried in Opera 12 and IE9 (in compatibility mode too). Can you advise me something please?
Many thanks for answer.
Scott Greenwald
If you're sure you've set up the smart search component and module correctly, then it's possible your template overriding the smart search core files. Check if there are any folders named search, or similar, within your template's folders.
M.Kn3dl
Yep, there are some modules in management, named same. I will try to remove them, but i thought, that smart search is "plugin" based on common search. Can i remove all search modules except the new Smart search I created as written?
Dolly
I have configured successfully smart search, I can see smart search result options, but when you press one result it opens to a blank page. What's wrong? Please help
Scott Greenwald
I've never run into that problem myself. Depending on your setup, you may need to create a Search menu item. Other than that, its hard to offer help without looking at the site and backend first-hand.
Dolly
Thank you Scott! I will try it...
paulo
Liked the tut, however when I tried to find smart search I couldnt find it ( I did a search in comp, and ext any suggestions (using 2.5.6)
Scott Greenwald
Thanks paulo. Smart Search is under the Components menu. Check your plugin manager to see if the Smart Search plugins are enabled.
Janis
Super cool, and easy to follow. I also really appreciate that you have the transcript.
I will be following your tutorials, thanks a lot.
Scott Greenwald
Thanks for subscribing Janis! More tutorials are on the way soon.
gAV
I have setup the smart search in Joomla 2.5, but i was wondering how do i hide the search results containing div and styles until a search is called upon..??
I know how to hide modules with conditional if statements, but because the small-search area is located on every page, Joomla activates the div and styles, so i end up with an empty gradient filled box, with padding included on every page, instead of the just the search-results page, when the search results are actually called upon..??
Thanks in advance !! ;)
Scott Greenwald
If I understand correctly, you are getting blank modules on your search results page? If so, you may need to create a menu item link to the search results page, so that you can better control the module assignments.
Jason J
I created a menu item for the search results, but I can find no way to force smart search to use it. I still get the homepage modules displayed when I use the smart search
dan dekker
I Installed joomla smart seo plugin v0.8 for joomla 1.7 and its bringing up this error code " you must install the smartseo component in order for the plugin to work properly!!" I have no idea what to do. Can you please help? Email me please.. thanks in advance.. Dan Dekker
Scott Greenwald
Hi Dan. I'm not familiar with the smart seo component. This tutorial as about the "smart search" feature, built into Joomla 2.5
Govind Rao
Hi Scott Greenwald .. i am govind rao from india .. i have 3 year exp in c++ , but i am very interst work on .. joomla ... please tell me how can i start the ... work.. on joomla and php and java script .
give me some suggestion for this . i am watching u r videos ... trying to under stand ... but i am not able get perfect result ... so i need some help from u r side ...
Dave H
Scott, your dedication to answering comments is admirable so I'm pinning my hopes on you being able to help me too!
I have set up filters and content map settings to exclude certain categories but want to apply these settings to a SmartSearch module and not a Menu item. I cannot find any way to make it work with a module and not a menu item? Am I just being daft?
Thanks in advance for anything you can offer!
Scott Greenwald
I’m so sorry, but I can’t offer much help on this one. Have you checked the Joomla forums? http://forum.joomla.org/
Debra
How do I get the smart search module to show the default text?
ray
Thanks a lot, Scot. I also wonder how you created this video and generated the transcript.
Scott Greenwald
Hi Ray. I created the video with Screenflow for Mac. The transcript was typed by hand :) Thanks for watching!
Peter-Jon
Hi Scott,
thanks for the smart search tutorial. Very useful.
Have you done a tutorial video that shows how to set up a search like the one on this Joomla based website's home page: www.upgradeyourbody.com
Scott Greenwald
Thanks Peter. If you're talking about the the selection menus to choose a category, then no I have not done a tutorial. You can probably find an extension like that on the Joomla Extensions Directory http://extensions.joomla.org/
Fernando
Hi Scott
I'm looking for a search mod for using with projectfork
I've tried the smartsearch bu only gets the joomla items index. Do you know how could I include projectfork items in the search engine?
Thanks and kind regards
Scott Greenwald
Hey Fernando. Sorry, I've never used Project Fork. I would suggest contacting the developers for a solution, or commenting on the listing in the JED.