-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DefaultMappingFor IndexName is not respected in searches #8184
Comments
@Genide The behavior of 8.13.12 is the intended behavior. 8.13.11 had a bug that caused the index to be inferred. The versions prior to 8.13.x as well do not infer the index here and there is a reason for that. So, why don't we want to infer the index in this case? Inferring the index for mandatoy Inferring the index for optional One of our main principles is to prefer explicit over implicit. If we would infer an index here, this would cause unexpected behavior, if you have multiple entities of e.g. I'm going to close this issue here, but feel free to add further comments or open new issues, if you have other concerns. |
Then is the use of |
@Genide No, it's still working - just not for optional |
Elastic.Clients.Elasticsearch version: 8.13.12
Elasticsearch version: 8.5.3
.NET runtime version: DOTNET 8
Operating system version: Windows 10 64 bit
Description of the problem including expected versus actual behavior:
Setting a default index name for a given type no longer works. This behavior is what I expected in Elastic.Clients.Elasticsearch version 8.13.11.
Steps to reproduce:
ElasticsearchClient
with client settings that include a default mapping for index names.ElasticsearchClient
to search for an object with the mapped index name.result.DebugInformation
. Notice how the URL path does not include the index name.Expected behavior
I expected the following message in
result.DebugInformation
.Provide
ConnectionSettings
(if relevant): NAProvide
DebugInformation
(if relevant):The text was updated successfully, but these errors were encountered: