vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Sphinx (https://vborg.vbsupport.ru/forumdisplay.php?f=265)
-   -   Sphinx: does not index words consisting from national symbols (https://vborg.vbsupport.ru/showthread.php?t=241845)

FractalizeR 05-04-2010 02:18 PM

Sphinx: does not index words consisting from national symbols
 
On my forum after installation Sphinx seem not to index words, that consist from non-latin symbols. My forum is in russian and uses Windows-1251 encoding. Do I need to tune sphinx to do that correctly?

sung 05-04-2010 03:44 PM

Yes, you need to edit stuff a bit to handle different character encodings. I couldn't say what the exact steps are since I don't use it, but maybe this link would be of some help to you?

http://sphinxsearch.com/faq.html#encoding

FractalizeR 05-04-2010 08:18 PM

It seems, that I was trying to specify global sql_query_pre, while I needed to put in into each "source" section of configuration file. Will try now.

--------------- Added [DATE]1273009150[/DATE] at [TIME]1273009150[/TIME] ---------------

Yea, now it works.

Yellow Slider 07-05-2010 12:49 PM

where is the configuration file? can you please explain what did you change in order to fix that?

FractalizeR 07-06-2010 06:39 AM

Each source section should contain SET NAMES query like this:

Code:

source DBSource
{
        type                                    = mysql

        #####################################################################
        ## SQL settings (for 'mysql' and 'pgsql' types)
        #####################################################################

        sql_host                                = " . $vBSphinxSearchConfig->dbservername . "
        sql_user                                = " . $vBSphinxSearchConfig->dbusername . "
        sql_pass                                = " . $vBSphinxSearchConfig->dbpassword . "
        sql_db                                  = " . $vBSphinxSearchConfig->dbname . "
        sql_port                                = " . $vBSphinxSearchConfig->dbport . " # optional, default is 3306
        sql_query_pre = SET NAMES cp1251
        sql_query_pre = SET SESSION query_cache_type=OFF

}



All times are GMT. The time now is 06:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06894 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete