addons-server/docs/topics/search.rst

41 строка
1.3 KiB
ReStructuredText
Исходник Обычный вид История

2010-05-15 00:14:56 +04:00
.. _sphinx_search:
2010-09-23 00:43:16 +04:00
================================
Search (powered by SphinxSearch)
================================
Search is powered by `Sphinx <http://sphinxsearch.com>`_. It allows us to do
very fast full-text search and avoid hitting the mysql databases or polluting
them with search-related data.
Production
----------
Production at peak load based on log analysis done in 2009 suggests that we
serve 10q/s.
Sphinx is served from two load balanced nodes that also serve sphinx for
preview and SUMO.
Testing
-------
Testing of Sphinx can be remarkably slower since Sphinx needs to populate
tables and truncate tables for each test. If you are trying to run a quick
test you can always omit Sphinx::
./manage.py test -a\!sphinx
2010-09-23 00:43:16 +04:00
Addon criteria for being indexed
--------------------------------
Sphinx tries to index all valid addons. The query in
`configs/sphinx/sphinx.conf` looks for addons that meet the following criteria:
* A name needs to be set for the default locale. E.g. if your default locale
is ``fr`` there should be a corresponding translation for the name in ``fr``.
* Only (non default) translations of an addon that have either a description or
summary set will be indexed. E.g. if your addon has ``en-US`` as a default
locale, the ``fr`` locale won't be indexed if you haven't set a description
or a summary.