Hello,
I'm having a bit of trouble trying to pass options to the search method. It 
seems that they aren't carried ahead to sphinx.
This is my model configuration:

     define_index('recipes_source') do
        indexes :titulo_rec            , sortable: true
        indexes "REPLACE(ingredientes_rec, 'sopa', '')", as: 
:ingredientes_rec
        indexes :keywords
        indexes category(:name)          , as: 'category'

        has :codcat                  , type: :integer, as: 'category_id'
        has master_category(:codcat) , type: :integer, as: 
'master_category_id'
        has :imagem      , type: :integer , as: 'imagem'
        has :votosnvotos , type: :integer , as: 'votosnvotos'
        has :votossoma   , type: :integer , as: 'votossoma'
        has :video_count , type: :integer , as: 'video_count'
      end

In the console, for example:

d = Recipe.search('mignon', field_weights: {titulo_rec: 10000})
c = Recipe.search('mignon', field_weights: {titulo_rec: 0, 
ingredientes_rec: 1000})
c == d
# => true

there is no way these 2 result sets could be the same. 
This also applies if I do a match_mode: :any/:all, or any other option. If 
I do Recipe.search(anyword) == Recipe.search(anyword, <any hash of option 
here>) it is aways true.
I tryed to create sphinx_scopes, but the result is the same.

Any idea what I could be doing wrong?
Is there a way to convert the thinking_sphinx query to string? So I can 
test it against the searchd?

I'm using thinking-sphinx (2.0.12) and sphinx 2.0.4.


-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/thinking-sphinx/-/g4RLkWJr2Q4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to