Hi, I'm trying to write a field with dot notation in the body of the Search API in Node.js Client but it doesn't work.
The mapping is :
"my_field": {
"type":"text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
I tried :
query: {
bool: {
must: {
term: my_field.keyword: my_value
}
}
}
query: {
bool: {
must: {
term: "my_field.keyword": my_value
}
}
}
query: {
bool: {
must: {
term: {
my_field: {
keyword: my_value
}
}
}
}
}
query: {
bool: {
must: {
term: {
my_field: {
fields: {
keyword: my_value
}
}
}
}
}
}
It's throws a parsing error from Elasticsearch.
Thank you in advance for your help