{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1428","labels_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1428/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1428/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1428/events","html_url":"https://github.com/elastic/elasticsearch-net/issues/1428","id":83534520,"number":1428,"title":"MultiMatch \"MostFields\" Type conversion issue","user":{"login":"RWAust","id":5776082,"avatar_url":"https://avatars.githubusercontent.com/u/5776082?v=3","gravatar_id":"","url":"https://api.github.com/users/RWAust","html_url":"https://github.com/RWAust","followers_url":"https://api.github.com/users/RWAust/followers","following_url":"https://api.github.com/users/RWAust/following{/other_user}","gists_url":"https://api.github.com/users/RWAust/gists{/gist_id}","starred_url":"https://api.github.com/users/RWAust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RWAust/subscriptions","organizations_url":"https://api.github.com/users/RWAust/orgs","repos_url":"https://api.github.com/users/RWAust/repos","events_url":"https://api.github.com/users/RWAust/events{/privacy}","received_events_url":"https://api.github.com/users/RWAust/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T14:39:28Z","updated_at":"2015-06-04T13:18:08Z","closed_at":null,"body":"Hi\r\n\r\nIn one of my queries, I have include the following:\r\n\r\n           q.MultiMatch(m2 => m2\r\n                                    .Type(TextQueryType.MostFields)\r\n                                    .Query(autoCompleteSearchTerm)\r\n                                    .OnFields(t => t.Suffix(\"*.en\"))\r\n                                    .Analyzer(\"english\")\r\n                                    )\r\n\r\nOn my development, the query that includes the above code works perfectly and there are has never been an issue with it.\r\n\r\nNow, when I try to deploy my project to the web server, which is a different machine to my development machine, the query that uses the code extract above now fails. Relevant log extracts from the elasticsearch log file report the following:\r\n\r\n         \"All shards failed for phase: [query] org.elasticsearch.search.SearchParseException\"\r\n\r\n           \"multi_match\": {\r\n            \"type\": \"MostFields\",\r\n            \"query\": \"chi\",\r\n            \"analyzer\": \"english\",\r\n            \"fields\": [\r\n              \"*.en\"\r\n            ]\r\n          }\r\n\r\n          Caused by: org.elasticsearch.ElasticsearchParseException: No type found for value: MostFields\r\n\r\n From the Nest enum TextQueryType, it would seem that what is supposed to happen is that the \r\n\r\n         .Type(TextQueryType.MostFields)\r\n\r\nshould get converted to\r\n\r\n         \"most_fields\"\r\n\r\nbefore the query is executed by elasticsearch. However, instead of receiving \"most_fields\", \"MostFields\" is received instead.\r\n\r\nI currently have version 1.5.1 of both elasticsearch, Nest and elasticsearch.Net installed on both the development machine (Windows 7) and the server machine Windows Server 2012.\r\n\r\nI have trawled through the server to ensure that there is no older Nest.dll or Elasticsearch.Net.dll file being called.\r\n\r\nWhat is not clear is why am I am having this \"type\" issue on the server machine and not the development machine where elasticsearch, Nest.dll and Elasticsearch.Net.dll appears to be identical on both machines?\r\n\r\nThanks in advance for your help.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/comments/108895069","html_url":"https://github.com/elastic/elasticsearch-net/issues/1428#issuecomment-108895069","issue_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1428","id":108895069,"user":{"login":"RWAust","id":5776082,"avatar_url":"https://avatars.githubusercontent.com/u/5776082?v=3","gravatar_id":"","url":"https://api.github.com/users/RWAust","html_url":"https://github.com/RWAust","followers_url":"https://api.github.com/users/RWAust/followers","following_url":"https://api.github.com/users/RWAust/following{/other_user}","gists_url":"https://api.github.com/users/RWAust/gists{/gist_id}","starred_url":"https://api.github.com/users/RWAust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RWAust/subscriptions","organizations_url":"https://api.github.com/users/RWAust/orgs","repos_url":"https://api.github.com/users/RWAust/repos","events_url":"https://api.github.com/users/RWAust/events{/privacy}","received_events_url":"https://api.github.com/users/RWAust/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T13:18:07Z","updated_at":"2015-06-04T13:18:07Z","body":"To be sure that problem is not related to the IIS7 server, I have completely uninstalled and then re-installed the web server. Unfortunately, the problem still exists where the elastic instance is incorrectly receiving \"MostFields\" instead of \"most_fields\" in the MultiMatch 'type' field.\r\n\r\nAny help will be greatly appreciated.\r\n"}}