开发者

meta_search NoMethodError when using fields_or_fields structure query

开发者 https://www.devze.com 2023-01-23 19:58 出处:网络
I am using meta_search. The following gives correct results: User.search({:first_name_contains_any => [\"peter\", 开发者_StackOverflow\"john\"]}).all

I am using meta_search. The following gives correct results:

User.search({:first_name_contains_any => ["peter", 开发者_StackOverflow"john"]}).all
User.search({:last_name_contains_any => ["wong", "lee"]}).all

But the following does not work and throws NoMethodError:

User.search({:first_name_or_last_name_contains_any => ["peter", "something"]}).all

Does anyone has idea on it? Am I missing something..?


I cannot replicate this problem with meta_search 0.9.10. It works fine for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消