ruby on rails - Searchkick / Elasticsearch exact match -
i using elasticsearch through searchkick
i have field called "detail" thats analyzed using "standard" analyzer ... in google "several words"
search exact match .. can same in searchkick? not looking fields: [{detail: exact}, name]
because match whole article ... term whole not individual words.
you need use match_phrase: true
. can see in elastic search documentation.
but feature not merged yet in searchkick. fyi: github pull request think can use monkey-patch add feature project.
Comments
Post a Comment