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

Logstash 5.1.1 config file execution error?

This code is used to send slowlog of elasticsearch 5.1.1 to logstash 5.1.1 as an input: input { file { path => "C:\Users\571952\Downloads\elasticsearch-5.1.1\elasticsearch-5.1.1\logs\elasticsearch_index_search_slowlog" start_position…
Private
  • 1,661
  • 1
  • 20
  • 51
0
votes
1 answer

elasticsearch 5.1 java api DeleteByQuery

Elasticsearch version: 5.1.1 OS version: centos 7 Description of the problem including expected versus actual behavior: ES 5.1 version does not support delete-by-query plugin. so i need to change the javaAPI code. The following code is from the…
염경훈
  • 27
  • 1
  • 7
0
votes
1 answer

Elastic Search 5 and SQL Server synchronisation

I am starting a Elastic search 5 project from data that are actually in a SQL Server, so I am starting from the start: I am thinking about how import data from my SQL Server, and especially how to synchronise my data when data are updated or…
lambdaDev
  • 500
  • 4
  • 18
0
votes
1 answer

Sending elasticsearch5.1.1 slowlog to logstash 5.1.1 as an input

This is the logstash5.1.1 config file content which is used to match the slowlog of elasticsearch5.1.1. input { file { path => "C:\Users\571952\Downloads\elasticsearch-5.1.1\elasticsearch-5.1.1\logs\elasticsearch_index_search_slowlog" …
Private
  • 1,661
  • 1
  • 20
  • 51
0
votes
2 answers

Simple date histogram?

Viewing documents on per weekday classification? My data is in a format like this: {"text": "hi","created_at": "2016-02-21T18:30:36.000Z"} For this I am using a dateConversion.groovy script and kept in the scripts folder in ES 5.1.1. Date date =…
Private
  • 1,661
  • 1
  • 20
  • 51
0
votes
1 answer

Elasticsearch 5 - Return field from document when bulk insert

I'm using Elasticsearch 5.1.1, bulk inserting documents in my index and I need to get in the response one of the document's fields along with the autogenerated _id to update a database. I have been trying requests like the following ones: curl…
0
votes
2 answers

ElasticSearch 5.*, query for: field not exist or if exist value should be this

Consider below Stop field is the timestamp field. i want to filter data with below condition: stop field not exist or, stop field value is >= now I know, i should use must_not but cannot figure out how. I want to do some scoring on child type and…
Irshad Ali
  • 1,153
  • 1
  • 13
  • 39
0
votes
0 answers

Why is this term query not returning any results?

I am currently implementing a simple person search in elastic search. I did some research and found quite a lot content about how to implement features as full text search and so on. The problem is, that some queries just don't return any results. I…
PatrickR
  • 17
  • 1
  • 6
0
votes
1 answer

Highlight part of word with ngram and whitespace analyzers

I have an elasticsearch index with the following data: "The A-Team" (as an example) My index settings are : "index": { "number_of_shards": "1", "provided_name": "tyh.tochniyot", "creation_date": "1481039136127", "analysis": { …
IB.
  • 1,019
  • 3
  • 13
  • 21
0
votes
1 answer

How do you use the ingest-attachment plugin with elasticsearch-rails?

I was previously using the mapper-attachments plugin that is now deprecated, which was fairly easy to use along with normal indexing. Now that ingest-attachment has replaced it and requires a pipeline, etc. it has become confusing on how to properly…
0
votes
1 answer

Elasticsearch 5.0 batch document ingestion with pipeline

I'm upgrading elasticsearch 2.1 to 5.0. I used a document ingestion plugin for 2.1 which works most excellently with a batch ingest. For 5.0 I've installed the ingest-attachment in 5.0. I've created a pipeline: { "attachment": { "description":…
Mark Robson
  • 1,298
  • 3
  • 15
  • 40
0
votes
1 answer

Global term aggregation with filtered count - Elasticsearch 5

I have products stored in ES and I'm trying to aggregate them by their size. I would like to design following behaviour. For each term even outside of query to receive term counts based on query. So querying for sizes ["S", "M"] I would like to…
0
votes
1 answer

Kibana not populating results

I am able to create an index in ElasticSearch., but when I try to visualize in Kibana, I am able to create the particular index accordingly and open the visualization chart, and when I try to visualize for any field, results are not appearing (it is…
Soundarya Thiagarajan
  • 574
  • 2
  • 13
  • 31
0
votes
1 answer

Having trouble converting a filtered query into a bool query for Elasticsearch 5

I'm in the process of upgrading from elasticsearch 1.7 to 5.0. One of the changes is the removal of filtered query in favor of a bool query. For example, I have this search hash being used in the older version of ES: { "sort": [ { "updated_at" =>…
surjay
  • 123
  • 1
  • 8
0
votes
1 answer

Elasticsearch 5.x setQuery deprecated

I have a question regarding the last version of Elasticsearch. Until the previous version I was using the following Java API search: SearchRequestBuilder request = client.prepareSearch(index).setSource(jsonQuery) Now setSource is deprecated and it…
Ribas
  • 137
  • 1
  • 11