Questions tagged [elasticsearch-7]

Use this tag for version specific questions about Elasticsearch 7.0 - the distributed, RESTful search and analytics engine. When using this tag also include the more generic [elasticsearch] tag where possible.

314 questions
1
vote
0 answers

ElasticSearch 6.8 Java library: when sending an UpdateRequest overwrite a field of type Object instead of merging

We are using the Java library for Elastic Search version 6.8. We are trying to send an UpdateRequest to do partial updates to our fields. A couple of our fields are Objects (-> maps: key, value) When sending a request for example: var…
1
vote
0 answers

Elasticsearch bucket_selector to include parent aggregation size

I found this query in elasticsearch docs link to docs GET /seats/_search { "size": 0, "aggs": { "theatres": { "terms": { "field": "theatre", "size": 10 }, "aggs": { "max_cost": { "max": { …
Akash Salunkhe
  • 194
  • 2
  • 13
1
vote
2 answers

Elasticsearch terms query size to include some terms

Elasticsearch docs shows below example for size and includes GET /_search { "aggs": { "JapaneseCars": { "terms": { "field": "make", "size": 10 "include": [ "mazda", "honda" ] } } } } But here…
Akash Salunkhe
  • 194
  • 2
  • 13
1
vote
0 answers

Return the search tokens along with the search result

Is it possible to return the search tokens along with the search results? Not highlighted search results, but the tokens in a separate array field. Docs do not mention this option. I know I can make a separate analyze request, but that's not what I…
Evgeni Nabokov
  • 2,421
  • 2
  • 32
  • 36
1
vote
2 answers

Elasticsearch crashing

We're having issues with Elasticsearch crashing from time to time. It also sometimes spikes up RAM + CPU and server becomes unresponsive. We have left most of the settings as is, but had to add more RAM to JVM heap (48GB) to get it not to crash…
Kalvin Klien
  • 911
  • 1
  • 12
  • 32
1
vote
1 answer

ElasticSearch adjacent words for nested queries over multiple nested fields

To search for adjacent words for nested (or not) queries, the solution is the following (see here for the answer): { "query": { "bool": { "must": [ { "nested": { "path": "metadata", "query": { …
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
1
vote
1 answer

ES 7.14 show search profile debugging tool

I'm using ES 7.14 / Kibana 7.10, my query is the following: var query = { "index": "my_index", "size": 10 }; var body = { "query": { "bool": { "must": [ { "query_string": { …
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
1
vote
1 answer

ElasticSeach score field is null when sorting

I have added a sort conditions field to my ElasticSearch query. I'm using ES 7.14 / Kibana 7.10, with a "fallback" to the document's score. According to the docs I have to use the reserved key _score: My sort array field look like [ …
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
1
vote
1 answer

ElasticSearch [field_sort] unknown field [format]

I'm adding a sort conditions field to my ElasticSearch query. I'm using ES 7.14 / Kibana 7.10. My sort array field look like [ { "update_date": { "order": "desc", "missing" : "_last", "unmapped_type" : "long", "format":…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
1
vote
1 answer

How to use the NEST ".net client" for Elasticsearch to paginate through all the records?

I am trying to use the C# .net client for Elasticsearch NEST to paginate through all the available records. I want to get a list of all ids from the server 5000 at a time. So the very first request I get 0-5000, next request 5001-10000, then…
Jay
  • 1,168
  • 13
  • 41
1
vote
1 answer

Case insensitive exact match in ElasticSearch

I need the ability to query an ElasticSearch index to see if there are any documents that already have a specific value for the field shown below: "name" : { "type" : "text", "fields" : { "raw" : { "type" : "keyword" …
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
1
vote
1 answer

ElasticSearch term query returns 0 hits although document exists

I have an ES domain, from which when I query with the document's emailId field, I'm not getting any hits. However this field and value exist for a document. For the same document, querying by employeeId works. Below is how my index mapping looks…
1
vote
1 answer

has_child and has_parent not returning results

I went through the following links before pasting the ques Elasticsearch has_child returning no results ElasticSearch 7.3 has_parent/has_child don't return any hits ES documentation I created a simple mapping with text_doc as the parent and flag_doc…
A_G
  • 2,260
  • 3
  • 23
  • 56
1
vote
1 answer

Elastic Search Query with multiple conditions

I am new to elastic search and I need help for below scenario: I have two fields tag and author. I want to search the data with condition (tag="1" and (author="A" or author="B")) or (tag="2" and (author="A" or author="C")) or tag="3" Please give a…
wo de
  • 11
  • 1
1
vote
2 answers

How to do some pre-processing of custom logs before indexing in elastic search?

I am using "Custom Logs Integration" from Fleet. I have done following things and I can see the logs as well in Kibana. I have created Custom Policy and added "Custom Logs Integration" to that policy. Assigned my elastic agent (one of my local…