`curl "<https://TYPESENSE_HOST/collections/restaur...
# community-help
s
curl "<https://TYPESENSE_HOST/collections/restaurants/documents/search>" \
-X POST \ -H "X-TYPESENSE-API-KEY: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "q": "*", "query_by": "name,description", "filter_by": "restaurantAvailable:=true", "sort_by": "location(12.34, 56.78):asc, _text_match:desc", "per_page": 20 }' and "https://TYPESENSE_HOST/collections/menuitems/documents/search" \ -X POST \ -H "X-TYPESENSE-API-KEY: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "q": "*", "query_by": "name,description", "filter_by": "restaurantAvailable:=true", "sort_by": "location(12.34, 56.78):asc, _text_match:desc", "per_page": 20 }' those are the alternative curl for the methods i call in each case