Use advanced search
Audience: administrators (setup) and visitors (use).
Time: 15 minutes.
New in 5.5: improved excerpts and highlighting, suggestions respect access rights, translated labels, and better handling of languages without spaces.
Advanced search is provided by the FLEXIcontent component (view=search) and the compact module mod_flexiadvsearch. It queries the flexiadvsearch search plugin and enabled Joomla search areas.
1. Prepare search (administrator)
Enable the plugin
In Extensions > Plugins, enable Search - FLEXIcontent Advanced Search (flexiadvsearch). Main settings:
| Setting | Default | Effect |
|---|---|---|
search_limit | 50 | Maximum results returned by the plugin |
filter_lang | 1 | Limits to active languages |
search_archived | 0 | Includes archived items |
A search_limit that is too low reduces the number of usable pages: the plugin returns at most 50 results before the view pagination.
Create the search menu item
In Menus, create a menu item to FLEXIcontent > Search, then configure:
- Form placement:
Left(1),Top(0) orRight(2); - Selectors display as:
selectorcheckboxes; - Content types: types offered in the form (empty = all);
- Show search phrase / Default search phrase: display and default mode;
- Search autocomplete:
No,SimpleorTag-like; - Min chars / Max chars:
3/200; - Display category list, Autodisplay advanced options;
- Text mode: basic index (
0) or advanced index (1/2); - Show text fields, Show filters, Show search areas;
- Results order and Limit (
10by default).
Build indexes
For fields to be searchable and filterable:
- Mark fields as “advanced text-searchable” and “filterable” in their configuration.
- Rebuild the advanced index in Components > FLEXIcontent > Search indexes.
- Select the relevant fields in each content type.
- Also rebuild the basic index if you enable word suggestions or the
vvvsearch prefix for short/common words.
2. Fill the form on the site
Open the search page. The form offers, in order:
- Content types — one or more types; choosing nothing means “all” if the menu allows it.
- Words — your text search.
- The word combination selector.
- Advanced — expands advanced options.
- in Fields — limits text search to certain fields.
- Filters — field attribute filters (they appear after choosing a type).
- Category — if enabled in the menu.
- Also search in areas / Include (*) — additional Joomla search areas.
- Results order — result sorting.
- Go to launch the search, Reset to clear filters.
If no type is selected, the message Please select content type before using filters is displayed and filters are not offered.
3. Choose the search mode
| Mode | Label | Behavior |
|---|---|---|
all | All words | All words are required (+word*) |
any | Any words | Any word can match |
exact | Exact phrase | The exact phrase is searched |
natural | Phrase | Natural language search |
natural_expanded | Phrase, more results | Natural language with query expansion |
All words and Any words modes also accept quoted phrases. The form displays ignored words with Words ignored (missing or too common) and Words ignored (too short, minimum length: %s).
:::tip Short words in 5.5
In 5.5, words too short to be indexed are also found as whole words on category and search pages. If you enable the global Small / common words option (add_search_prefix), rebuild the indexes.
:::
4. Use autocomplete suggestions
Enable and configure
Choose Simple or Tag-like in the menu item or module. Then, in global configuration:
- Autocomplete scan (
search_autocomplete_scan): scanned words,300by default (50 to 2000); - Autocomplete limit (
search_autocomplete_limit): number of suggestions,10by default (1 to 30); - Autocomplete sources (
search_autocomplete_sources):Words,Titles,Tags,Categories,Text field values,Item Meta Keywords; - specific limits for titles (
5) and field values (3).
If no source is checked, only Words suggestions are proposed. Explicitly check the sources you want to see.
The mod_flexiadvsearch module can display rich suggestions (image, truncated title, information fields) and uses itemid_force to submit the search to the right menu item.
Usage
- Type at least 1 character: suggestions appear after about 200 ms.
- A trailing space asks to suggest the next word; otherwise the last word is treated as a prefix.
- In Tag-like mode, suggestions are managed by Choices.js or Select2 as chips; next pages only propose words.
- Suggestions are translated in the page language and respect access rights to items, categories, types and fields. After an update, rebuild the basic index to align suggestions with current rights.
5. Understand results
- Results are paginated according to the menu Limit setting; sorting is controlled by Results order (
orderby,orderby_2nd). - Excerpts and searched word highlighting are calculated by the search view; category and type of each result are displayed.
- Relevance can take into account title, index, category and tag priority.
- Results filter items according to type, main category and access rights. If
show_noauthis enabled, unauthorized items can be signaled rather than removed.
Multilingual
- The language filter limits results to active languages (
*included). - Thai, Chinese, Japanese and text containing Han/Hiragana/Katakana characters use an adapted
LIKEsearch, including in All words mode. - Languages without word separators are supported on a site in another language.
Good to know
- Without the search plugin enabled, the view returns no FLEXIcontent results.
- Opening the suggestions endpoint directly in the browser returns
Access Denied: Direct browser requests to this endpoint are strictly forbidden.: only site AJAX requests are accepted. - Field filters and search fields are hidden if the user does not have the right to see them.
- Do not confuse this search with Joomla Smart Search / Finder (
plugins/finder/flexicontent), which uses its own index.