```curl 'URL' \ -H 'authority: URL' \ -H 'acce...
# community-help
a
Copy code
curl 'URL' \
  -H 'authority: URL' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'accept-language: en-US,en-IN;q=0.9,en;q=0.8' \
  -H 'content-type: text/plain' \
  -H 'origin: <http://localhost:3010>' \
  -H 'referer: <http://localhost:3010/>' \
  -H 'sec-ch-ua: "Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36' \
  --data-raw '{"searches":[{"query_by":"full_name","min_len_2typo":8,"split_join_tokens":"always","sort_by":"update_time:asc","per_page":0,"highlight_full_fields":"full_name","collection":"people_v2","q":"*","facet_by":"location_state","max_facet_values":20,"page":1,"facet_query":"location_state:new"}]}' \
  --compressed
Response:
Copy code
[
    {
        "facet_counts": [
            {
                "counts": [],
                "field_name": "location_state",
                "sampled": false,
                "stats": {
                    "total_values": 0
                }
            }
        ],
        "found": 4517283,
        "hits": [],
        "out_of": 4517283,
        "page": 1,
        "request_params": {
            "collection_name": "people_v2",
            "per_page": 0,
            "q": "*"
        },
        "search_cutoff": false,
        "search_time_ms": 1772
    }
]
Searching for "New" in state. Should return values.