{"action":"created","issue":{"url":"https://api.github.com/repos/hoonzis/fluentnest/issues/17","repository_url":"https://api.github.com/repos/hoonzis/fluentnest","labels_url":"https://api.github.com/repos/hoonzis/fluentnest/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/hoonzis/fluentnest/issues/17/comments","events_url":"https://api.github.com/repos/hoonzis/fluentnest/issues/17/events","html_url":"https://github.com/hoonzis/fluentnest/issues/17","id":174882026,"number":17,"title":"properties names changed","user":{"login":"marchanddesable","id":5355238,"avatar_url":"https://avatars.githubusercontent.com/u/5355238?v=3","gravatar_id":"","url":"https://api.github.com/users/marchanddesable","html_url":"https://github.com/marchanddesable","followers_url":"https://api.github.com/users/marchanddesable/followers","following_url":"https://api.github.com/users/marchanddesable/following{/other_user}","gists_url":"https://api.github.com/users/marchanddesable/gists{/gist_id}","starred_url":"https://api.github.com/users/marchanddesable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marchanddesable/subscriptions","organizations_url":"https://api.github.com/users/marchanddesable/orgs","repos_url":"https://api.github.com/users/marchanddesable/repos","events_url":"https://api.github.com/users/marchanddesable/events{/privacy}","received_events_url":"https://api.github.com/users/marchanddesable/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-03T06:18:55Z","updated_at":"2016-09-03T08:03:32Z","closed_at":"2016-09-03T07:28:55Z","body":"Hi,\r\n\r\nI have some properties in upper cases, but when i do the request, the first letter of each properties is changed to lowercase... How can I avoid that?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/hoonzis/fluentnest/issues/comments/244533521","html_url":"https://github.com/hoonzis/fluentnest/issues/17#issuecomment-244533521","issue_url":"https://api.github.com/repos/hoonzis/fluentnest/issues/17","id":244533521,"user":{"login":"marchanddesable","id":5355238,"avatar_url":"https://avatars.githubusercontent.com/u/5355238?v=3","gravatar_id":"","url":"https://api.github.com/users/marchanddesable","html_url":"https://github.com/marchanddesable","followers_url":"https://api.github.com/users/marchanddesable/followers","following_url":"https://api.github.com/users/marchanddesable/following{/other_user}","gists_url":"https://api.github.com/users/marchanddesable/gists{/gist_id}","starred_url":"https://api.github.com/users/marchanddesable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marchanddesable/subscriptions","organizations_url":"https://api.github.com/users/marchanddesable/orgs","repos_url":"https://api.github.com/users/marchanddesable/repos","events_url":"https://api.github.com/users/marchanddesable/events{/privacy}","received_events_url":"https://api.github.com/users/marchanddesable/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T08:03:32Z","updated_at":"2016-09-03T08:03:32Z","body":"Hi,\r\nI use Nest 2.0\r\n\r\nI dont want to use the raw string option, I need lambda expressions.\r\n\r\nI have this problem only when I use FluentNest, When I don't use it I don't have the camelcase problem.\r\n\r\nMy connectionString has the following properties:\r\n\r\nconnectionSettings.DefaultFieldNameInferrer(p => p);\r\nconnectionSettings.DefaultTypeNameInferrer(p => p.Name);\r\n\r\nI think the options will be ignored..\r\n\r\nIn the index, the properties are in uppercase, like \"MY_PROPERTY: blabla\"\r\nin the request it is transformed to \"mY_PROPERTY\" ...\r\nEven if I set the option \"DefaultFieldNameInferrer\"\r\n\r\nI try to create a dynamic request,\r\nThe code is like this:\r\n\r\n`\r\nQueryContainer filter = null;\r\n\r\nfilter = Filters.CreateFilter<objModel>(f => f.MY_PROPERTY == \"blabla\");\r\n\r\nif (conditionA)\r\n   filter = filter.AndFilteredOn<objModel>(f => f.MY_PROPERTY2 == \"blablabla\");\r\n\r\nif (conditionB)\r\n   filter = filter.AndFilteredOn<objModel>(f => f.MY_PROPERTY3 == \"bla\");\r\n\r\n\r\n                   var node = new Uri(BaseService.ELASTICSEARCH_ENDPOINT);\r\n\r\n                    var connectionPool = new SniffingConnectionPool(new[] { node });\r\n                    var connectionSettings = new ConnectionSettings(connectionPool)\r\n                               .DefaultFieldNameInferrer(p => p)\r\n                               .DefaultTypeNameInferrer(p => p.Name);\r\n   \r\n\r\n                    ElasticClient elasticClient = new ElasticClient(connectionSettings);\r\n                    \r\n                    IEnumerable<objModel> resp = null;\r\n\r\n                    resp = elasticClient.Search<objModel>\r\n                        (s => s.Index(BaseService.ES_INDEX_NAME)\r\n                            .Query(\r\n                                q => q.ConstantScore\r\n                                    (c => c.Filter(f => f.Bool(b => b.Must(m => filter))))\r\n                                  )\r\n                            .From(elemsToSkip)\r\n                            .Take(maxResults)\r\n                       )\r\n                       .Hits\r\n                       .Select(h => h.Source);\r\n\r\n                   List<objModel> result = resp?.ToList();\r\n\r\n`"}}
{"actor":{"display_login":"marchanddesable"}}