#community-help

Using /multi_search Instead of Encoded Search Query

TLDR akmal shared a decoded search query, and Kishore Nallan suggested using the /multi_search with POST method to avoid encoding issues.

Powered by Struct AI
3
4mo
Solved
Join the chat
Jun 09, 2023 (4 months ago)
akmal
Photo of md5-4a916dd86dae3762f76ace96b2647db9
akmal
06:16 AM
this is the decoded version, /collections/staff/documents/search?q=john&query_by=fullName,about&filter_by=(city:=gotham&&country:=US)&include_fields=eri,fullName,about,state&highlight_fields=fullName,about&page=1
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:18 AM
Best to use the /multi_search where you can just POST the search params so no need to encode anything.
akmal
Photo of md5-4a916dd86dae3762f76ace96b2647db9
akmal
06:25 AM
That's great, learn new things today. Thanks.