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

Unknown key for a START_OBJECT in [bool] in elastic search

Elasticsearch is giving this error like Unknown key for a START_OBJECT in [bool] in Elasticsearch. My query is as below: Updated var searchParams = { index: 'offers', body:{ query:{ bool : { must : { query: { …
dkp1997
  • 175
  • 1
  • 2
  • 7
13
votes
3 answers

Elasticsearch 5 stuck reading from disk

I have a cluster of 6 nodes with ES 5.4 with 4B small documents yet indexed. Documents are organized in ~9K indexes, for a total of 2TB. The indexes' occupancy varies from few KB to hundreds of GB and they are sharded in order to keep each shard…
Luca Mastrostefano
  • 3,201
  • 2
  • 27
  • 34
13
votes
1 answer

how does field_value_factor work in elasticsearch?

The documentation says that using a field_value_factor value of: "field_value_factor": { "field": "popularity", "factor": 1.2, "modifier": "sqrt", "missing": 1 } "Which will translate into the following formula for scoring: sqrt(1.2 *…
user3494047
  • 1,643
  • 4
  • 31
  • 61
13
votes
1 answer

Highlighting does not work in Elasticsearch and PHP

I've just downloaded and installed the last version of Elasticsearch on my Windows machine. I did my first search queries and everything seemed to work ok. However. when I try to highlight the search results, I fail. So, this is how my query looks…
Jacobian
  • 10,122
  • 29
  • 128
  • 221
12
votes
1 answer

ElasticSearch Java High level REST Client - Singleton or one instance per user?

I am planning to use Java REST client in our application. Ours is a Java RESTful application running on Tomcat. We will have lot of search requests to ElasticSearch per second from different users. What is the best practice - To create a Singleton…
Rajesh Kumar
  • 273
  • 2
  • 7
12
votes
4 answers

How to fix "elasticsearch.exceptions.AuthenticationException: ... missing authentication token for REST request"?

I am working on using an ElasticSearch database to store data I am pulling from online. However, when I try to index the data in the database I receive an error. Here is my code for creating and indexing the data: es =…
Professor_Joykill
  • 919
  • 3
  • 8
  • 20
12
votes
2 answers

Equivalent of copyField of Solr on ElasticSearch?

Can someone tell me if there's an equivalent of Solr copyField directive on ElasticSearch? I know there is the multi-field type: http://www.elasticsearch.org/guide/reference/mapping/multi-field-type.html It is nice when you want to apply multiple…
Sebastien Lorber
  • 89,644
  • 67
  • 288
  • 419
11
votes
1 answer

how to search for tags in elasticsearch

I am creating search for photo gallery project where photos could have upto 50 tags (just like in shutterstock and fotolia). I am creating my search in elasticsearch. I have a field with datatype keyword in elasticsearch. When query comes like…
10
votes
3 answers

Elasticsearch on AWS: How to fix unassigned shards?

I have an index on AWS Elasticsearch which were unassighed due to NODE_LEFT. Here's an output of _cat/shards rawindex-2017.07.04 1 p STARTED rawindex-2017.07.04 3 p UNASSIGNED NODE_LEFT rawindex-2017.07.04…
9
votes
1 answer

Elastic Search version conflict issue

I am using an elastic search for search purpose. But recently I observer that some random error while adding data into elastic search: version conflict, required seqNo [113789], primary term [19]. current document has seqNo [113797] and primary…
Suraj Dalvi
  • 988
  • 1
  • 20
  • 34
9
votes
3 answers

ElasticSearch 5.6 cannot start on Mac OS

I can't start ElasticSearch 5.6 server on Mac after installing it with Brew. Get this error: $ /usr/local/opt/elasticsearch@5.6/bin/elasticsearch Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException:…
Victor Bocharsky
  • 11,930
  • 13
  • 58
  • 91
9
votes
2 answers

Elasticsearch equal SQL %Like%

Coming from here i'm asking myselve for the elasticsearch syntax for such querys: WHERE text LIKE "%quick%" AND text LIKE "%brown%" AND text LIKE "%fox%" my try (unfortunately without success) "query": { "bool": { "filter": [ …
Toshi
  • 2,532
  • 4
  • 17
  • 45
9
votes
9 answers

NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{...}{127.0.0.1}{127.0.0.1:9300}]]

I know that question has already been treated but with all my attemps, no way to fix my issue. I just installed elasticsearch and boot it. Here the log of elastic : [2017-05-17T00:05:27,290][INFO ][o.e.n.Node ] [] initializing…
Jocker
  • 268
  • 1
  • 2
  • 10
9
votes
3 answers

Multiple should queries with must query

I am building a query to Elastic 5 (using nest in .net), i am trying to achive this result: Must have value1 and value 2 Should have value3 or value 4 and should have value5 or value6 Here is my query: { "query": { "bool": { …
IB.
  • 1,019
  • 3
  • 13
  • 21
8
votes
1 answer

How to do two nested aggregations in elasticsearch?

City and home type are two nested objects in the following document mapping: "mappings" : { "home_index_doc" : { "properties" : { "city" : { "type" : "nested", "properties" : { "country" : { "type" :…
katericata
  • 1,008
  • 3
  • 14
  • 33
1
2
3
91 92