Questions tagged [elasticsearch-5]

Use this tag for version specific questions about Elasticsearch 5.0 - the distributed, RESTful search and analytics engine. When using this tag also include the more generic [elasticsearch] tag where possible.

With Elasticsearch 5, Elastic takes a new approach on making its products work together by using unified release schedules. Each component of the Elastic Pack will be released at the same time with the same version. Elasticsearch 5 comes with shiny new features. Among others:

  • Index Shrinking
  • API for rolling over time-based indices
  • A new scripting language: Painless
  • New redesigned completion suggester
  • Re-index From Remote

Elasticsearch 5 documentation

1372 questions
64
votes
4 answers

How to integrate ElasticSearch with MySQL?

In one of my project, I am planning to use ElasticSearch with MySQL. I have successfully installed ElasticSearch. I am able to manage index in ES separately. but I don't know how to implement the same with MySQL. I have read a couple of documents…
Yaxita Shah
  • 1,206
  • 1
  • 11
  • 17
38
votes
2 answers

How to Do a Mapping of Array of Strings in Elasticsearch

I can't find any examples of how to structure an array of strings in elasticsearch when trying to PUT a mapping to an index. What I have for the field mapping: :tags {:type :array :store true} The error i get: {:type "mapper_parsing_exception", …
Micah
  • 10,295
  • 13
  • 66
  • 95
34
votes
1 answer

Is there a way to make elasticsearch case-insensitive without altering the existing documents?

Does Elasticsearch allow us to query documents case-insensitive? Or should I save them as case-insensitive before querying? Or is there some setting that I should set for the whole index to make it case-insensitive? Can you clarify this moment…
Skrudox
  • 839
  • 4
  • 9
  • 14
32
votes
7 answers

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

When I try to store anything in elasticsearch, An error says that: TransportError(403, u'cluster_block_exception', u'blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];') I already inserted about 200 millions documents in my index. But…
ehsan shirzadi
  • 4,709
  • 16
  • 69
  • 112
27
votes
1 answer

Content-Type header [application/x-www-form-urlencoded] is not supported

I have integrated Elasticsearch (Version 5.5) into Gitlab and try to use it. This is the command I send from an external windows client: curl -XGET gitlab.server:9200/ -H 'Content-Type: application/json' -d '{"query": {"simple_query_string" :…
waka
  • 3,362
  • 9
  • 35
  • 54
26
votes
19 answers

Elasticsearch: Bulk request throws error in Elasticsearch 6.1.1

I recently upgraded to Elasticsearch version 6.1.1 and now I can't bulk index documents from a JSON file. When I do it inline, it works fine. Here are the contents of the document: {"index" : {}} {"name": "Carlson Barnes", "age":…
Judy T Raj
  • 1,755
  • 3
  • 27
  • 41
24
votes
1 answer

SQL like GROUP BY AND HAVING

I want to get the counts of groups which satisfy a certain condition. In SQL terms, I want to do the following in Elasticsearch. SELECT COUNT(*) FROM ( SELECT senderResellerId, SUM(requestAmountValue) AS t_amount FROM transactions …
damjad
  • 1,252
  • 1
  • 15
  • 24
22
votes
1 answer

Delete multiple indices in one Elasticsearch HTTP request (cURL)

I was using this curl command line to clean my indices: curl -XDELETE http://example.com/my_index-* But, now, I want to delete my_index-.*[.][0-3][0-9]: to delete only my_index-YYYY.MM.dd to keep my_index-YYYY.MM.dd-* The relevant Elasticsearch…
oHo
  • 51,447
  • 27
  • 165
  • 200
22
votes
3 answers

Word-oriented completion suggester (ElasticSearch 5.x)

ElasticSearch 5.x introduced some (breaking) changes to the Suggester API (Documentation). Most notable change is the following: Completion suggester is document-oriented Suggestions are aware of the document they belong to. Now, associated…
alesc
  • 2,776
  • 3
  • 27
  • 45
21
votes
2 answers

Elastic search high memory consumption

Elastic search is occupying more than 25 GBs of RAM. Data that I gave for indexing to elastic search is around 1 GB. Why elastic search needs this much of space?
ThinkGeek
  • 4,749
  • 13
  • 44
  • 91
21
votes
3 answers

org.elasticsearch.common.transport.InetSocketTransportAddress not found on Elasticsearch 6

My code is working fine in elasticsearch 5 but when I have upgraded from 5 to 6 then. it is showing org.elasticsearch.common.transport.InetSocketTransportAddress not found complete stack trace: [ERROR] Failed to execute goal…
Arayan Singh
  • 3,192
  • 3
  • 16
  • 35
19
votes
1 answer

Python elasticsearch.helpers.scan example

Can someone provide scan API example of python elasticsearch helpers client? res = elasticsearch.helpers.scan(....) How can i get all results from elasticsearch with res object?
Developer
  • 299
  • 1
  • 2
  • 11
17
votes
1 answer

Elasticsearch : constant_score query vs bool.filter query

I am trying to achieve an exact match result using Elasticsearch (so I don't care about scoring here) I see that there are 2 ways to do this : { "query" : { "constant_score" : { "filter" : { "term" : { …
sharath
  • 3,501
  • 9
  • 47
  • 72
17
votes
3 answers

Is it possible to put a comment in an Elasticsearch query?

Is it possible to put a comment into an Elasticsearch query JSON? I want to be able to add some extra text to the query that's human-readable but ignored by Elasticsearch. For example, if I have the following query: { "query": { "match_all": {} }…
16
votes
2 answers

"_doc" mapping type name not accepted in ElasticSearch 5.6

I am looking at examples of single-type indices on ElasticSearch 5.6 to prepare for the removal of mapping types. Specifically, I am running the first example from the ElasticSearch page about the removal of types, on a fresh cluster running locally…
AdrienF
  • 859
  • 1
  • 6
  • 19
1
2 3
91 92