{"action":"created","issue":{"url":"https://api.github.com/repos/imbo/imbo-metadata-search/issues/9","labels_url":"https://api.github.com/repos/imbo/imbo-metadata-search/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/imbo/imbo-metadata-search/issues/9/comments","events_url":"https://api.github.com/repos/imbo/imbo-metadata-search/issues/9/events","html_url":"https://github.com/imbo/imbo-metadata-search/issues/9","id":59955041,"number":9,"title":"Tokenization of metadata","user":{"login":"kbrabrand","id":2884292,"avatar_url":"https://avatars.githubusercontent.com/u/2884292?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrabrand","html_url":"https://github.com/kbrabrand","followers_url":"https://api.github.com/users/kbrabrand/followers","following_url":"https://api.github.com/users/kbrabrand/following{/other_user}","gists_url":"https://api.github.com/users/kbrabrand/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrabrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrabrand/subscriptions","organizations_url":"https://api.github.com/users/kbrabrand/orgs","repos_url":"https://api.github.com/users/kbrabrand/repos","events_url":"https://api.github.com/users/kbrabrand/events{/privacy}","received_events_url":"https://api.github.com/users/kbrabrand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T14:00:35Z","updated_at":"2015-03-06T09:20:02Z","closed_at":null,"body":"By default strings are tokenized in elasticsearch, so right now a search for\r\n\r\n```js\r\n{ \"animal\":\"red panda\" }\r\n```\r\n\r\nwould result in hits for all the following; `red fox`, `red panda` and `giant panda`.\r\n\r\nWhat do you think is the best way to ensure this works in a predictable way? Is just telling people to configure their indices correctly enough?"},"comment":{"url":"https://api.github.com/repos/imbo/imbo-metadata-search/issues/comments/77529111","html_url":"https://github.com/imbo/imbo-metadata-search/issues/9#issuecomment-77529111","issue_url":"https://api.github.com/repos/imbo/imbo-metadata-search/issues/9","id":77529111,"user":{"login":"fangel","id":19275,"avatar_url":"https://avatars.githubusercontent.com/u/19275?v=3","gravatar_id":"","url":"https://api.github.com/users/fangel","html_url":"https://github.com/fangel","followers_url":"https://api.github.com/users/fangel/followers","following_url":"https://api.github.com/users/fangel/following{/other_user}","gists_url":"https://api.github.com/users/fangel/gists{/gist_id}","starred_url":"https://api.github.com/users/fangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fangel/subscriptions","organizations_url":"https://api.github.com/users/fangel/orgs","repos_url":"https://api.github.com/users/fangel/repos","events_url":"https://api.github.com/users/fangel/events{/privacy}","received_events_url":"https://api.github.com/users/fangel/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T09:20:02Z","updated_at":"2015-03-06T09:20:02Z","body":"I think this partially depends on the order of the returned images.\r\n\r\nIn my mind, it makes sense that a search for \"red panda\" then return the result-set \"red panda, giant panda, red fox\" because it's listed in order of how well they match the input query.\r\n\r\nThe problem is if you have an explicit sort on something that's not the search-score, then the results can seem to not match very well. But we have been using something with this behaviour to search for articles for 6 months and have gotten no bad responses from the journalists."}}