I want to create a feature in my featureset and its param is an array. I known how to use a single value for feature logging but I don't know how to use an array. I tried something like below but it didn't help. Do you have any solutions for that?
PUT _ltr/_featureset/test
{
"featureset": {
"features": [
{
"name": "matched_author",
"params": [
"authors"
],
"template_language": "mustache",
"template": {
"terms": "{{#toJson}}{{authors}}{{/toJson}}"
}
}
]
},
"validation": {
"params": {
"authors": {
"id": [1, 2]
}
},
"index": "my_index"
}
}