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
8
votes
1 answer

Elasticsearch: Get phrase frequency in a given document

Test data: curl -XPUT 'localhost:9200/customer/external/1?pretty' -d '{ "body": "this is a test" }' curl -XPUT 'localhost:9200/customer/external/2?pretty' -d '{ "body": "and this is another test" }' curl -XPUT…
8
votes
2 answers

Something "Materialized view"-like in ElasticSearch

I have a query which runs every time a website is loaded. This Query aggregates over three different term-fields and around 3 million documents and therefore needs 6-7 seconds to complete. The data does not change that frequently and the currentness…
nik
  • 2,114
  • 3
  • 22
  • 43
8
votes
3 answers

How should I use sql_last_value in logstash?

I'm quite unclear of what sql_last_value does when I give my statement as such: statement => "SELECT * from mytable where id > :sql_last_value" I can slightly understand the reason behind using it, where it doesn't browse through the whole db table…
7
votes
3 answers

Elastic Search Getting Version Conflict even while updating document sequentially using update_by_query

I am trying to update a document's nested type field using update_by_query. I am using the following script query: POST test/_update_by_query { "script": { "source": "ctx._source.address = params.address", "params": { …
Suraj Dalvi
  • 988
  • 1
  • 20
  • 34
7
votes
2 answers

Get status of a task Elasticsearch for a long running update query

Assuming I have a long running update query where I am updating ~200k to 500k, perhaps even more.Why I need to update so many documents is beyond the scope of the question. Since the client times out (I use the official ES python client), I would…
Shivendra Soni
  • 672
  • 2
  • 6
  • 19
7
votes
2 answers

Elasticsearch count in groups by date range

I have documents like this: { body: 'some text', read_date: '2017-12-22T10:19:40.223000' } Is there a way to query count of documents published in last 10 days group by date? For example: 2017-12-22, 150 2017-12-21, 79 2017-12-20, 111 …
ehsan shirzadi
  • 4,709
  • 16
  • 69
  • 112
7
votes
4 answers

Unable to Discover data on Kibana 5

I've set up a test Amazon Elasticsearch Service, which uses Elastic and Kibana 5.1. I'm able to insert a test entry via curl: curl -XPOST "https://mytestservicedomain.amazonaws.com/testindex/testtype" -d "{\"foo\":\"bar\"}" And verify it was…
rtorres
  • 2,601
  • 3
  • 27
  • 33
7
votes
2 answers

Installation of kopf plugin for elasticsearch 5.1.1?

Actually i have elasticsearch 5.1.1 and tried downloading kopf plugin with the following commands and i got a error like this ..Can u help me in solving this problem?? C:\Users\896323\Downloads\elasticsearch-5.1.1\elasticsearch-5.1.1\bin>plugin…
Private
  • 1,661
  • 1
  • 20
  • 51
7
votes
1 answer

What is the most suitable datatype to use in aggregations with ElasticSearch 5: numeric or keyword?

In a Elasticsearch index, I have a few fields which are referencing main categories' ids (e.g. sector_id, country_id, etc...). These fields are solely use for filtering (using the term/terms filters) and for creating buckets in terms aggregations…
6
votes
1 answer

elastic range query giving only top 10 records

I am using elastic search query range to get the records from one date to other date using python, but I am only getting 10 records. Below is the query {"query": {"range": {"date": {"gte":"2022-01-01 01:00:00", "lte":"2022-10-10…
merkle
  • 1,585
  • 4
  • 18
  • 33
6
votes
0 answers

Keep getting socket hang out on ElasticSearch

I am new to ElasticSearch.I am reindexing some indexes in my ElasticSearch Cluster. While I am trying to reindex an index that has a large amount of data I am getting Socket hang up error. const elasticsearch = require('elasticsearch'); const…
6
votes
1 answer

Completion Suggester with additional conditions in Elastic Search

I have a index that returns jobs in different languages. I need to search similar jobs as per a single text that to a single language. So let's say, I have set 1 as LanguageId for English. And I want to search jobs matching with account. So if I…
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" ], …
6
votes
2 answers

failed to send join request to master elastic search 5.4 cluster

I have configured elastic search with 3 nodes My cluster is not able to find the master node Logs of elastic search [2018-02-24T02:39:39,106][INFO ][o.e.d.z.ZenDiscovery ] [node3] failed to send join request to master…
6
votes
2 answers

specify path of JDK for elasticsearch

I need to use elasticsearch in a remote server which have a jdk 1.7 and my ES 5.4 support jdk 1.8 so I need to configure it to point to path for JDK 1.8 I cant update JAVA_HOME can you please tell me how can I do it ? which file shoud I update
YK mar
  • 669
  • 2
  • 10
  • 32
1 2
3
91 92