{"action":"created","issue":{"url":"https://api.github.com/repos/ankane/searchkick/issues/211","labels_url":"https://api.github.com/repos/ankane/searchkick/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/ankane/searchkick/issues/211/comments","events_url":"https://api.github.com/repos/ankane/searchkick/issues/211/events","html_url":"https://github.com/ankane/searchkick/issues/211","id":33671060,"number":211,"title":"search in two combined fields","user":{"login":"cusaro","id":6725904,"avatar_url":"https://avatars.githubusercontent.com/u/6725904?v=3","gravatar_id":"","url":"https://api.github.com/users/cusaro","html_url":"https://github.com/cusaro","followers_url":"https://api.github.com/users/cusaro/followers","following_url":"https://api.github.com/users/cusaro/following{/other_user}","gists_url":"https://api.github.com/users/cusaro/gists{/gist_id}","starred_url":"https://api.github.com/users/cusaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cusaro/subscriptions","organizations_url":"https://api.github.com/users/cusaro/orgs","repos_url":"https://api.github.com/users/cusaro/repos","events_url":"https://api.github.com/users/cusaro/events{/privacy}","received_events_url":"https://api.github.com/users/cusaro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-05-16T12:37:24Z","updated_at":"2015-12-17T12:06:52Z","closed_at":null,"body":"Hello,\r\n\r\nI have the fields firstname and lastname. Now i want to search over this two fields for the fullname.\r\n\r\ni tryed:\r\n```ruby\r\nPerson.search(query:{multi_match:{query:\"John Doe\", fields:[ \"firstname\", \"lastname\" ] }})\r\n```\r\n\r\nbut i does not work. What is the right approach here?\r\n"},"comment":{"url":"https://api.github.com/repos/ankane/searchkick/issues/comments/165436203","html_url":"https://github.com/ankane/searchkick/issues/211#issuecomment-165436203","issue_url":"https://api.github.com/repos/ankane/searchkick/issues/211","id":165436203,"user":{"login":"williamweckl","id":8031405,"avatar_url":"https://avatars.githubusercontent.com/u/8031405?v=3","gravatar_id":"","url":"https://api.github.com/users/williamweckl","html_url":"https://github.com/williamweckl","followers_url":"https://api.github.com/users/williamweckl/followers","following_url":"https://api.github.com/users/williamweckl/following{/other_user}","gists_url":"https://api.github.com/users/williamweckl/gists{/gist_id}","starred_url":"https://api.github.com/users/williamweckl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamweckl/subscriptions","organizations_url":"https://api.github.com/users/williamweckl/orgs","repos_url":"https://api.github.com/users/williamweckl/repos","events_url":"https://api.github.com/users/williamweckl/events{/privacy}","received_events_url":"https://api.github.com/users/williamweckl/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T12:06:52Z","updated_at":"2015-12-17T12:06:52Z","body":"[Here][1] is an example how you could customize the query to do it. Hope it helps.\r\n\r\n[1]:http://stackoverflow.com/a/34266548/2767026"}}