Questions tagged [elasticsearch-6]

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

285 questions
128
votes
1 answer

No handler for type [string] declared on field [name]

When type is declared as string, Elasticsearch 6.0 will show this error. "name" => [ "type" => "string", "analyzer" => "ik_max_word" ]
Vidy Videni
  • 1,897
  • 3
  • 15
  • 23
22
votes
2 answers

Elasticsearch: How to write an 'OR' clause in filter context?

I'm looking for syntax/example compatible with ES version is 6.7. I have seen the docs, I don't see any examples for this and the explanation isn't clear enough to me. I have tried writing query according to that, but I keep on getting syntax error.…
shoonya ek
  • 317
  • 1
  • 2
  • 12
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
11
votes
2 answers

Elasticsearch : Completion suggester not working with whitespace Analyzer

I am new to Elastic search and I am trying to create one demo of Completion suggester with whitespace Analyzer. As per the documentation of Whitespace Analyzer, It breaks text into terms whenever it encounters a whitespace character. So my …
9
votes
4 answers

org.elasticsearch.common.xcontent.DeprecationHandler Exception while using Elasticsearch REST High level client

I am getting the following exception while trying to use Elasticsearch high rest client. I'm using Spring Boot 2.0.4 and Elasticsearch 6.4 versions.. The use case is simply to create an index with some data and then retrieving the same.. 2018-08-24…
Santosh Kumar Arjunan
  • 3,600
  • 3
  • 23
  • 24
8
votes
2 answers

Are IDs guaranteed to be unique across indices in Elasticsearch 6+?

With mapping types being removed in Elasticsearch 6.0 I wonder if IDs of documents are guaranteed to be unique across indices? Say I have three indices, all with a "parent" field that contains an ID. Do I need to include which index the ID belongs…
Oskar Persson
  • 6,605
  • 15
  • 63
  • 124
7
votes
3 answers

Too many dynamic script compilations within, max: [75/5m]

I am getting below error in elasticsearch. {"error":{"root_cause":[{"type":"circuit_breaking_exception","reason":"[script] Too many dynamic script compilations within, max: [75/5m]; please use indexed, or scripts with parameters instead; this limit…
anjanbarik
  • 71
  • 1
  • 1
  • 4
7
votes
2 answers

elasticsearch - decay documents using property value

My documents are made of categories. There are 40 different categories these are added to the document manually in database and indexed. This is how my document looks like: { "name": "..", "categoryA": "..", "categoryB": "..",.. …
Sterling Duchess
  • 1,970
  • 16
  • 51
  • 91
7
votes
1 answer

Search for a parent and all it's children in one query in elastic search

Referring to the examples mentioned in the official documentation of building a parent-child relationship - https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html The link has provided question-answer join relationship…
Righto
  • 855
  • 3
  • 11
  • 32
6
votes
2 answers

How to group by month in Elastic search

I am using elastic search version 6.0.0 for group by month, I am using date histogram aggregation. example which I've tried : { "from":0, "size":2000, "_source":{ "includes":[ "cost", "date" ], …
5
votes
1 answer

Migrate Elastic search data from 5.6.4 to 6.6.0

I am running Janusgraph(0.3.1) with Cassandra(3.11.1) and Elastic search(5.6.4) using Docker. But, now I migrated to the latest versions i.e (janusgraph: latest, Cassandra: 3, elastic search: 6.6.0) and also I am running multiple graphs. This worked…
5
votes
2 answers

How to delete all documents from index in an elasticsearch using RestHighLevelClient

I have tried below code it works fine but it uses TransportClient to delete all documents. DeleteByQueryRequestBuilder deleteByQueryRequestBuilder = DeleteByQueryAction.INSTANCE.newRequestBuilder(transportClient) …
5
votes
2 answers

How to exclude a field from getting searched by elasticsearch 6.1?

I have an index with multiple fields in it. I want to filter out based on presence of search string in all the fields except one - user_comments. The query search that I am doing is { "from": offset, "size": limit, "_source": [ …
Richa Sinha
  • 1,406
  • 15
  • 29
5
votes
0 answers

Version control Kibana Saved Objects?

How can I automate version control of Kibana Saved Objects in an AWS environment? I have an Elasticsearch domain hosted on AWS and I have configured Kibana to visualize the data. Now, I would like to version control the Kibana configuration for…
matsev
  • 32,104
  • 16
  • 121
  • 156
5
votes
0 answers

Elasticsearch scripting Engine Implementation for groovy tf queries

Currently, on ES 5.6, we are using groovy inline scripting to get tf of a given term in a field for given documents like - GET document/_search { "size": 114, "query": {"terms": { "doc_id": [1840, 2160] }}, "script_fields": { …
1
2 3
18 19