smart search filter add a keyword to search results

Farah El Agha asked on November 7, 2017 09:38

I want to filter the smart search results by adding another keyword to the search, is it doable with smart search filter? if so, what will I have to add to the where condition?

Correct Answer

Dragoljub Ilic answered on November 7, 2017 11:56

Hi Farah,

You can use smart search filter for that. You can use this kind of syntax in where condition for specific field:

+animals:"dogs"

where 'animals' is name of the field in kenico page type (must be checked as searchable) and 'Dogs' is value that you need. If you want to search over all fields, you can use something like this:

+_content:"dogs"

This will do search over all fields and return items (pages) that contains 'dogs' keyword, not only in 'animals' field.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.