Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/oleksiikraievyi/highload-sw-arch-hw-10
- Owner: oleksiikraievyi
- Created: 2021-11-26T19:36:03.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-03T22:33:59.000Z (about 3 years ago)
- Last Synced: 2024-06-20T05:13:26.397Z (8 months ago)
- Language: C#
- Homepage:
- Size: 253 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```