Phillip Young
07/22/2025, 10:23 PMfilter_by category:=shoes
doc1:
{
category: "shoes",
other: ...
}
doc2:
{
other: ...
}
doc3:
{
category: "boots",
other: ...
}
Kishore Nallan
07/23/2025, 5:02 AMNIL
and then use optional filtering to prioritize field values that are not NIL.
{
"sort_by": "_eval(other!:=NIL):desc"
}
This will prioritize fields without NIL value ahead but won't entirely drop NIL fields.Fanis Tharropoulos
07/23/2025, 8:03 AMPhillip Young
07/23/2025, 6:00 PMPhillip Young
07/23/2025, 6:08 PMfilter_by category:=shoes || category:=placeholder
doc1:
{
category: "shoes",
other: ...
}
doc2:
{
category: "placeholder"
other: ...
}
doc3:
{
category: "boots",
other: ...
}
Phillip Young
07/23/2025, 6:08 PMKishore Nallan
07/24/2025, 3:58 PM