mrysinski_novo
mrysinski_novo

Reputation: 1

Searchkick search by multiple words, get results even if they are all scattered between multiple fields

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

Answers (0)

Related Questions