Courier Fetch: shards failed

For me tuning the threadpool search queue_size solved the issue. I tried a number of other things and this is the one that solved it. I added this to my elasticsearch.yml threadpool.search.queue_size: 10000 and then restarted elasticsearch. Reasoning… (from the docs) A node holds several thread pools in order to improve how threads memory consumption … Read more

Cluster has already maximum shards open

Aside from the answers mentioned above, you can also try increasing the shards until you try to rearchitect the nodes curl -X PUT localhost:9200/_cluster/settings -H “Content-Type: application/json” -d ‘{ “persistent”: { “cluster.max_shards_per_node”: “3000” } }’ Besides, the following can be useful the should be proceeded with CAUTION ofcourse Get total number of unassigned shards in … Read more

elasticsearch: create index with mappings using javascript

Refining the answer that is in the comment above from Sander Spilleman. The “mappings” property needs to be inside the “body” property. I am also using the Javascript client 1.3.0 and the docs are still not updated with an example. Adding an example that worked for me with the javascript API provided by elasticsearch on … Read more

TransportError(403, u’cluster_block_exception’, u’blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];’)

Try GET yourindex/_settings, this will show yourindex settings. If read_only_allow_delete is true, then try: PUT /<yourindex>/_settings { “index.blocks.read_only_allow_delete”: null } I got my issue fixed. plz refer to es config guide for more detail. The curl command for this is curl -X PUT “localhost:9200/twitter/_settings?pretty” -H ‘Content-Type: application/json’ -d ‘ { “index.blocks.read_only_allow_delete”: null }’

How to limit query time in elasticsearch?

You can pass a search “timeout” in the request body or in the uri request. If the search request times out before collecting all results, the partial results will be returned. Here’s a uri request example for 10 seconds (units are in milliseconds): http://localhost:9200/_search?timeout=10000 If you set the timeout low enough, the returned json will … Read more

How to send elasticsearch multi search request in Postman?

Three things are important here: When inserting body, select raw radiobutton and Text (or JSON) from dropdown. Add header: Content-type: application/x-ndjson Most important: put new line after the last line of your query Body: Header: Curl version: curl -X POST \ http://127.0.0.1:9200/_msearch \ -H ‘cache-control: no-cache’ \ -H ‘content-type: application/x-ndjson’ \ -d ‘{“index”:”script”,”type”:”test”} {“query”:{“match_all”:{}}} ‘

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)