Theme editor

XenForo Enhanced Search Configuration with Elasticsearch 8

Aior

Administrator
Staff member
Joined
Apr 2, 2023
Messages
87
Reaction score
2
Points
8
Age
39
Location
Turkey
Website
aior.com
Thread owner

XenForo Enhanced Search Configuration with Elasticsearch 8​


This guide explains how to configure XenForo Enhanced Search using a local Elasticsearch 8.x instance with HTTPS and authentication enabled.


1. Prerequisites

Ensure the following:
• Elasticsearch 8.x is installed and running on the same server as XenForo.
• Authentication and HTTPS are enabled (default in Elasticsearch 8).
• You have the generated elastic user password from the installation process.

1746877125767.webp


2. Accessing the Enhanced Search Settings

Navigate to:

Admin Control Panel > Setup > Options > Search Options

Click the button labeled “Configure Enhanced Search”.

3. Field Configuration

Field Name Value
Elasticsearch server (Host) localhost
Port 9200
Username elastic
Password The password generated during setup
Use HTTPS connection Enabled (checked)
Enable SSL certificate verification Disabled (select “Disable verification”)
Index name (Optional) Leave blank or set as xf

Use the Test settings button to confirm the connection.

4. Final Steps
1. After saving the configuration, go to:
Admin Control Panel > Tools > Rebuild Caches > Rebuild Search Index
2. Start the rebuild process to populate the Elasticsearch index with your forum content.

5. Troubleshooting
• If the connection test fails:
• Ensure Elasticsearch is running: systemctl status elasticsearch
• Verify the port 9200 is open and accessible from the web server.
• If SSL verification is enabled, it may fail due to a self-signed certificate. Disable verification unless you have installed a valid SSL certificate.
• Double-check for any typos in the username or password, especially special characters like = or +.

Would you like a similar guide for using an external Elasticsearch server or configuring Kibana as well?
 

Featured content

Back
Top