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

If the numbers after the decimal is zero, it doesn’t return as a double value?

I'm having an index created in elasticsearch 5.0, where it contains data from my MySQL db. There's a field which is a string in my table, which I need it as a double in ES. So what I did was added the mapping when I created the index for the…
Kulasangar
  • 9,046
  • 5
  • 51
  • 82
0
votes
1 answer

Is it possible to update an existing field in an index through mapping in Elasticsearch?

I've already created an index, and it contains data from my MySQL database. I've got few fields which are string in my table, where I need them as different types (integer & double) in Elasticsearch. So I'm aware that I could do it through mapping…
Kulasangar
  • 9,046
  • 5
  • 51
  • 82
0
votes
1 answer

elasticsearch 5.0 native plugin, query error

I wrote a native plugin for es 5.0, which extends Plugin implements ScriptPlugin, and scripts extends AbstractSearchScript, installed ok, but when I execute the following query: "script_score": { "script": { "id":…
navins
  • 3,429
  • 2
  • 28
  • 29
0
votes
0 answers

Elasticsearch 5 Java client does not work with Groovy Grape

Not sure this problem is caused by Elasticsearch or Groovy Grape. I have a groovy script that uses Grape to handle dependencies: @Grapes([ @Grab(group = 'org.elasticsearch', module = 'elasticsearch', version = '5.0.0'), @Grab(group =…
Fabrizio Fortino
  • 1,479
  • 1
  • 14
  • 22
-1
votes
1 answer

Elastic Search - Reactive document APIs

My requirement is to create a spring boot application controller/service that calls elastic search reactive apis with out using traditional model and repositories. i need to pass dynamic json object to create documents in elastic search using spring…
ane
  • 101
  • 3
  • 10
-1
votes
1 answer

ElasticSearch : Get latest version of each document

I'm querying ES to get me list of documents within some specific timestamp. Now I encountered a scenario where we had multiple versions of single documentId. By default ES returned me all the versions of that single documentId. My requirement is to…
-1
votes
1 answer

how to filter records with calculated value in elasticsearch geodistance when compared to another field

I have an elasticsearch index of products which has nested array of stores. Now i need to search for store which is within the user's input range, which can be changed by user (1 to 5000km) the store delivers to the user's current location { …
Ravi Soni
  • 953
  • 1
  • 7
  • 17
-1
votes
1 answer

How to write json mapping in java using elastic search RestHighLevelClient?

I have the below mapping and wondering how to write the same mapping in java using RestHighLevelClient { "mappings": { "properties": { "events": { "type": "nested", "properties": { "ecommerceData": { …
-1
votes
1 answer

Why ElasticSearch is not able to search when special characters are available?

I have an ElasticSearch index with below configuration: { "my_ind": { "settings": { "index": { "mapping": { "total_fields": { "limit": "10000000" } }, "number_of_shards": "3", …
ketan
  • 2,732
  • 11
  • 34
  • 80
-1
votes
2 answers

Elastic search installation questions on RHEL

I am working to install elastic search on a LINUX box. As I understand, there are couple of options like tar and RPM. I am not sure on difference between those two. I find tar very easy to download and unzip... Please help explain when you chose tar…
Harish
  • 15
  • 4
-1
votes
2 answers

How to store only limited number of doc in elasticsearch.

I need to store only say 10 number docs under a particular index. And the 11th item should replace the old item i.e 1st item. So that i will be having only 10 doc at any time. I am using elacticsearch in golang
kish
  • 545
  • 2
  • 5
  • 11
-1
votes
1 answer

docker error elastic search image not accessible with the parameters provided by the setup file

I have a clustered Env with docker swarm. I upgraded elastic search image from 2.4 to 5.6 and now when I'm deploying my app, I get an error: ERROR: Validation failed: Elastic search not accessible with the parameters provided by the setup file.…
-1
votes
1 answer

How to update Elasticsearch 1.x to 5.x queries?

I have a query in Elasticsearch 1.x like this: {"filter": {"and": {"filters": [{"exists": {"field": "body"}}, {"query": {"term": {"accept": "true"}}}, {"exists": {"field": "thumbnail"}}, {"query": {"terms": { …
ehsan shirzadi
  • 4,709
  • 16
  • 69
  • 112
-1
votes
2 answers

Elasticsearch more like this returns too many documents

I have documents like this: { title:'...', body: '...' } I want to get documents which are more than 90% similar to the with a specific document. I have used this query: query = { "query": { "more_like_this" : { "fields" :…
ehsan shirzadi
  • 4,709
  • 16
  • 69
  • 112
-1
votes
1 answer

How to query like this in Elasticsearch

I have documents like this: { 'body': '', 'date': '', 'agency_id': '' } I want to get documents with these conditions: body contains : all of ['word1', 'word2 word3', 'word4'] Or all of: ['word5 word6', 'word7'] or all of: ['word8 word9',…
ehsan shirzadi
  • 4,709
  • 16
  • 69
  • 112
1 2 3
91
92