Try the following:
ThinkingSphinx.search(
:conditions => {:filter_option => "(#{params[:term]})"},
:star => true,
:classes => [City, Locality, ActsAsTaggableOn::Tag],
:index_weights => {'city_core' => 1, 'locality_core' => 2,
'acts_as_taggable_on_tag' => 3}
)
On 08/07/2013, at 11:40 PM, Aditya Naik wrote:
> Am I doing this right?.. because its not working..
>
> ThinkingSphinx.search "@filter_option (#{params[:term]})", :match_mode =>
> :extended, :star => true, :classes => [City, Locality,
> ActsAsTaggableOn::Tag], :index_weights => {City => 1, Locality => 2,
> 'ActsAsTaggableOn::Tag' => 3}
>
> I have tried
>
> ThinkingSphinx.search "@filter_option (#{params[:term]})", :match_mode =>
> :extended, :star => true, :classes => [City, Locality,
> ActsAsTaggableOn::Tag], :index_weights => {City => 1, Locality => 2,
> ActsAsTaggableOn::Tag => 3}
>
> it gives an error.. something to the effect of
>
> ThinkingSphinx::SyntaxError (sphinxql: syntax error, unexpected $undefined,
> expecting '=' near '::Tag=3); SHOW META'):
>
> Any thoughts?
>
>
> --
> 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/groups/opt_out.
>
>
--
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/groups/opt_out.