And here is an example with a price filter which t...
# community-help
l
And here is an example with a price filter which took
1470ms
Copy code
curl '***/search/multi_search?use_cache=true' \
  -H 'x-typesense-api-key: ***' \
  --data-raw '{
   "searches":[
      {
         "collection":"lots",
         "exclude_fields":"footnotes,catalogDesc",
         "filter_by":"(price.GBPLowEstimate:[0..276797] || price.GBPHighEstimate:[0..276797]) && (department.name:=Collector Cars) && (status:=NEW)",
         "facet_by":"brand,country.name,country.code,department.code,department.name,flags.isWithoutReserve,price.GBPHighEstimate,price.GBPLowEstimate,price.estimateHigh,price.estimateLow,status,groups",
         "query_by":"title",
         "sort_by":"price.GBPLowEstimate:desc",
         "page":1,
         "per_page":48,
         "max_facet_values":1000,
         "q":""
      },
      {
         "collection":"lots",
         "exclude_fields":"footnotes,catalogDesc",
         "filter_by":"(price.GBPLowEstimate:[0..276797] || price.GBPHighEstimate:[0..276797]) && (status:=NEW)",
         "facet_by":"department.name",
         "query_by":"title",
         "sort_by":"price.GBPLowEstimate:desc",
         "page":0,
         "per_page":0,
         "max_facet_values":1000,
         "q":""
      },
      {
         "collection":"lots",
         "exclude_fields":"footnotes,catalogDesc",
         "filter_by":"(price.GBPLowEstimate:[0..276797] || price.GBPHighEstimate:[0..276797]) && (department.name:=Collector Cars)",
         "facet_by":"status",
         "query_by":"title",
         "sort_by":"price.GBPLowEstimate:desc",
         "page":0,
         "per_page":0,
         "max_facet_values":1000,
         "q":""
      }
   ]
}'