Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
603 views

I am trying to iterate through the aggregation bucket results. The aggregation response is : "aggregations" : { "agg1" : { "doc_count_error_upper_bound" : 0, ...
Bhavya's user avatar
  • 16.2k
2 votes
1 answer
1k views

I'm trying to search with an ElasticSearch query documents that have exactly a certain value in a text field. I know that with a term query it could be possible if it were a keyword field. ...
Paolo Magnani's user avatar
0 votes
1 answer
2k views

I am trying to add conditions if field exist, then sort according to it otherwise use another field. Since one of either will exist. Here is my query: GET /my_index/_search { "query": { ...
iBug's user avatar
  • 2,370
0 votes
1 answer
375 views

I want to carry out a customized aggregation through mapping a certain field in ES doc. I try to leverage terms aggregation script. There're hundreds of mappings so that I have to put all of them into ...
cosimoth's user avatar
  • 169
2 votes
2 answers
1k views

I have documents in the elasticsearch and can't understand how to apply search script that should return documents if any attachment doesn't contain uuid or uuid is null. Version of elastic 5.2. ...
Stepan Poperechnyi's user avatar
0 votes
0 answers
340 views

I have around 17 million documents(Its gradually increasing) in the elastic-search index, Mapping of one of the property labels that is used for aggregation is { "mappings":{ "...
vicky shrestha's user avatar
1 vote
2 answers
2k views

Could someone explain what's wrong with ES java api? I'm making query to update by script with ES api and it works perfectly (below) POST user/ut/520411_5752/_update { "script": { &...
viq's user avatar
  • 417
1 vote
1 answer
287 views

I have a 60-bit (minutes in an hour) field that I would like to aggregate with a bit-wise or operator so that the end result is a bit set if any of the contributing values had that bit set. The ...
SEngstrom's user avatar
  • 321
0 votes
1 answer
275 views

Can anyone help me to construct below query. I get below error, when running this query. ES version is 7.9.0; In my model there is a field "repliedBy" which is an array field. It's value is ...
Rufat Gulabli's user avatar
0 votes
1 answer
333 views

Scenario: have a document A on ElasticSearch and I want concatenate on this document some fields existing on document B. Document A: { "id": 121423, "name": "Sample ...
Augusto's user avatar
  • 4,283
1 vote
1 answer
1k views

My index has a date field formatted as 2020-01-04T05:00:06.870000Z. In the ES query response, I need the date in the form yyyyMMdd, so 20200104. I tried using scripted query and extracted the day, ...
user379151's user avatar
  • 1,409
1 vote
0 answers
67 views

I have a couple of questions about scripting in elasticsearch, I hope someone can help me. I need to add several parameters from the document to _score and sort by the total value. First, I will ...
Евгений Латынин's user avatar
0 votes
1 answer
200 views

enter image description here Now I have a document like the picture. The Structure of this document is "contents" field with many random key field(Notice that there isn't a fixed format for ...
Selyx's user avatar
  • 13