Differences between with .raw and without .raw

hi

does anyone explain differences between with .raw and without .raw?
eg:

{
"query": {
"bool": {
"must": [
{
"term": {
"project_type.raw": "TEST"
}
}
]
}
}
}

{
"query": {
"bool": {
"must": [
{
"term": {
"project_type": "TEST"
}
}
]
}
}
}

Most likely this is multi-fields where project_type is a textField used for full text search, and project_type.raw is a keywordField used for aggregations, scripts, sorting or something along those lines.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.