sphinx-searchHow to use charset_table in SphinxSearch?
SphinxSearch supports a charset_table option to define a custom character set for indexing and searching. This option is used to define a mapping between characters in the source text and characters in the index.
Example
index test
{
charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F
}
This example defines a mapping between characters 0-9, A-Z to a-z, _, a-z, and Cyrillic characters U+410-U+42F to U+430-U+44F.
Code explanation
index test
: defines the index namecharset_table
: defines the character set mapping0..9
: defines the range of characters 0-9A..Z->a..z
: defines the mapping of characters A-Z to a-z_
: defines the character _a..z
: defines the range of characters a-zU+410..U+42F->U+430..U+44F
: defines the mapping of Cyrillic characters U+410-U+42F to U+430-U+44F
Helpful links
More of Sphinx Search
- How to order search results by relevance in SphinxSearch?
- How to specify stop words in SphinxSearch?
- How to use the MySQL protocol in SphinxSearch?
- How to get the version of SphinxSearch?
- How to use SphinxSearch with PHP?
- How to use regexp_filter in SphinxSearch?
- How to use query_log_format in SphinxSearch?
- How to configure max_children in SphinxSearch?
- How to use forward slash in SphinxSearch?
- How to use sql_attr_float in SphinxSearch?
See more codes...