Essential Manticore Search Management and Maintenance Commands
Manticore Search is a high-performance, open-source full-text search engine, a modern fork of the Sphinx search engine. The following are common commands for managing the Manticore Search service and its indexes on Linux systems.
1. Index Management
Rebuilding all indexes is a common maintenance task, typically performed after updating data sources or changing the index schema.
indexer --config /etc/manticoresearch/manticore.conf --all --rotate
Command Breakdown:
--config: Specifies the path to the Manticore configuration file. The default is usually/etc/manticoresearch/manticore.conf.--all: Rebuilds all indexes defined in the configuration file.--rotate: Performs a smooth index rotation. This makes the newly built index active without stopping the search service (searchd), seamlessly replacing the old one. This is crucial for production environments requiring high availability.
2. Search Service Management
Starting the Search Service
Starts the Manticore Search daemon (searchd).
searchd --config /etc/manticoresearch/manticore.conf
Typically, you would use the system service command for management after initial setup:
sudo systemctl start manticore # Start the service
sudo systemctl enable manticore # Enable auto-start on boot
Stopping the Search Service
Safely stops the running searchd process.
searchd --config /etc/manticoresearch/manticore.conf --stop
Equivalent command using system service management:
sudo systemctl stop manticore
Checking Search Service Status
This command queries the status of the searchd daemon, providing details like version, uptime, and loaded indexes.
searchd --config /etc/manticoresearch/manticore.conf --status
Note: This command only returns valid data if the searchd service is already running. It will fail if the service is not active.
Equivalent command using system service management:
sudo systemctl status manticore
3. Other Useful Commands
- Check configuration file syntax:
searchd --config /etc/manticoresearch/manticore.conf --check - Run in console mode (for debugging):
searchd --config /etc/manticoresearch/manticore.conf --console - Check indexes with
indextool:indextool --check-indexes --config /etc/manticoresearch/manticore.conf
For production environments, it is recommended to prioritize using the system service (e.g., systemctl) to manage Manticore Search for better process management and log integration.