Slackbot
09/26/2023, 2:19 PMJason Bosco
09/26/2023, 3:29 PMAadarsh
09/27/2023, 7:54 AMcurl 'http://localhost:8108/multi_search' \
-X POST \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \
-d '{
"searches": [
{
"collection": "collection_1",
"q": pizza,
"facet_by": "refer_ids",
"sort_by": "_text_match:desc",
},
{
"collection": "collection_2",
"q": pizza,
"facet_by": "refer_ids",
"sort_by": "_text_match:desc",
},
{
"collection": "collection_3",
"q": pizza,
"facet_by": "refer_ids",
"sort_by": "_text_match:desc",
},
{
"collection": "collection_4",
"q": pizza,
"facet_by": "refer_ids",
"sort_by": "_text_match:desc",
},
{
"collection": "collection_5",
"q": pizza,
"facet_by": "refer_ids",
"sort_by": "_text_match:desc",
}
]
}'
I'm unable to post the full response here in slack as it's too long...Aadarsh
09/27/2023, 10:19 AMAadarsh
09/27/2023, 11:38 AMJason Bosco
09/27/2023, 5:34 PMprioritize_token_position: true as a search paramter. Then something like "Pizza hut" will be ranked higher than "House of Pizza" as an exampleJason Bosco
09/27/2023, 5:35 PMAadarsh
09/28/2023, 4:47 AMKishore Nallan
09/28/2023, 6:25 AMAadarsh
09/28/2023, 6:39 AM