Slackbot
10/25/2023, 11:41 AMJason Bosco
10/25/2023, 5:49 PMAnkit Arora
10/26/2023, 10:19 AMcurl 'http://0.0.0.0:8108/multi_search?use_cache=true&x-typesense-api-key=adminkey-4Uyafrcjob4EBsJsG37fFYQKQDFBLM' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: en-US,en-IN;q=0.9,en;q=0.8' \
-H 'Connection: keep-alive' \
-H 'Content-Type: text/plain' \
-H 'Origin: http://localhost:3010' \
-H 'Referer: http://localhost:3010/' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
--data-raw '{"searches":[{"query_by":"full_name","min_len_2typo":8,"split_join_tokens":"fallback","sort_by":"update_time:asc","per_page":40,"highlight_full_fields":"full_name","collection":"people_index","q":"*","facet_by":"location_city_geo_map,location_geo,org_funding_types_all,org_funding_types_current,org_industries_current,org_industry_groups_current,org_sizes_current","filter_by":"location_geo:=[`(56.33, -65.97, 20 mi)`]","max_facet_values":40,"page":1},{"query_by":"full_name","min_len_2typo":8,"split_join_tokens":"fallback","sort_by":"update_time:asc","per_page":40,"highlight_full_fields":"full_name","collection":"people_index","q":"*","facet_by":"location_geo","max_facet_values":40,"page":1}]}' \
--compressed \
--insecure
Yeah, sure, this is what the curl request looks on my local. Let me know if you need anything else.Jason Bosco
10/26/2023, 4:14 PM"filter_by": "location_geo:=[`(56.33, -65.97, 20 mi)`]"
It should have been:
"filter_by": "location_geo:=(56.33, -65.97, 20 mi)"Jason Bosco
10/26/2023, 4:15 PMJason Bosco
10/26/2023, 4:16 PMAnkit Arora
10/26/2023, 4:17 PMAnkit Arora
10/26/2023, 4:20 PMJason Bosco
10/26/2023, 4:24 PMJason Bosco
10/26/2023, 8:06 PMhelper.setQueryParameter('aroundRadius', '5 km');
helper.setQueryParameter(''aroundLatLng'', "latitude, longitude");
This is documented here: https://github.com/algolia/instantsearch/tree/master/packages/algoliasearch-helper/documentation-src#list-of-parameters-that-can-be-setAnkit Arora
10/27/2023, 12:26 PMJason Bosco
10/27/2023, 1:56 PMJason Bosco
10/27/2023, 1:57 PMAnkit Arora
10/27/2023, 1:59 PMJason Bosco
10/27/2023, 3:28 PMso is it possible to keep changing the filter applied via the configure widgetAh hmm, yeah I don't think the
configure widget persists settingsJason Bosco
10/27/2023, 3:28 PMUseGeoSearch sounds promisingAnkit Arora
10/30/2023, 12:27 PMJason Bosco
10/30/2023, 1:04 PM