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 install and configure Sphinxsearch on Ubuntu?
- How do I use SphinxSearch with XMLPipe2?
- How can I use Sphinx Search to generate word forms?
- How can I use Sphinx Search to manage my team of workers?
- How do Sphinx Search and Solr compare for software development?
- How do I find the version of Sphinx Search I'm using?
- How do I access and use the SphinxSearch source code?
- How can I use SphinxSearch with Node.js?
- How can I use Sphinx search to support multiple languages?
- How do I set up SphinxSearch with Zoom?
See more codes...