oleksiikraievyi / highload-sw-arch-hw-10

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:C# 76.0%Language:Dockerfile 14.8%Language:Shell 9.2%