{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/9764","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/9764/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/9764/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/9764/events","html_url":"https://github.com/elastic/elasticsearch/issues/9764","id":58220736,"number":9764,"title":"query_string is not using default analyzer inside of function_score","user":{"login":"vovikdrg","id":462554,"avatar_url":"https://avatars.githubusercontent.com/u/462554?v=3","gravatar_id":"","url":"https://api.github.com/users/vovikdrg","html_url":"https://github.com/vovikdrg","followers_url":"https://api.github.com/users/vovikdrg/followers","following_url":"https://api.github.com/users/vovikdrg/following{/other_user}","gists_url":"https://api.github.com/users/vovikdrg/gists{/gist_id}","starred_url":"https://api.github.com/users/vovikdrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovikdrg/subscriptions","organizations_url":"https://api.github.com/users/vovikdrg/orgs","repos_url":"https://api.github.com/users/vovikdrg/repos","events_url":"https://api.github.com/users/vovikdrg/events{/privacy}","received_events_url":"https://api.github.com/users/vovikdrg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/feedback_needed","name":"feedback_needed","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-19T15:13:56Z","updated_at":"2015-04-26T19:36:07Z","closed_at":"2015-04-26T19:36:07Z","body":"I have query \r\n```javascript\r\n{\r\n  \"from\": 0,\r\n  \"size\": 10,\r\n  \"fields\": [\r\n    \"Url\",\r\n    \"Id\",\r\n    \"Title\",\r\n    \"Description\",\r\n    \"Date\",\r\n    \"Breadcrumb\",\r\n    \"FileBlob.title\",\r\n    \"FileBlob.content_type\"\r\n  ],\r\n  \"query\": {\r\n    \"function_score\": {\r\n      \"query\": {\r\n        \"query_string\": {\r\n          \"query\": \"tip en ven\",\r\n          \"fields\": [\r\n            \"Id_analyzed^1.5\",\r\n            \"Title_analyzed^1.5\",\r\n            \"Description_analyzed^1\",\r\n            \"Breadcrumb_analyzed^1\",\r\n            \"FileBlob^1\",\r\n            \"netmesterrankingterms\"\r\n          ],\r\n          \"default_operator\": \"and\"\r\n        }\r\n      },\r\n      \"script_score\": {\r\n        \"script\": \"double boost = 1;  return boost; \",\r\n        \"params\": {\r\n          \"searchTerm\": \"tip en ven\"\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nAnd i have defined default_search and index analyzer which uses stop words. \r\nIn query which i use \"tip en ven\",  **en** is danish stop word, and will be removed on index time as my default_index analyzer uses stop words. So when i search i have default_operator and so it expect all words to be found in document but it will not be. \r\nQuestion is why query_string is not using default_search by default? because when i set directly analyzer to it it works as expected"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/96423620","html_url":"https://github.com/elastic/elasticsearch/issues/9764#issuecomment-96423620","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/9764","id":96423620,"user":{"login":"clintongormley","id":56599,"avatar_url":"https://avatars.githubusercontent.com/u/56599?v=3","gravatar_id":"","url":"https://api.github.com/users/clintongormley","html_url":"https://github.com/clintongormley","followers_url":"https://api.github.com/users/clintongormley/followers","following_url":"https://api.github.com/users/clintongormley/following{/other_user}","gists_url":"https://api.github.com/users/clintongormley/gists{/gist_id}","starred_url":"https://api.github.com/users/clintongormley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintongormley/subscriptions","organizations_url":"https://api.github.com/users/clintongormley/orgs","repos_url":"https://api.github.com/users/clintongormley/repos","events_url":"https://api.github.com/users/clintongormley/events{/privacy}","received_events_url":"https://api.github.com/users/clintongormley/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T19:36:07Z","updated_at":"2015-04-26T19:36:07Z","body":"No further info. Closing"}}