export TYPESENSE_API_KEY=... export TYPESENSE_HOST='http://localhost:8108' curl "${TYPESENSE_HOST}/collections" \ -X POST \ -H "Content-Type: application/json" \ -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" -d '{"name":"geodb","fields":[{"name":"_geo","type":"geopoint"},{"name":"bundesland_slug","type":"string"},{"name":"id","type":"int32"},{"name":"main_entry","type":"bool"},{"name":"label","type":"string","sort":true},{"name":"seo_query","type":"string","facet":true},{"name":"seo_query_raw","type":"string","facet":false},{"name":"plz_alort","type":"string"},{"name":"oname","type":"string","sort":true},{"name":"plz","type":"string","sort":true}],"default_sorting_field":"label"}' curl "${TYPESENSE_HOST}/collections/geodb/documents/import" \ -X POST \ -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \ --data-binary @./geodb_sampledata.jsonl curl 'http://localhost:8108/multi_search' -X POST -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" -d ' { "searches": [ { "collection": "geodb", "q": "*", "filter_by": "seo_query: leip* && main_entry:=true" } ] }'