this script is supposed to get the data from the filed name and assign it to the name name_suggest , then get the category filed and assign it to the context field category of the name_suggest same for status , keeping in mind both these data types are long not string , but i seem to get this 'syntax' error
alright i managed to fix the first issue which was in the syntax but now i'm getting this parsing error ( also i forgot to mention this but this script is being executed in the context a reindex api )
"type": "document_parsing_exception",
"reason": "[1:70] failed to parse: contexts must be a string, number or boolean or a list of string, number or boolean, but was [START_OBJECT]"
i also tried to change the assigned values to a fixed value like 'test' for both context values but still i get the same thing which tells me that it not really a problem in the variables status and category...
"type": "document_parsing_exception",
"reason": "[1:218] failed to parse: contexts must be an object or an array , but was [START_ARRAY]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "contexts must be an object or an array , but was [START_ARRAY]"
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.