- http://sphinxsearch.com/docs/
- http://sphinxsearch.com/docs/current.html
- http://sphinxsearch.com/docs/archives/2.1.5/
Staging | URL |
---|---|
Dev: | http://service-sphinxsearch.dev.bgdi.ch |
Int: | http://service-sphinxsearch.int.bgdi.ch |
Prod: | http://service-sphinxsearch.prod.bgdi.ch |
Prod public: | http://search.geo.admin.ch |
$ make template
$ sudo su sphinxsearch
$ make move-template
$ /etc/init.d/sphinxsearch stop
$ /etc/init.d/sphinxsearch start
Port: 9312
Object | Path |
---|---|
PID: | /var/run/sphinxsearch.pid |
Searchd Log | /var/log/sphinxsearch/searchd.log |
Query Log: | /var/log/sphinxsearch/query.log |
Indexes: | /var/lib/sphinxsearch/data/index/ |
Configuration: | /etc/sphinxsearch/sphinx.conf |
$ sudo su - sphinxsearch
$ /etc/init.d/sphinxsearch stop
$ /etc/init.d/sphinxsearch start
$ indextool --checkconfig -c /etc/sphinxsearch/sphinx.conf
There will be a service restart after every index
$ indexer --verbose --rotate --sighup-each --config /etc/sphinxsearch/sphinx.conf index1 index2 index3
$ indexer --verbose --rotate --sighup-each --config /etc/sphinxsearch/sphinx.conf --all
multithread indexer is not possible: http://sphinxsearch.com/forum/view.html?id=3936a
You can use the makefile in any directory containing this repository
To see options of make
$ make
To create all indices
make template
sudo su sphinxsearch
make move-template
make index-all
Wordforms are part of the sphinx conf. The swisssearch index (zipcodes) has to be computed after a wordforms update.
$ cd lib/sphinxapi
$ python test.py -h localhost -p 9312 -i swisssearch "birgmattenweg 5"
Before the deploy make sure that the following steps have been done
make template
make move-template
with user sphinxsearch
$ make deploy-int-config
$ make deploy-int-config db=lubis
$ make deploy-int-config index=ch_tamedia_schweizerfamilie-feuerstellen
You can use one of the following commands to recreate all the indexes on the deploy target from the config file. This may take a while.
$ make deploy-int-config index=all
$ make deploy-int-config db=all
The same commands can be used with make deploy-prod-config
.
You can use the following commands to deploy the config and the wordform files and recreate all the indexes which are using wordforms. You can find the indexes with wordforms in the config files. Actually the distributed index swisssearch
and the indexes layers_**
are using wordforms.
$ make deploy-int-config index=swisssearch
$ make deploy-int-config index=layers
The same commands can be used with make deploy-prod-config
.
$ cd service-sphinxsearch/
$ git checkout master
$ git pull origin master
$ make template
$ sudo su sphinxsearch
$ make move-template
$ make deploy-int-config db=zeitreihen
You can use this command to
- create all the missing indexes
- remove orphaned indexes
The sphinx configuration will not be deployed. The same command can be used with
make deploy-prod-clean_index
.
$ make deploy-int-clean_index
âšī¸
With each call of make deploy-int-config
or `make deploy-prod-config``the indexes on the deploy target will be synchronized with the new config.
- new indexes will be generated
- orphaned indexes will be removed