Sai Prasanth
07/30/2021, 5:45 AMResult Pinning
?Kishore Nallan
07/30/2021, 5:47 AMKishore Nallan
07/30/2021, 5:47 AMpinned_hits
argument description here: https://typesense.org/docs/0.21.0/api/documents.html#argumentsSai Prasanth
07/30/2021, 7:15 AMKishore Nallan
07/30/2021, 7:15 AMSai Prasanth
07/30/2021, 7:18 AMKishore Nallan
07/30/2021, 7:19 AMKishore Nallan
07/30/2021, 7:19 AMSai Prasanth
07/30/2021, 7:22 AM{"id":100,"type":"p1","name":"xyz"},{"id":102,"type:"p2":"name":"abc"},
{"id":103,"type:"p1":"name":"abcd"}
{"id":104,"type:"p2":"name":"abcde"}
{"id":105,"type:"p2":"name":"abcdef"}
i want to pin p2 results first then p1
Kishore Nallan
07/30/2021, 7:23 AM102
as the identifier for p2. You can't use another field, like type
.Sai Prasanth
07/30/2021, 7:24 AMKishore Nallan
07/30/2021, 7:25 AMp2
items -- is that the intent?Sai Prasanth
07/30/2021, 7:26 AMname
i want to pin p2 results on top followed by p1Kishore Nallan
07/30/2021, 7:27 AMsort_by
if you identify p2 by numerical values (it will become some kind of weighting). There is no way to promote groups of objects based on an attribute using pinning or overrides.Sai Prasanth
07/30/2021, 7:29 AM