Skip to content

news-ai/ops

Repository files navigation

curl -XPUT https://newsai:@search1.newsai.org/_cluster/settings -d '{"persistent" : {"threadpool.bulk.queue_size" : 100000}}'

curl -XPUT "https://newsai:@search1.newsai.org/contacts/_settings" -d '{"index" : {"max_result_window" : 500000 }}'

Adding map to index

curl -PUT https://newsai:@search1.newsai.org/emails/email -d '{
    "settings" : {
        "number_of_shards" : 1
    },
    "mappings" : {
        "type1" : {
            "properties" : {
                "field1" : { "type" : "string", "index" : "not_analyzed" }
            }
        }
    }
}'

Add mapping to type

curl -PUT https://newsai:@search1.newsai.org/emails/email -d '{
    "mappings" : {
        "type1" : {
            "properties" : {
                "field1" : { "type" : "string", "index" : "not_analyzed" }
            }
        }
    }
}'

Renewing ES for Search

  • Turn off nginx (sudo service nginx stop)
  • Renew certificate (./certbot-auto renew)
  • Turn on nginx (sudo service nginx start)

About

Quick tools to test, clean, and sync data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published