Smart Search Menu Item (Joomla 3)
Prior versions of Joomla have included a core search function that is still available, but Smart Search is a big step forward for the way Joomla indexes information. The Smart Search feature is disabled by default because it is only compatible with core Joomla functions at this point. The goal is that more and more extension developers create extensions that are also compatible with Smart Search, and eventually it will be the default search feature for Joomla! This article explains how to use Smart Search.
Log in to the Administration area (the back end) of your site, and go to Extensions > Plug-in Manager.
Once in the Plug-in Manager, search for and enable the "Content - Smart Search" Plug-in.
Once the plug-in is enabled, go to Components > Smart Search.
Select the "Index" button in the toolbar to begin the index.
As Joomla indexes the content of your site, you will see the progress status fo the index. Don't stop the index until you get the message below.
When the index is complete, close the window and you'll see the the indexed content.
Now that your content is indexed, the next step is to create a Smart Search Module. It's smart to first visit your module map to select a position for your module. For the purpose of this tutorial, we will create a Smart Search module in the "Search" position of the Protostar Template. Go to Extensions > Module Manager to begin.
Select the New button to create a new Module. In the following window, select Smart Search Module as the module type.
Create the module and place it in the position that you've chosen.
After creating the module, refresh the front end of your site, and you'll see that the Smart Search module looks much like the traditional core Joomla search option.
It functions a lot differently, however. Perform a search for a key term in your site, and you'll see how this Smart Search indexes information differently.
There is also an "Advanced Search" function.
The "Advanced Search" allows you to filter the results of your search by author, category,country, language and type.
Returning to the Module Manager in the back end of your site, you can control the types of content that your Smart Search module will index. Go to Components > Smart Search and select "Content Maps". You can view, enable or disable content for certain authors, categories, contacts, etc.
You can also control how users filter information on your site. Go to Components > Smart Search and select "Search Filters". Select the "New" button to create a new filter. In the "Edit Search Filter" area, create a title for the filter, and select how you'd like the results filtered for your users. There are additional "Filter Timelines" available here so your users can filter by date.
Next, you'll have to create a Smart Search menu item to display the filter you've created.
To enable your users to see the filter, you'll have to create a Smart Search Menu Item. Go to Menus > Main Menu and select the "New" button. In the next window, select the Search option underneath the Smart Search category as the Menu Item Type.
As you create the menu item, notice the "Search Filter" setting where you can select your custom filter. By enabling this filter, users will only be able to search for the results that you specified.
There are additional configuration options available for your Smart Search Module. Go to Components > Smart Search > Options to view and manage these settings.