Skip to content

Instantly share code, notes, and snippets.

@mayorova
Created August 30, 2022 10:02
Show Gist options
  • Save mayorova/927c70823a1d36ecab0e7badc676e490 to your computer and use it in GitHub Desktop.
Save mayorova/927c70823a1d36ecab0e7badc676e490 to your computer and use it in GitHub Desktop.
Sphinx configuration
indexer
{
}
searchd
{
listen = 127.0.0.1:9306:mysql41
log = /home/dmayorov/Projects/3scale/porta/log/development.searchd.log
query_log = /home/dmayorov/Projects/3scale/porta/log/development.searchd.query.log
pid_file = /home/dmayorov/Projects/3scale/porta/log/searchd.development.pid
workers = threads
binlog_path =
}
index account_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/account_core
charset_table = 0..9, A..Z->a..z, a..z, U+23, U+25, U+27, U+2A..U+2C, U+2E, U+3A, U+3B, U+3F, U+5F, U+60, U+7B, U+7D
min_infix_len = 3
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = name
rt_field = account_id
rt_field = username
rt_field = user_full_name
rt_field = email
rt_field = user_key
rt_field = app_id
rt_field = app_name
rt_field = user_id
rt_attr_uint = sphinx_deleted
rt_attr_bigint = sphinx_internal_id
rt_attr_bigint = provider_account_id
rt_attr_bigint = tenant_id
rt_attr_string = sphinx_internal_class
rt_attr_string = state
}
index topic_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/topic_core
charset_table = 0..9, A..Z->a..z, a..z
min_infix_len = 3
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = title
rt_field = post
rt_attr_uint = sphinx_deleted
rt_attr_uint = sticky
rt_attr_uint = last_updated_at
rt_attr_bigint = sphinx_internal_id
rt_attr_bigint = tenant_id
rt_attr_bigint = forum_id
rt_attr_string = sphinx_internal_class
}
index backend_api_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/backend_api_core
charset_table = 0..9, A..Z->a..z, a..z
min_infix_len = 3
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = name
rt_attr_uint = sphinx_deleted
rt_attr_bigint = sphinx_internal_id
rt_attr_string = sphinx_internal_class
}
index cms_page_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/cms_page_core
charset_table = 0..9, A..Z->a..z, a..z
min_infix_len = 3
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = sphinx_internal_class_name
rt_field = title
rt_field = published
rt_attr_uint = sphinx_deleted
rt_attr_bigint = sphinx_internal_id
rt_attr_bigint = tenant_id
rt_attr_string = sphinx_internal_class
}
index email_configuration_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/email_configuration_core
charset_table = 0..9, A..Z->a..z, a..z
min_infix_len = 3
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = email
rt_field = user_name
rt_attr_uint = sphinx_deleted
rt_attr_bigint = sphinx_internal_id
rt_attr_string = sphinx_internal_class
}
index metric_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/metric_core
charset_table = 0..9, A..Z->a..z, a..z
min_infix_len = 3
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = friendly_name
rt_attr_uint = sphinx_deleted
rt_attr_bigint = sphinx_internal_id
rt_attr_string = sphinx_internal_class
}
index plan_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/plan_core
charset_table = 0..9, A..Z->a..z, a..z
min_infix_len = 3
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = sphinx_internal_class_name
rt_field = name
rt_attr_uint = sphinx_deleted
rt_attr_bigint = sphinx_internal_id
rt_attr_string = sphinx_internal_class
}
index proxy_rule_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/proxy_rule_core
charset_table = 0..9, A..Z->a..z, a..z, U+21, U+27, U+28..U+2F, U+5F
min_infix_len = 1
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = pattern
rt_attr_uint = sphinx_deleted
rt_attr_bigint = sphinx_internal_id
rt_attr_bigint = owner_id
rt_attr_string = sphinx_internal_class
rt_attr_string = owner_type
}
index service_core
{
type = rt
path = /home/dmayorov/Projects/3scale/porta/db/sphinx/development/service_core
charset_table = 0..9, A..Z->a..z, a..z
min_infix_len = 3
html_strip = 1
html_index_attrs = img=alt,title; a=title
html_remove_elements = style, script
rt_field = name
rt_attr_uint = sphinx_deleted
rt_attr_bigint = sphinx_internal_id
rt_attr_string = sphinx_internal_class
}
index account
{
type = distributed
local = account_core
}
index topic
{
type = distributed
local = topic_core
}
index backend_api
{
type = distributed
local = backend_api_core
}
index cms_page
{
type = distributed
local = cms_page_core
}
index email_configuration
{
type = distributed
local = email_configuration_core
}
index metric
{
type = distributed
local = metric_core
}
index plan
{
type = distributed
local = plan_core
}
index proxy_rule
{
type = distributed
local = proxy_rule_core
}
index service
{
type = distributed
local = service_core
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment