Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.04 KB

README.md

File metadata and controls

51 lines (42 loc) · 1.04 KB

Social Analytics on OpenSearch

full-arch-diagram.png

Preparation before deployment

Create service-linked IAM Role for Amazon ECS

If you use AWS ECS first time, you need to create service-linked roles.

aws iam create-service-linked-role --aws-service-name ecs.amazonaws.com

How to Buid & Deploy

export TWITTER_BEARER_TOKEN=xxxxxxxxxxxxxxxxxxxx
npx projen
npj projen deploy

Apply user dictionary

PUT _component_template/kuromoji_user_dic
{
  "template": {
    "settings": {
      "index": {
        "analysis": {
          "analyzer": {
            "kuromoji_user_dic": {
              "type": "kuromoji",
              "user_dictionary": "analyzers/F11469869",
              "filter": [
                "kuromoji_baseform",
                "kuromoji_part_of_speech",
                "cjk_width",
                "ja_stop",
                "kuromoji_stemmer",
                "lowercase"
              ]
            }
          }
        }
      }
    }
  }
}