Reputation: 1
let's say we have:
Document.create(title: 'title1', description: 'description1')
searching by both:
Document.search('title1')
Document.search('description1')
finds the result, but searching by:
Document.search('title1 description1')
gives 0 results
is it possible to adjust the search so that all the words have to be found, but can come from different fields?
The search data looks like this:
def search_data
{
title: title,
description: description
}
end
Upvotes: 0
Views: 190