All of my documents have a structure like the following examples:
{
"id": "99990"
"name": "abc"
"point": [1,2]
},
{
"id": "99991"
"name": "def"
"point": [3,4]
}
I have the following index:
{
name: "mycollection_VALUES_name_point_id",
unique: false,
serialized: true,
source: "mycollection",
values: [
{
field: ["data", "name"]
},
{
field: ["data", "point"]
},
{
field: ["data", "id"]
}
]
}
This index shows two entries for each document, apparently because point is an array of length 2 like this:
["abc",1,"99990"],
["abc",2,"99990"],
["def",3,"99991"],
["def",4,"99991"]
Is there something I can adjust so that the index provides a single result for each document with the point array intact like so?
["abc",[1,2],"99990"],
["def",[3,4],"99991"]
Thanks.