Good to know indexing is working again :)

Thinking Sphinx uses Sphinx’s utf-8 charset_type setting by default, which 
includes ‘standard’ Cyrillic characters - but that doesn’t seem to include the 
supplementary characters (noted from the following links)
http://sphinxsearch.com/docs/manual-2.1.8.html#conf-charset-table
http://en.wikipedia.org/wiki/Ukrainian_alphabet#Unicode

So, I recommend putting the following in your config/thinking_sphinx.yml file 
(for all environments):

  charset_table: 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, 
U+430..U+44F, U+401->U+451, U+451, U+500->U+52F

Run `rake ts:rebuild` and see if that helps.

— 
Pat

On 13 Jul 2014, at 6:33 pm, Roman Migdalyonok <[email protected]> wrote:

> Thank you very much :) Works perfectly.
> 
> P.S. btw i have some problems with search on ukrainian texts.
> When given text: "При покупці нового Ford Ви автоматично отримуєте підтримку 
> одного з найбільших автомобільних виробників з розвиненою національною 
> мережею дилерів - для Вашої максимальної зручності. Якщо Вам потрібна 
> допомога досвідчених, спеціально підготовлених компанією Ford фахівців, 
> якісні фірмові запчастини Ford, найвищий рівень обслуговування клієнтів і 
> чудове співвідношення ціна/якість, Вам підійде лише одне місце - дилерський 
> пункт Ford."
> And i query 'підтримку' - i have 0 results, but 'автоматично' - gives normal 
> results. I think query somehow drops part of ukrainian alphabet letters ('Ґ 
> ґ', 'Є є', 'І і', 'Ї ї'). Searching russain texts works fine.
> 
> Controller code for search:
> @results = ThinkingSphinx.search Riddle::Query.escape(params[:search].to_s),
>               :page => params[:page],
>               :per_page => 10,
>               :classes => [News],
>               :with => { :site_id => @site_config[:id] },
>               :retry_stale => 1,
>               :star => true,
>               :excerpts => {
>                 :before_match    => '<span class="search_match">',
>                 :after_match     => '</span>',
>                 :chunk_separator => ' &#8230; '
>               }
> @results.context[:panes] << ThinkingSphinx::Panes::ExcerptsPane
> 
> Should i create another topic? Or there is an easy fix for this? Maybe a 
> missed some configuration option?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to