Smart Search
JoomMap adds your locations to Joomla's Smart Search, so visitors find them with the site search box. A search result opens the location page.
This comes from the Smart Search - JoomMap plugin. It is enabled on install, and also when it arrives with an update. If you turned it off later, an update leaves it off.
The old Search - JoomMap plugin was made for Joomla 3's Search component, which Joomla 4 removed. The update to JoomMap 6.1.0 uninstalls it.
What is indexed
For each location, Smart Search stores:
- the Title,
- the Description, both the intro text and the part after Read More,
- the Address (display) and the Phone number, unless you turn this off (see below),
- the Location image, which Smart Search can show next to the result.
Each location also gets three search filters (Smart Search calls them taxonomies):
| Filter | Value |
|---|---|
| Type | Location |
| Map | The title of the location's Parent map |
| Location Type | The title of its Primary Location Type |
Visitors can use them in the advanced search of a Smart Search menu item, for example to search only in one map.
Locations have no access level or language of their own. They are indexed as Public and for all languages.
What visitors find
Only published locations show in the results. A location of an unpublished map is indexed as unpublished, so it does not show either.
Set it up
- Check that the plugins Smart Search - JoomMap and Content - Smart Search are enabled in System > Plugins. The second one is a Joomla plugin; it tells Smart Search when you save, publish or delete an item.
- Go to Components > Smart Search and click Index. Joomla indexes all your locations, together with your other content.
- To give visitors a search box, publish a Smart Search module, or create a menu item of the type Smart Search > Search.
Run Index once after you install or update JoomMap. After that the index stays up to date by itself.
When the index is updated
| What you do | What happens in the index |
|---|---|
| Save a location in the administrator | It is indexed again at once |
| Publish or unpublish locations in the Locations list | Their status in the index changes at once |
| Delete a location from the trash | It is removed from the index |
| A member sends a location from the site form | It is indexed at once, with its status (unpublished until you approve it) |
| Rename, publish or unpublish a map or a location type | The change shows after the next Index run |
| Disable the Smart Search - JoomMap plugin | All JoomMap locations are removed from the index |
When in doubt, click Index in Components > Smart Search again.
Settings
Open System > Plugins, search for Smart Search - JoomMap and open it.
| Field | What it does |
|---|---|
| Index address and phone | Yes (default): visitors can find a location by words in its address or phone number. No: these two fields are left out of the index |
After you change this setting, run Index again so the existing entries follow it.