i have 2 problems.
1. for the same indexes, when i use "search --config .... -e
@countries China", i got 11 results,
but when i use Product.search "China",{:match_mode=>:extended}, i got
0 result .
why this ? is there some difference with them ?
2. i spent long time , finally found :field_weights parameter, i use
it like this:
Product.search_for_ids "China"
or
Product.search_for_ids "China",{:field_weights=>
{"title"=>100,"countries"=>50000,"description"=>1}
or
Product.search_for_ids "China",{:field_weights=>
{"title"=>50000,"countries"=>100,"description"=>1}
or
Product.search_for_ids "China",{:field_weights=>
{"title"=>100,"countries"=>50000,"description"=>1},:match_mode=>:extended}
the result never been changed , my code is right ?
my version is 0.9.5 .
thanks !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
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
-~----------~----~----~----~------~----~------~--~---