Skip to main content

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:

SettingDefaultEffect
search_limit50Maximum results returned by the plugin
filter_lang1Limits to active languages
search_archived0Includes archived items
caution

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) or Right (2);
  • Selectors display as: select or checkboxes;
  • Content types: types offered in the form (empty = all);
  • Show search phrase / Default search phrase: display and default mode;
  • Search autocomplete: No, Simple or Tag-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 (10 by default).

Build indexes​

For fields to be searchable and filterable:

  1. Mark fields as “advanced text-searchable” and “filterable” in their configuration.
  2. Rebuild the advanced index in Components > FLEXIcontent > Search indexes.
  3. Select the relevant fields in each content type.
  4. Also rebuild the basic index if you enable word suggestions or the vvv search prefix for short/common words.

2. Fill the form on the site​

Open the search page. The form offers, in order:

  1. Content types — one or more types; choosing nothing means “all” if the menu allows it.
  2. Words — your text search.
  3. The word combination selector.
  4. Advanced — expands advanced options.
  5. in Fields — limits text search to certain fields.
  6. Filters — field attribute filters (they appear after choosing a type).
  7. Category — if enabled in the menu.
  8. Also search in areas / Include (*) — additional Joomla search areas.
  9. Results order — result sorting.
  10. 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​

ModeLabelBehavior
allAll wordsAll words are required (+word*)
anyAny wordsAny word can match
exactExact phraseThe exact phrase is searched
naturalPhraseNatural language search
natural_expandedPhrase, more resultsNatural 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, 300 by default (50 to 2000);
  • Autocomplete limit (search_autocomplete_limit): number of suggestions, 10 by 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).
caution

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_noauth is 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 LIKE search, 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.

See also​