Minimal configuration code
|
---|
# # Minimal Sphinx configuration for Bitrix # searchd { listen = 9312 listen = 9306:mysql41 log = /var/log/sphinxsearch/searchd.log query_log = /var/log/sphinxsearch/query.log read_timeout = 5 max_children = 30 pid_file = /var/run/sphinxsearch/searchd.pid max_matches = 1000 seamless_rotate = 1 preopen_indexes = 1 unlink_old = 1 workers = threads # for RT to work binlog_path = /var/lib/sphinxsearch/data/ binlog_max_log_size = 512M binlog_flush = 2 rt_flush_period = 3600 } indexer { lemmatizer_cache = 128M lemmatizer_base = /etc/sphinxsearch/dicts/ } index bitrix { #main settings type = rt path = /var/lib/sphinxsearch/data/bitrix docinfo = inline #choose appropriate type of morphology to use #morphology = lemmatize_ru_all, lemmatize_en_all, lemmatize_de_all, stem_enru morphology = stem_enru, soundex #these settings are used by bitrix:search.title component dict = keywords prefix_fields = title infix_fields= min_prefix_len = 2 enable_star = 1 #all fields must be defined exactly as followed rt_field = title rt_field = body rt_attr_uint = module_id rt_attr_string = module rt_attr_uint = item_id rt_attr_string = item rt_attr_uint = param1_id rt_attr_string = param1 rt_attr_uint = param2_id rt_attr_string = param2 rt_attr_timestamp = date_change rt_attr_timestamp = date_to rt_attr_timestamp = date_from rt_attr_uint = custom_rank rt_attr_multi = tags rt_attr_multi = right rt_attr_multi = site rt_attr_multi = param #depends on settings of your site # uncomment for single byte character set charset_type = sbcs # uncomment for UTF character set #charset_type = utf-8 } |
-
About the System
-
Managing Users
-
Access permissions
-
Using system tools
-
AD/LDAP
-
Blogs
-
Business Processes
-
Business Process Designer
-
Visual Modeler
-
Business Process Templates
-
Actions
-
Document Processing
-
Constructions
-
Notifications
-
Other
-
My Actions
-
CRM
-
Activity
-
Create new company
-
Create new contact
-
Create CRM event
-
Create new lead
-
Create new deal
-
Create using source
-
Change responsible person
-
Change status
-
Waiting for deal status
-
Waiting for lead status
-
Send SMS
-
Send email
-
Schedule a call
-
Schedule a meeting
-
Get CRM data
-
Facebook Advertisements
-
Google AdWords Advertisements
-
Add to exceptions
-
Add comment
-
Book a resource
-
Cancel booking
-
Wait
-
Create CRM document
-
Create contact or lead
-
Create repeat lead
-
-
-
-
Common Lists
-
Currencies
-
Document Library
-
e-Learning
-
Basic notions
-
Creating lessons and tests
-
Publishing a training course
-
-
Extranet
-
Forum
-
Helpdesk
-
Setting up your helpedesk service
-
Dictionaries
-
SLA
-
How to assign the ticket duty
-
Submitting tickets to tech support via e-mail
-
Functions available in the public section
-
Administration interface
-
-
Information Blocks
-
Basic notions
-
Typical Operations
-
Extra features
-
-
Intranet
-
Mail
-
Performance Monitor
-
Photo Gallery
-
Polls and surveys
-
Proactive Protection
-
Push and Pull
-
Push & Pull scope of application
-
Push server operational basis
-
Queue server versions
-
Configuring P&P module and queue server
-
Upgrade from Bitrix Push server 1.0 to Bitrix Push server 2.0
-
Upgrade from Nginx-PushStreamModule to Bitrix Push server 2.0
-
Using separate queue server
-
Push server setup and start at the 3rd-party environment
-
-
Scalability
-
Scalability Panel
-
Load chart
-
VPS Orders
-
-
Search
-
Main Concepts
-
Site indexing
-
Morphological search
-
Ranking Rules
-
Logical operators
-
Document Search Setup
-
Adding new formats
-
Setting Up Web Environment with PHP Version below 5.2.6
-
Search of MS Office documents of earlier versions
-
-
Sphinx search set up
-
-
Social Network
-
Technical Support
-
Telephony
-
Web forms
-
XMPP Server
-
Multiple Divisions
-
External data import to Activity Stream
Sphinx search set up
Lesson 245 out of 279
External full text search Sphinx is available in Bitrix products v. 14.0.0. It ensures fast and efficient search on site, reduces the server load, and is fully integrated in Search module components.
If for any reason the reference environment Bitrix Virtual Appliance v. 4.3 and higher containing Sphinx is not applied, you can set it up by yourself according to the following recommendation.
- First of all, you need to install the Sphinx package in your environment. See documentation the section Installation on the official website for the procedure description.
For example, suppose the default Sphinx settings file directory is /etc/sphinxsearch/.
- You have to set up Sphinx using the configuration file /etc/sphinxsearch/sphinx.conf.
listen
– indicate IP, port, Unix-domain socket path or protocol listened by search daemon (in this case, these are ports 9312 and 9306 with MySQL protocol);log
– name of log-file governing Sphinx operation and its location;query_log
– name of log-file governing Sphinx search requests and its location;binlog_path
– path to binary logs location (this parameter is important since if you indicate the directory without permission to its log the search daemon is not started);binlog_max_log_size
– maximum size of binary log file after which new file is created.lemmatizer_cache
– maximum the size of morphological search vocabulary cache;lemmatizer_base
– directory to store language vocabularies (ru.pak, en.pak, de.pak) for morphological search that you must preliminarily download and put into the present directory.path
– index files path and names;charset_type
– site code:- for UTF –
utf-8
; - for others –
sbcs
.
- for UTF –
- Restart Sphinx.
- Go to Bitrix product page Search module settings (Control Panel > Settings > System settings > Module settings > Search) ) and set up the Sphinx connection as a search engine:
- Use full text search engine – select Sphinx;
- Connection string for index control (MySql protocol) – indicate IP and connection port for indexing using MySql protocol;
- Index ID – indicate index name (e.g. bitrix);
- This page also contains a sample of the configuration file for the Sphinx index in Bitrix products (only for reference).
- After the settings are applied in the Search module, click the button Re-index website now in the Administration section to reindex the site:
Note. If Bitrix products have the Social Network module installed, indexing using the search module must be followed by the reindexing of the social network in the public section. To do this, go to any section of the social network in development mode (where socialnetwork, socialnetwork_group, socialnetwork_user components are installed) and click Reindex in Tools:
The basic directives that can be changed depending on the server settings and that must be considered are:
Section searchd:Section indexer:
Section index bitrix:
Now, the minimal set up of Sphinx as the Bitrix products search engine is finished.