This work good

> ThinkingSphinx.search query,
>     :order   => '`weight` DESC',
>     :limit   => 10,
>     :indices => ['autocomplete_core']


Maybe i found bug with sphinx 2.1.1 =), when set group_by in search, i get 
error 
Using the old-fashion @variables (@count, @weight, etc.) is deprecated
because in new version is "is deprecated" ( 
http://sphinxsearch.com/forum/view.html?id=10874 )
i delete , @count from facet_search.rb and sphinxql.rb and this help me
And when i order by @weight, i use

> :select => 'weight() as w',
> :order => "field ASC, w DESC"

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to