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

How do I get combine my queries to save trips to Elasticsearch?

I have 2 queries I am trying to perform: 1) I want to get Frank's birthday. (The name of the person is the id of the document). 2) Frank's boss is Bob. I need to get the number of people (including Frank) that have Bob as their boss. For #1 I am…
user776942
0
votes
1 answer

How to add a filter to my Lucene query?

I would like to get the hourly average number of events happened in the last hour. All the events must have the field "DayType" equal to "T1" and the field "Town" equal to "NA". My basic working query is the following. However, I don't know how to…
Dinosaurius
  • 8,306
  • 19
  • 64
  • 113
0
votes
1 answer

how to set server.name in elasticsearch 5.5?

I'm trying to begin using x-pack and specify a https cert. In order to do so, I need each elasticsearch node to have a configured hostname (a.foo.com) instead of starting with its IP address (1.2.3.4). Otherwise, SSL fails to start up with entries…
tedder42
  • 23,519
  • 13
  • 86
  • 102
0
votes
1 answer

NEST partial matching for multiple values: Wildcards in Terms or any other way?

I want to find users based on a list of usernames. the list of the username might contain partial usernames and will come from a web application. var userNames = new List (...); // not sure how many! LINQ: var userEntity = …
Javid_p84
  • 848
  • 2
  • 12
  • 26
0
votes
1 answer

Elasticsearch only finding hits with ".keyword" appended

Elasticsearch only finding hits with ".keyword" appended I'm having a terrible time with querying an elasticsearch 5 instance full of fluentd log entries that I imported from an older elasticsearch instance running version 1.7. Queries through…
matt
  • 9,113
  • 3
  • 44
  • 46
0
votes
2 answers

Elasticsearch 5.4 nested search return only nested data which matches

Running version 5.4 of Elasticsearch. With this mapping: PUT pizzas { "mappings": { "pizza": { "properties": { "name": { "type": "keyword" }, "types": { "type": "nested", …
harvzor
  • 2,832
  • 1
  • 22
  • 40
0
votes
0 answers

How to export the content of my CSV file in the mapping of Elasticsearch?

I have CSV file with 1000 rows and 3 columns, as follows: field1, field2, field3 ABC A65 ZZZ ... I want to export its content into the mapping myrecords of the index myindex (I have more mappings in this index): PUT /myindex { "mappings":…
Dinosaurius
  • 8,306
  • 19
  • 64
  • 113
0
votes
1 answer

Incorrect output result of "aggs" query

I have a query that searches the number of entries in a given datetime window (i.e. between 2017-02-17T15:00:00.000 and 2017-02-17T16:00:00.000). When I execute this query, I get the incorrect result (it's better said that the result is…
Dinosaurius
  • 8,306
  • 19
  • 64
  • 113
0
votes
1 answer

How do I set a maximum number of items to store based on a field?

I have a list of people that live in various countries. Each person has fields for their name, address, and country they live in (Italy, France, USA, etc). Is it possible to limit the number of people for each country in Elasticsearch? I know I have…
user776942
0
votes
1 answer

How to use addScriptParam during updating a document in elasticsearch 5.2?

how to use addScriptParam while updating a document in elasticsearch using java api ,i just upgraded to newer Elasticsearch version 5.2 from version 1.6.0 i am getting compile time in the following code for (n<-0 to followList.size-1) { …
swaheed
  • 3,671
  • 10
  • 42
  • 103
0
votes
1 answer

Elasticsearch not allowing brackets for fields name for scripting

I've tried to use update api. I've inserted a document which contains a list. INSERT: curl -XPOST "http://localhost:9200/t/t/1" -d' { "hobbies(first)" : ["a", "b"] }' UPDATE QUERY: curl -XPOST localhost:9200/t/t/1/_update?pretty -d '{ …
0
votes
1 answer

nested bucket Aggregation splitting terms that have spaces

I have following documents indexed in elastic search { "_index": "ecommerce", "_type": "products", "_id": "12895", "_score": 1, "_source": { "title":…
Omer Farooq
  • 3,754
  • 6
  • 31
  • 60
0
votes
1 answer

ElasticSearch - Nested Filtered Aggregations

I'm looking for a way to get the min and max value from a 2 level nested object which have been filtered. So below im trying to get the min and max price which has a currencyCode GBP. Each product can have multiple skus and each sku can have…
BenG
  • 14,826
  • 5
  • 45
  • 60
0
votes
1 answer

How to join two queries in one using elasticsearch?

Hi I want to join two queries in one in elasticsearch, but I don't know how to do it: I think I should do an aggregation but I don't know very clear how to do it. Could you help me? My ES version is 5.1.2. First filter by status and name: POST…
Joan Triay
  • 1,518
  • 6
  • 20
  • 35
0
votes
1 answer

Error when uploading data from Storm to ElasticSearch

I am using Storm 1.1.0 and Elasticsearch 5.5. I want to store my tuples from Storm in ES and for this I used the native Storm library for Elastic. My POM.xml entry: org.apache.storm
Mnemosyne
  • 1,162
  • 4
  • 13
  • 45