Book.search do
any do
fulltext "tupac"
with :tags, ["southpark"]
end
end
由于any
仅接受全文,any_of
仅接受标量字段,如何查找包含tupac
或用southpark
标记的图书。
答案 0 :(得分:0)
Book.search do
any do
fulltext "tupac", minimum_match: 0
with :tags, ["southpark"]
end
end