Skip to content

Option for excluding fields in "all_fields" query mode #25946

@mr-mos

Description

@mr-mos

In ES 6.0 the indexed "_all" field will be removed and Elastic is promoting the "all_fields" query (default_field=*) that does the same (at query- and not indexed time).

There should be a feature for restricting fields in the all_fields search.
A multi_match or other queries would expect, that clients know which fields are available and should be searched by default. In many cases this is a configuration on the index and shouldn't be known by the client.

It would be nice to have a configuration option similar to the " include_in_all: false" used in the deprecated indexd based _all-field.

This topic was discussed with @dakrone in the the issue #25105 and in the thread https://discuss.elastic.co/t/option-for-excluding-fields-in-all-fields-mode-query-for-es-6-0/93218

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search/SearchSearch-related issues that do not fall into other categories>feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions