I'm trying to enrich one index by applying two enrich policies with two different source indices.
Here is my approach:
"enrich":
[
{
"policy_name": "vehicle-database-policy",
"field" : "vehicle.id",
"target_field": "vehicle-db",
"max_matches": "1"
},
{
"policy_name": "axle-database-policy",
"field" : "axle.id",
"target_field": "vehicle-db",
"max_matches": "1"
}
Using just one enrich policy is working but as soon as I try to use the second policy as well i get this error:
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "property isn't a map, but of type [java.util.ArrayList]",
"processor_type" : "enrich"
}
],
"type" : "parse_exception",
"reason" : "property isn't a map, but of type [java.util.ArrayList]",
"processor_type" : "enrich"
},
"status" : 400
}
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.