Babin
03/16/2023, 8:25 PM<https://xxxxxxxxxxxxx.typesense.net/multi_search?query_by=sku,brand,description>
{
"searches": [
{
"collection": "nic-items",
"q": "-R - ",
"page": 1,
"per_page": 250,
"include_fields": "id,sku,description,categoryName,brand,packSizeDescription"
}
]
}
However I don't get all fields that are mentioned in include_fields
This is what we getJason Bosco
03/16/2023, 8:36 PMBabin
03/16/2023, 8:38 PMJason Bosco
03/16/2023, 8:38 PMBabin
03/16/2023, 8:50 PMif [[ $# -eq 3 && $1 == 'get-single-document' ]]
then
curl "${TYPE_SENSE_HOSTURL}/collections/${2}/documents/${3}" \
-X GET \
-H "X-TYPESENSE-API-KEY: ${TYPE_SENSE_API_MASTER_KEY}"
fi
This one gives me more than one documentsBabin
03/16/2023, 8:50 PMBabin
03/16/2023, 9:03 PMJason Bosco
03/16/2023, 9:19 PMBabin
03/16/2023, 9:19 PMJason Bosco
03/16/2023, 9:50 PMBabin
03/16/2023, 9:50 PMBabin
03/16/2023, 9:50 PMBabin
03/16/2023, 9:57 PMBabin
03/16/2023, 9:58 PMBabin
03/16/2023, 10:00 PMquery_by
The GET search without query_by works .
${TYPE_SENSE_HOSTURL}/collections/${2}/documents/search?q=*&page=1&per_page=250&exclude_fields=images,salesSheet
Jason Bosco
03/16/2023, 10:12 PMq=*
queries, query_by
is not required. Otherwise it is requiredBabin
03/16/2023, 10:12 PM