Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,221 of 9,224 pages
About the help in other languages
All help pages

Search with ezfind and Solr

When to move site search to Solr, how the ezfind extension and the solr.ini settings switch it on, controlling Solr with exp:solr, reindexing, and what Solr adds (facets, relevance, file contents, tag clouds).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/search-with-ezfind-and-solr.md

On this page

Search with ezfind and Solr

This page is for website creators whose site outgrows the built-in search. The ezfind extension connects Exponential to an Apache Solr server; Solr is optional and nothing changes until you switch it on (exp:solr).

Contents

  1. When Solr is worth it
  2. The parts
  3. Switching it on
  4. Indexing
  5. What changes for templates

When Solr is worth it

NeedBuilt-in engineSolr
Find pages by wordsyesyes
Relevance ranking and boostingbasicyes
Facets (filter results by class, tag, date)noyes
Very large numbers of objectsslows downbuilt for it
Tag clouds from search (eztags TagCloudOverSolr)noyes

Solr is a separate server (Java) to install, run, monitor and back up. For a small site the built-in engine is fine.

The parts

PartWhat
extension/ezfindthe extension: ezfind.ini, solr.ini, and site.ini.append.php with SearchEngine=ezsolr
settings/solr.ini [SolrSettings]the kernel's Solr control: Enabled, Url, BinaryPath, Host, Port, DataDir
exp:solrthe console command: status, start, stop, restart, ping

Switching it on

  1. Install a Solr server (locally with BinaryPath, or a remote one with Url).
  2. Set [SolrSettings] Enabled=true and the address in settings/override/solr.ini.append.php.
  3. Check: ./console exp:solr status --allow-root-user, then ping.
  4. Activate ezfind; its site.ini.append.php switches [SearchSettings] SearchEngine to ezsolr.
  5. Clear the INI cache and build the index (below).

Indexing

php bin/php/updatesearchindex.php --clean --allow-root-user

With delayed indexing, moves and visibility changes queue index_moved_node actions for Solr, because Solr keeps paths (10.8 Search). Keep the indexing cron part running.

What changes for templates

content/search keeps working; results come from Solr. Facets and filters are available through ezfind's fetch functions and its own search templates; read the extension's documentation in extension/ezfind/ for the exact names in your version before writing facet templates. The online editor's search dialogs also use Solr when it is active (4. The online editor).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x