Call us +1-231-421-7160

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.

Enabling Smart Search

Indexing Content

The Smart Search Module

Smart Search on the Front End

Managing Content Maps and Search Filters

The Smart Search Menu Item

Additional Configuration Options

Enabling Smart Search

Log in to the Administration area (the back end) of your site, and go to Extensions > Plug-in Manager.

pluginmanager

Once in the Plug-in Manager, search for and enable the "Content - Smart Search" Plug-in.

contentsmartsearch

Back to Top

Indexing Content

Once the plug-in is enabled, go to Components > Smart Search.

smartsearchcomponent

Select the "Index" button in the toolbar to begin the index.

indexsmartsearch

As Joomla indexes the content of your site, you will see the progress status for the index. When the index is complete, close the window and you'll see the indexed content.

indexing

When the index is complete, close the window and you'll see the the indexed content.

managedindexcontent

Back to Top

The Smart Search Module

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.

modulemanager

Select the New button to create a new Module. In the following window, select Smart Search Module as the module type.

selectmoduletype

Create the module and place it in the position that you've chosen.

Back to Top

Smart Search on the Front End

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.

searchmodule

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.

results

There is also an "Advanced Search" function.

advanced

The "Advanced Search" allows you to filter the results of your search by author, category,country, language and type.

advancedsearch

Back to Top

Managing Content Maps and Search Filters

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.

contentmaps

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.

editsearchfilter

Next, you'll have to create a Smart Search menu item to display the filter you've created.

Back to Top

The Smart Search Menu Item

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.

searchmenuitemtype 2

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.

searchmenuitemsettings

Back to Top

Additional Configuration Options

There are additional configuration options available for your Smart Search Module. Go to Components > Smart Search > Options to view and manage these settings.

smartsearchoptions

Back to Top

Do you have suggestions for improving this article?  

We take a great deal of pride in our knowledgebase and making sure that our content is complete, accurate and useable. If you have a suggestion for improving anything in this content, please let us know by filling out this form. Be sure to include the link to the article that you'd like to see improved. Thank you!