Hi. I've got a puzzling question here. This is the definition for my index:
"mappings": {
"properties": {
"name_copy": {
"type": "text"
},
"name": {
"type": "text",
"copy_to": "name_copy"
}
}
}
I've simplified that definition a little bit to highlight just the fields I'm testing.
If I populate my index and run the following search against it, I get 158 hits:
{
"query": {
"match" : {
"name" : "organic"
}
}
}
The following query returns zero hits:
{
"query": {
"match" : {
"name_copy" : "organic"
}
}
}
Those two queries should be identical, correct? The field name_copy
should just have the text that is in name
in it. So, querying one should be the same as querying the other.
What am I doing wrong? How would you go about troubleshooting this?
Thanks in advance.