This message was deleted.
# community-help
s
This message was deleted.
j
Could you share all the search params you’re using?
e
Copy code
curl 'https://xxxx-1.a1.typesense.net/multi_search?x-typesense-api-key=xxxx' \
  -H 'authority: xxxx-1.a1.typesense.net' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'cache-control: no-cache' \
  -H 'content-type: text/plain' \
  -H 'dnt: 1' \
  -H 'origin: xxxx \
  -H 'pragma: no-cache' \
  -H 'referer:xxx/' \
  -H 'sec-ch-ua: "Chromium";v="115", "Not/A)Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36' \
  --data-raw '{"searches":[{"collection":"tkag_en","q":"*","query_by":"data.title,content","drop_tokens_threshold":0,"filter_by":"data.jobField:=[`Engineering & Science`]","sort_by":"_text_match:desc,data.postingDate_timestamp:desc","page":1,"per_page":50,"facet_by":"data.businessUnit,data.category,data.company,data.contract,data.employmentType,data.entryLevel,data.jobField,data.language,data.remote,data.locations.cityState,data.locations.state,data.locations.country","max_facet_values":500,"include_fields":"data,_geoloc"},{"collection":"tkag_en","q":"*","query_by":"data.title,content","drop_tokens_threshold":0,"filter_by":"","sort_by":"_text_match:desc,data.postingDate_timestamp:desc","page":1,"per_page":0,"facet_by":"data.jobField","max_facet_values":500,"include_fields":""}]}' \
  --compressed
j
A couple of things: 1. The geo search demo is running a non-burst CPU type, whereas your cluster has burst CPU type where performance can be a little unpredictable. 2.
"max_facet_values":500
is what’s causing most of the slow-downs. If you’re able to remove that and leave it as the default, that will speed things up 3. Your average record size seems pretty high as well (at least a few KB), whereas the geosearch demo dataset record size is probably under 0.5kb
e
thank you for your prompt reply, shall I disable bursting?
yeah I can probably change which fields to include
j
You’d have to upgrade to a min of 4GB RAM to switch to a non-burst CPU type - worth experimenting
e
gotcha
do we need this
max_facet_values
?
im trying to find out what it does
j
It defaults to 10 facet values if not specified
e
hmm i need to wrap my head around it as i didn’t do this
if i have jobs in 130 cities, only 10 city values would come?
j
For filtering options to show users - correct. And then you’d typically have a “load more” to show all cities
Very similar to the “Show more” button in the AirBnb listings demo under “Property Type”
e
ah, the counts wouldn’t show correctly in all cities though
j
For the cities that are displayed, the counts will be correct (leaving that other bug aside)
e
also here it cuts at 10
j
max_facet_values is 5 here
e
gotcha, yeah unfortunately customers wants all these fancy numbers
but I understand the concept
j
e
yeah customer wants all numbers when they go to filters
👍 1
we’re displaying 50
facets problematic 😄