Skip to content

mats16/socialanalytics-on-opensearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
              ]
            }
          }
        }
      }
    }
  }
}

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published