You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem including expected versus actual behavior:
The ToCamelCase extension as backup of the DefaultFieldNameInferrer doesn't work like the CamelCase namigs of System.Text.Json or Newtonsoft.Json. For example a property named DBName ends as dBName instead of dbName.
This behavior ends in exceptions if you use strict mapping.
Steps to reproduce:
varsettings=***var client =newElasticsearchClient(settings);string indexName ="test";var createIndexResponse =awaitclient.Indices.CreateAsync<MyDocument>(indexName, d =>d.Mappings(m =>m.Dynamic(DynamicMapping.Strict).Properties(p =>p.Keyword(d =>d.DBName))));if(!createIndexResponse.IsSuccess()){if(createIndexResponse.TryGetOriginalException(outExceptionex))
throw ex;}
var indexResponse=awaitclient.IndexAsync(document:newMyDocument(){DBName="database"},index:indexName,id:null);if(!indexResponse.IsSuccess()){if(indexResponse.TryGetOriginalException(outExceptionex))throwex;// throws strict_dynamic_mapping_exception }
Expected behavior
The property name DBName should ends as dbName in property mapping.
The text was updated successfully, but these errors were encountered:
Elastic.Clients.Elasticsearch version: 8.14.6
Elasticsearch version: 8.14.3
.NET runtime version: all
Operating system version: all
Description of the problem including expected versus actual behavior:
The
ToCamelCase
extension as backup of theDefaultFieldNameInferrer
doesn't work like the CamelCase namigs ofSystem.Text.Json
orNewtonsoft.Json
. For example a property namedDBName
ends asdBName
instead ofdbName
.This behavior ends in exceptions if you use strict mapping.
Steps to reproduce:
Expected behavior
The property name
DBName
should ends asdbName
in property mapping.The text was updated successfully, but these errors were encountered: