Skip to content

[Feature Request] Support searching from doc_value using termQueryCaseInsensitive/termQuery in flat_object/keyword fieldΒ #16973

@kkewwei

Description

@kkewwei

Is your feature request related to a problem? Please describe

Now we can't search value using termQueryCaseInsensitive/termQuery in keyword field if the index=false, but we can search value from the numeric field if the index=false.

PUT t1
{
    "mappings": {
        "properties":{
            "keyword1":{
                "type": "keyword",
                "index":"false"
            },
             "int1":{
                "type": "integer",
                "index":"false"
            }
        }
    }
}

As example, field int1 can be searched using termQueryCaseInsensitive/termQuery, but keyword1 can't.

Describe the solution you'd like

We can search from doc_value using termQueryCaseInsensitive/termQuery in flat_object/keyword field, even if index=false

Related component

Search

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    SearchSearch query, autocomplete ...etcenhancementEnhancement or improvement to existing feature or requestuntriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions