export TYPESENSE_API_KEY=xyz

curl "http://localhost:8108/debug" \
       -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}"


curl "http://localhost:8108/collections" \
       -X POST \
       -H "Content-Type: application/json" \
       -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \
       -d '{
			"default_sorting_field": "type",
			"enable_nested_fields": false,
			"fields": [
				{
					"facet": true,
					"index": true,
					"infix": false,
					"locale": "",
					"name": "uri",
					"optional": true,
					"sort": false,
					"type": "string"
				},
				{
					"facet": true,
					"index": true,
					"infix": false,
					"locale": "",
					"name": "type",
					"optional": false,
					"sort": true,
					"type": "int64"
				}
			],
			"name": "areasoflaw_test_20230710",
			"symbols_to_index": [
				"/",
				"-",
				"_",
				"."
			],
			"token_separators": []
		}'
       
curl "http://localhost:8108/collections/areasoflaw_test_20230710/documents/import?action=create" \
        -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \
        -H "Content-Type: text/plain" \
        -X POST \
        -d '{"id": "4406386","type": 4,"uri": "rade/aols/insolvenzrecht/persoenliche-risiken-fuer-organe-von-kapitalgesellschaften-gmbh-geschaeftsfuehrer-ag-vorstand"}'
            
curl "http://localhost:8108/collections/areasoflaw_test_20230710/documents/search?q=*&filter_by=uri:rade/aols/insolvenzrecht/persoenliche-risiken-fuer-organe-von-kapitalgesellschaften-gmbh-geschaeftsfuehrer-ag-vorstand" \
        -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}"