sphinxsearchHow do I run the Sphinxsearch indexer?
-
Install Sphinxsearch:
sudo apt-get install sphinxsearch
-
Create a configuration file:
sudo nano /etc/sphinxsearch/sphinx.conf
-
Configure the indexer:
indexer
: This is the name of the indexer.source
: This is the source of the data to be indexed.path
: This is the directory where the indexer will store the data.docinfo
: This is the type of information to be indexed.
-
Start the indexer:
indexer --config /etc/sphinxsearch/sphinx.conf --all
Output:
Sphinx 2.2.13-id64-release (rel22-r5006) Copyright (c) 2001-2015, Andrew Aksyonoff Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/etc/sphinxsearch/sphinx.conf'... indexing index 'indexer'... collected 0 docs, 0.0 MB total 0 docs, 0 bytes total 0.007 sec, 0 bytes/sec, 0.00 docs/sec
-
Monitor the indexer:
indexer --config /etc/sphinxsearch/sphinx.conf --status
Output:
Sphinx 2.2.13-id64-release (rel22-r5006) Copyright (c) 2001-2015, Andrew Aksyonoff Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/etc/sphinxsearch/sphinx.conf'... indexing index 'indexer'... collected 0 docs, 0.0 MB total 0 docs, 0 bytes total 0.007 sec, 0 bytes/sec, 0.00 docs/sec
-
Stop the indexer:
indexer --config /etc/sphinxsearch/sphinx.conf --stop
Output:
Sphinx 2.2.13-id64-release (rel22-r5006) Copyright (c) 2001-2015, Andrew Aksyonoff Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/etc/sphinxsearch/sphinx.conf'... indexing index 'indexer'... collected 0 docs, 0.0 MB total 0 docs, 0 bytes total 0.007 sec, 0 bytes/sec, 0.00 docs/sec
-
Helpful links
More of Sphinxsearch
- How do I use Sphinxsearch with Zsh?
- How do I install SphinxSearch on Ubuntu 20.04?
- How do I configure SphinxSearch to ignore certain stop words?
- How can I use SphinxSearch with PHP?
- How can I use Sphinx search on Laravel?
- How do I install SphinxSearch on Debian?
- How do I run SphinxSearch?
- How do I use the Sphinx search engine tutorial?
- How can I use Sphinx Search to weigh my search results?
- How do I use the Sphinx search command line?
See more codes...