{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1234","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1234/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1234/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1234/events","html_url":"https://github.com/elasticsearch/elasticsearch-net/issues/1234","id":56391523,"number":1234,"title":"Boost field positive does not get populated","user":{"login":"mathiasnohall","id":2675171,"avatar_url":"https://avatars.githubusercontent.com/u/2675171?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasnohall","html_url":"https://github.com/mathiasnohall","followers_url":"https://api.github.com/users/mathiasnohall/followers","following_url":"https://api.github.com/users/mathiasnohall/following{/other_user}","gists_url":"https://api.github.com/users/mathiasnohall/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasnohall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasnohall/subscriptions","organizations_url":"https://api.github.com/users/mathiasnohall/orgs","repos_url":"https://api.github.com/users/mathiasnohall/repos","events_url":"https://api.github.com/users/mathiasnohall/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasnohall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-03T15:24:01Z","updated_at":"2015-02-05T23:06:10Z","closed_at":null,"body":"Im trying to do a boosting query that reduces the score of documents where the field with name \"type\" and with the value \"Press\".\r\n\r\nHowever NEST does not generate any values in the positive field in the generated json object:\r\n\r\n  \"query\": {\r\n    \"boosting\": {\r\n      \"positive\": {},\r\n      \"negative\": {\r\n        \"term\": {\r\n          \"type\": {\r\n            \"value\": \"Press\"\r\n          }\r\n        }\r\n      },\r\n      \"negative_boost\": 0.2\r\n    }\r\n  }\r\n\r\n\r\n\r\nCode Bellow:\r\n\r\n\r\n            var result = _elasticClient.Search<SearchablePage>(new SearchDescriptor<SearchablePage>()\r\n                .Query(q => q\r\n                    .Boosting(b => b\r\n                        .NegativeBoost(0.2)\r\n                        .Positive(p => p\r\n                            .Filtered(fi => fi                        \r\n                                .Filter(fq => fq\r\n                                    .Term(t => t.Type, aggregation)\r\n                                )\r\n                                .Query(qq => qq\r\n                                    .QueryString(qs => qs\r\n                                        .Query(query)\r\n                                        .OnFields(f => f.Name, f => f.Presentation, f => f.MainBody, f => f.SearchableBlocks.First().MainBody)\r\n                                    )\r\n                                )  \r\n                            )\r\n                        )\r\n                        .Negative(n => n\r\n                            .Term(f => f.OnField(\"type\").Value(\"Press\"))\r\n                        )\r\n                    )\r\n                )\r\n);\r\n"},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/comments/73149506","html_url":"https://github.com/elasticsearch/elasticsearch-net/issues/1234#issuecomment-73149506","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1234","id":73149506,"user":{"login":"gmarz","id":1594777,"avatar_url":"https://avatars.githubusercontent.com/u/1594777?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarz","html_url":"https://github.com/gmarz","followers_url":"https://api.github.com/users/gmarz/followers","following_url":"https://api.github.com/users/gmarz/following{/other_user}","gists_url":"https://api.github.com/users/gmarz/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarz/subscriptions","organizations_url":"https://api.github.com/users/gmarz/orgs","repos_url":"https://api.github.com/users/gmarz/repos","events_url":"https://api.github.com/users/gmarz/events{/privacy}","received_events_url":"https://api.github.com/users/gmarz/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T23:06:10Z","updated_at":"2015-02-05T23:06:10Z","body":"Hm, can't quite reproduce this.  What version of NEST are you on?"}}