Closed
Description
Elastic.Clients.Elasticsearch version: 9.0.1
Elasticsearch version: 9.0.1
.NET runtime version: 9.0.4
Operating system version: Windows Server 2019 Standard 1809
Description of the problem including expected versus actual behavior:
Type inference for IndexAsync
now calls ToString()
on the type instead of using the value defined via DefaultMappingFor
.
ElasticSearch returns an error:
Invalid index name [My.Own.Namespace.TypeName], must be lowercase
Steps to reproduce:
- Create a class
MyClass
- While setting the connection up, specify that class:
connection.DefaultMappingFor(typeof(MyClass), s => s.IndexName("myindexname")
- Call
IndexAsync
Expected behavior
A document should be indexed.
Provide ConnectionSettings
(if relevant):
Provide DebugInformation
(if relevant):