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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -