Hello,
Is it possible to use a pseudo field in a facet?
Now I am getting an undefined field error with this JSON request:
{
"limit": 0,
"facet": {
"cellMeasures": {
"facet": {
"test1": "unique(calculatedMeasure11)"
},
"query": "*:*",
"type": "query"
}
},
"query": {
"bool": {
"must": ["(id:SalesInvoice_* AND -_nest_path_:*)"]
}
},
"offset": 0,
"fields": ["amount_d", "calculatedMeasure11:if(eq(amount_d, 440.0),
'|Orange|style=#F59A0D|', '|Green|style=#25D075|')",
"totalAmount:sum(amount_d)"]
}
The error message is "undefined field: \"calculatedMeasure11\""
Thank you