Pankaj Adhyapak
10/26/2022, 3:47 PMemail
id
description
i want to rank the result where users with having email are ranked first with id desc
tried doing sort_by
email(missing_values:last):desc,
_text_match:desc,
id:desc
but looks like missing_values is last one to sort so it always like email desc any other ways this can be done ? thanks in advanceJason Bosco
10/26/2022, 4:42 PM"sort_by": "_eval(has_email:true):asc,id:desc"
where has_email
is a new boolean field you’ll have to create at indexing time to each recordPankaj Adhyapak
10/27/2022, 6:07 PM