Skip to content

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

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

Closed
kkewwei opened this issue Jan 7, 2025 · 0 comments · Fixed by #16974
Labels
enhancement Enhancement or improvement to existing feature or request Search Search query, autocomplete ...etc untriaged

Comments

@kkewwei
Copy link
Contributor

kkewwei commented Jan 7, 2025

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

@kkewwei kkewwei added enhancement Enhancement or improvement to existing feature or request untriaged labels Jan 7, 2025
@github-actions github-actions bot added the Search Search query, autocomplete ...etc label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search Search query, autocomplete ...etc untriaged
Projects
None yet
1 participant