Hi everyone, facing an issue with pinned hits. Whe...
# community-help
v
Hi everyone, facing an issue with pinned hits. When both pinned hits and q are set, we are seeing that only pinned hit documents are being returned as part of search results. When pinned hits are removed, we are getting a far larger set of search results. I can share the exact query in DM if required: the query with one pinned hit:
Copy code
curl --location '<base_url>/collections/product_variants/documents/search?q=dasa&query_by=searchText0%2CsearchText1%2CsearchText2&per_page=20&page=1&include_fields=productID%2CproductSlug%2Cid%2Csize&pinned_hits=gid-shopify-productvariant-45955915219190%3A1'
returns
Copy code
"found": 1,
the query with no pinned hits:
Copy code
curl --location '<base_url>/collections/vaaree_product_variants/documents/search?q=dasa&query_by=searchText0%2CsearchText1%2CsearchText2&per_page=20&page=1&include_fields=productID%2CproductSlug%2Cid%2Csize
returns
Copy code
"found": 790,
We are on typesense
v27
. Please let me know if I am doing something wrong here. TIA.