Is there a way to Index an Object in this format, for example,
[Name, Phone, Address]
It can be multiple positions aswell, not exactly these three
And put in a Index using the javascript API like this:
this.es.addToIndex({
index: 'name_of_index',
type: 'type_of_index',
body: {
name: form.value.name,
title: form.value.title,
description: form.value.description,
published: new Date().toLocaleString(),
script: this.alternativeFields.value,
"Name":"",
"Phone":"",
"Address":""
}
Basically this Array can be anything, I've tried several things, like using javascript eval, but none of these tries worked, also, didn't find any elastic function that allows me to do that, please help.