This message was deleted.
# community-help
s
This message was deleted.
j
This is due to the
drop_tokens_threshold
setting which defaults to 1
e
thanks
👍 1
that worked!
🙌 1
one more issue I got 3 jobs with a location array, they are all in germany but in 3 different locations, so the facets show as 9 jobs
j
Could you share the facet counts returned by the Typesense API?
e
Copy code
{
                    "counts": [
                        {
                            "count": 3,
                            "highlighted": "Hamburg,Hamburg",
                            "value": "Hamburg,Hamburg"
                        },
                        {
                            "count": 3,
                            "highlighted": "Emden,Lower Saxony",
                            "value": "Emden,Lower Saxony"
                        },
                        {
                            "count": 3,
                            "highlighted": "Kiel,Schleswig-Holstein",
                            "value": "Kiel,Schleswig-Holstein"
                        }
                    ],
                    "field_name": "data.locations.cityState",
                    "sampled": false,
                    "stats": {
                        "total_values": 3
                    }
                },
                {
                    "counts": [
                        {
                            "count": 3,
                            "highlighted": "Hamburg",
                            "value": "Hamburg"
                        },
                        {
                            "count": 3,
                            "highlighted": "Lower Saxony",
                            "value": "Lower Saxony"
                        },
                        {
                            "count": 3,
                            "highlighted": "Schleswig-Holstein",
                            "value": "Schleswig-Holstein"
                        }
                    ],
                    "field_name": "data.locations.state",
                    "sampled": false,
                    "stats": {
                        "total_values": 3
                    }
                },
                {
                    "counts": [
                        {
                            "count": 9,
                            "highlighted": "Germany",
                            "value": "Germany"
                        }
                    ],
                    "field_name": "data.locations.country",
                    "sampled": false,
                    "stats": {
                        "total_values": 1
                    }
                }
            ],
            "found": 3,
here’s the actual locations array
Copy code
"locations": [
                                {
                                    "address": "Werftstr. 112 - 114 , 24143 Kiel",
                                    "city": "Kiel",
                                    "cityState": "Kiel,Schleswig-Holstein",
                                    "country": "Germany",
                                    "state": "Schleswig-Holstein",
                                    "stateShort": "SH",
                                    "zipCode": "24143"
                                },
                                {
                                    "address": "Hermann Blohm Str 3",
                                    "city": "Hamburg",
                                    "cityState": "Hamburg,Hamburg",
                                    "country": "Germany",
                                    "state": "Hamburg",
                                    "stateShort": "Hamburg",
                                    "zipCode": "20457"
                                },
                                {
                                    "address": "Zum Zungenkai",
                                    "city": "Emden",
                                    "cityState": "Emden,Lower Saxony",
                                    "country": "Germany",
                                    "state": "Lower Saxony",
                                    "stateShort": "NDS",
                                    "zipCode": "26725"
                                }
                            ],
j
Hmm, could you copy-as-curl the network request sent to Typesense from the browser, remove your cluster ID and API key and paste it here?
e
yes, one sec
@Jason Bosco
Copy code
curl 'https://xxxxx.a1.typesense.net/multi_search?x-typesense-api-key=xxxxx' \
  -H 'authority: xxxx-1.a1.typesense.net' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'content-type: text/plain' \
  -H 'dnt: 1' \
  -H 'origin: https://xxxx' \
  -H 'referer: https://xxxx' \
  -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":"Systemingenieur Systemmodellierung","query_by":"data.title,content","drop_tokens_threshold":0,"filter_by":"","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"}]}' \
  --compressed
j
Thank you, will take a closer look and keep you posted
e
thanks
j
We’re working on a fix for this. Should be ready in an RC build in a few days or so
e
thanks!
👍 1
@Kishore Nallan ^
k
Yes, this is available in
0.25.0.rc60
as well.
e
thanks