Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oleksiikraievyi/highload-sw-arch-hw-10

HW 10 for highload software architecture courses. https://prjctr.com/course/highload-software-architecture?gclid=EAIaIQobChMI7OOMjvf78wIVRjcYCh1axwtgEAAYASAAEgKm2_D_BwE
https://github.com/oleksiikraievyi/highload-sw-arch-hw-10

Last synced: 22 days ago
JSON representation

HW 10 for highload software architecture courses. https://prjctr.com/course/highload-software-architecture?gclid=EAIaIQobChMI7OOMjvf78wIVRjcYCh1axwtgEAAYASAAEgKm2_D_BwE

Awesome Lists containing this project

README

        

# highload-sw-arch-hw-10

# Prerequisites
* docker
* linux + bash

# 1. Run Elasticsearch and create index with cities
```
./run.sh
```

# 2. Run query with 3 mistakes with search field length more than 7. Observe `Argentina` is returned
```
curl -XGET --header 'Content-Type: application/json' http://localhost:9200/cities/_search?pretty=true -d '{
"suggest": {
"country-suggest": {
"text": "Argendinaz",
"completion": {
"field": "country",
"fuzzy": {
"fuzziness": 3,
"min_length": 7
}
}
}
}
}'
```

# 3. Clean up
```
./cleanup.sh
```