Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1008 Bytes

README.md

File metadata and controls

40 lines (33 loc) · 1008 Bytes

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)