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.

Reply via email to