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
0
votes
2 answers

Flink with ElasticSearch 5 Sink conflicts of io.netty library

I am playing with flink+ElasticSearch 5 Sink, using x-pack authentication. I got this error first Flink Xpack ElasticSearch 5 ElasticsearchSecurityException missing autentication So i fixed it overwriting the ES Sink function. My problem now is when…
0
votes
1 answer

Elasticsearch 5.2 Context Suggester Type Definition - Error

I am having problems defining a Context Suggester in Elasticsearch 5.2 This is how I try to do it: curl -XPUT 'localhost:9200/world/port/_mapping' -d '{ "port": { "properties": { "name": { "type": "string" }, "suggest": { …
0
votes
1 answer

Kibana error /usr/local/bin/node: bad option: --no-warnings

I just downloaded ElasticSearch and was trying to start Kibana. However I cannot make it. I am working with 5.2.2 versions of both programs (ElasticSearch 5.2.2 and Kibana 5.2.2). Once I initiated ElasticSearch (I assume it is working properly…
lucasrodesg
  • 638
  • 1
  • 6
  • 22
0
votes
2 answers

Self hosted kibana 5.1.1 showing blank pages after connected to AWS Elasticsearch 5.1.1

We decided to run a self-hosted kibana site with docker image kibana:5.1.1(to be compatible with the AWS elasticsearch version) due to security reasons. However, after setting everything up, the kibana site is showing blank pages. Kibana log shows…
lingxiao
  • 1,214
  • 17
  • 33
0
votes
1 answer

Using ElasticSearch painless scripting to compute dayOfWeek or timeOfDay

I use ES 5.1.2 and I'm trying to compute day of week and time of day from a date field and consider timezone at the same time. my first script is def d = doc['my_field'].date; d.addHours(10); d.getDayOfWeek(); The error message is can't find…
Ray Wu
  • 993
  • 16
  • 34
0
votes
0 answers

Elasticsearch 5 AutoComplete Implementation in Java API

I Have a collection of documents as following format in json {"Title":"String","Author":"String","Link":"String","Description":"String","tags":["x","x","x","x","x"]} I want to store them in an ElasticSearch server and prepare autocomplete…
Saeed Alizadeh
  • 1,417
  • 13
  • 23
0
votes
1 answer

Elasticsearch: piping or passing result of aggregations for further aggregation

I am trying to get average of grouped minimum values of a field. In the image, I am getting two buckets with min_time property in them. I need to get average of this min_time. So, the final result should have only one bucket with average of…
0
votes
1 answer

Elasticsearch: Aggregations with conditions on both parent and child

I have two indices named "ride" and "audit_log" where audit_log is child of ride. I need to fetch average of timestamp from audit_log table(index) based on some conditions. Conditions span to both parent and child. The query, I am trying to execute…
Piyush Arora
  • 138
  • 1
  • 12
0
votes
1 answer

How do I recreate an "or" query now that "missing" is deprecated?

I am upgrading to elasticsearch 5.2 and have the following query, which now fails because the "missing" filter is deprecated: { "query": { "bool": { "should": [ { "missing": { "field":…
user776942
0
votes
2 answers

Full Text Search as well as Terms Search on same filed of Elasticsearch

I'm from MySql background. So I don't know much about elasticsearch and it's working. Here is my requirements There will be table of resulted records with sorting option on all the column. There will be filter option from where user will select…
0
votes
1 answer

How do i prevent elasticsearch's _analyze from interpretting yml

I'm trying to use the _analyze api with text that looks like this: --- some -- text --- This request works as expected: curl localhost:9200/my_index/_analyze -d '--' {"tokens":[]} However, this one fails: curl…
iCart
  • 2,179
  • 3
  • 27
  • 36
0
votes
1 answer

function_score: treat missing field as perfect hit

What I need to do is boost documents by location (closer is better). locations is nested type. Works fine except Elasticsearch does not return documents if locations is missing in document. If fields is missing, Elasticsearch should treat document…
Bald
  • 2,156
  • 3
  • 24
  • 33
0
votes
1 answer

Not able to disallocate shard from ES cluster

I have created a ES cluster with ES running on three different machine. In order to make them as cluster i have added the unicast config as below in all the 3 machine in elasticsearch.yml config file. discovery.zen.ping.unicast.hosts:[IP1, IP2,…
Adarsh H D Dev
  • 588
  • 7
  • 29
0
votes
1 answer

Unable to remove stop words in elastic search while doing bulk indexing

My code is as under. Even though I have listed ["is","it","possible"] as stop words filter, but still am getting it in the output search. Could someone help as to why is elastic search not removing them from the input documents while indexing…
khangaroth
  • 75
  • 3
  • 13
0
votes
2 answers

sl4j version conflicts in gradle with Storm 1.0.1 and elasticsearch 5.2

We are facing sl4j version conflicts in gradle with Storm 1.0.1 and elasticsearch 5.2. We found that the ElasticSearch needs bridge log4j-to-slf4j so that we can use desired loggers. Here we are trying to use logback-classic with slf4j. The…