Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
45 views

So I know that Date Histograms can be quite tricky, so I have tested this in as easy of an environment as possible. I have an index with 1 document. This document has a date field "2025-04-25T05:...
Neifen's user avatar
  • 2,633
1 vote
0 answers
41 views

My query is taking more than a minute to execute most of the time. The index being queried also receives frequent write updates — at least 500 requests per minute. This is the query I am talking about:...
suvodipMondal's user avatar
1 vote
1 answer
118 views

I am sending count of statusCode in access log from elasticsearch using elastalert2. i am able to send and receive alert via email, but i am receiving repeating texts after the table. (the repeating ...
Minimineral's user avatar
1 vote
0 answers
56 views

We've created a new Elasticsearch index (test-events-v4) with what we believed to be a more optimized mapping for storage. However, during load testing, we've observed significantly higher 99th ...
suvodipMondal's user avatar
0 votes
0 answers
31 views

I'm using a terms aggregation in Elasticsearch and have a question about the size parameter. If I set size: 1000 in the aggregation, but the actual number of buckets returned is always much lower—say ...
gtr4's user avatar
  • 27
0 votes
1 answer
58 views

Quick info on my index and the data stores: Index contains about 1.2 billion documents spread across 14 shards --> 350 GB of data and each shard having 25-30 GB of Data. The index has a keyword ...
Aditya's user avatar
  • 43
0 votes
0 answers
30 views

I'm using an Elasticsearch date_range aggregation with weekly offsets like +4w, and I'm seeing what seems to be incorrect behavior: the range boundaries resolve to midnight on Sunday, rather than ...
Martijn van der Woud's user avatar
0 votes
0 answers
22 views

Problem: I want to have a bucket with range aggregation on win probability. But instead of having Bucket of "WON" based on win probability, have it on Constants.REVENUE_STATUS is "WON&...
Alpha's user avatar
  • 399
0 votes
0 answers
10 views

I have to fetch the values from different documents in Elasticsearch. Ex. documents like BOOKS, AUTHORS, SALES Books contains values like (id, name, pagecount, type, price, category... etc) Authors ...
skr07's user avatar
  • 725
1 vote
0 answers
43 views

We have a series of status updates for projects and the last update for a given project is the one we want to report on in several ways. For instance: ProjectID DateTime EventDescription 001 2024-12-...
Scott Lynn's user avatar
0 votes
0 answers
28 views

I am currently using Elasticsearch 8.15. I am in a bit of a conundrum trying to achieve outer and inner bucket sorting for strings (sorted asc or desc alphabetically). My index, hazard, looks a little ...
Josh Farwig's user avatar
0 votes
1 answer
47 views

I've a question to setting my index in elastic Search. My index has 3 fields: desig, desigSec and idRef. In my UI application, i've a single input to search in theses 3 fields. So i've defined this ...
Etienne SEMON's user avatar
0 votes
1 answer
249 views

I am working with an OpenSearch index where each document represents a dispute and contains a nested array of transactions. My goal is to compute the sum of a specific field in the nested transactions ...
Shahriar's user avatar
  • 13.9k
0 votes
1 answer
176 views

Expectation: I need all users which are not successful in their last attempt. Actual/My Approach: I applied aggregation by userId and top_hits with size of 1 document which is sorted in descending ...
Techi's user avatar
  • 1
1 vote
1 answer
65 views

I have data as follows: { "_index": "index", "_id": "...", "_score": 4.512486, "_source": { "...
GustaMan9000's user avatar
0 votes
1 answer
238 views

Help Needed: Perform a Nested Aggregation with Spring Data Elasticsearch 5.2.6 and Elasticsearch-rest-client 8.10 I'm working on a project using Elasticsearch with Spring Data Elasticsearch 5.2.6, and ...
John Student's user avatar
1 vote
1 answer
112 views

I'm trying to get a total count of my aggregations based on group_by_asset's field:summary.severity. Below is my es query: { "runtime_mappings": { // Your runtime mappings here }, &...
GustaMan9000's user avatar
0 votes
1 answer
39 views

I got the error message Aggregation names can contain any character except '[', ']', and '>' from Elasticsearch when a ">" somehow ended up in an aggregation name. Is that documented ...
js.'s user avatar
  • 1,897
0 votes
1 answer
81 views

I use ReactiveElasticsearchClient to query composite aggregation but not return all result. I mean I add all docCount value in return message manually, the result is not same as the document total ...
Jason's user avatar
  • 55
0 votes
1 answer
208 views

I have tried to call a Composite Aggregation in ES but return only few results, clearly, it only do the composite aggregation on 10 records. Same ask as title: How Elastic Search Composite Aggregation ...
Jason's user avatar
  • 55
1 vote
2 answers
143 views

I know Elastic Search could do aggregation, but you know DB aggregation is not totally same as ES world. Like we do below in DB: select a, b, c, d, sum(e), sum(f) from some_table nolock group by a, b, ...
Jason's user avatar
  • 55
0 votes
1 answer
79 views

Consider below is the 2 documents got after aggregation , now i need to sort on the documents. Document 1: { 'startDate' :'2023-02-01', 'endDate' : '2022-02-01' } Documet 2 : { 'endDate' : '2024-02-...
Subburaj's user avatar
  • 5,212
0 votes
1 answer
72 views

I am trying to create a elasticsearch watcher which will get some aggregation in last 20 mins with the following conditions: type is equal to fax Plan is equal to plan_a And the aggregations are: ...
steven.ang's user avatar
1 vote
1 answer
275 views

In Elasticsearch facing an issue in an aggregation query. The issue is as follow, I am asking for two different aggs in the same query. The first is “show me the doc counts for subject.label for these ...
randomDev's user avatar
  • 367
0 votes
1 answer
51 views

Assuming it's the mapping of my index below, i want to create an elastic aggregation query to count the number of documents for each element of test array property Mapping "mappings": { ...
Aymard Moyo Kemgne's user avatar
0 votes
1 answer
60 views

I am trying to understand how to dynamically build the aggregations with nested and regular filters for regular or nested fields, so, my final query looks like code below and would be fine if it can ...
Ivan Marynych's user avatar
0 votes
1 answer
416 views

Version Opensearch 2.13 Description I am exploring the possibility of generating facets from my index in Opensearch using bucket aggregations and the search API. I am trying to find how to generate ...
fyts's user avatar
  • 503
0 votes
1 answer
39 views

I just simplified my query as this GET /index-name/_search { "from": 0, "query": { "bool": { "filter": [ { "terms": { ...
user2506233's user avatar
0 votes
1 answer
1k views

When creating aggregation in new API Java client I came into a problem. this is how I create my request. some of my fieldnames are of type string. some can be long or double etc Map<String, ...
Ohad's user avatar
  • 1,641
0 votes
1 answer
42 views

I want to do aggregation on the list field in elasticsearch. But while doing same, as this is list field if there is other value along with searched value inside the list then aggregation will also ...
Nilesh Tadha's user avatar
0 votes
2 answers
243 views

ES version - 7.17.7 I've an index for which I' running an aggregation to get all field matching certain regex. This should be case-insensitive i.e. new york should match New York and NEW YORK and New ...
devilhector's user avatar
0 votes
1 answer
65 views

I am working with Elastic Search Version 6.8.22 and have an index where I have 2 columns: Column A and Column B. I want to filter out all records where values for Column A is equal to Column B. How ...
Aryan Behal's user avatar
0 votes
1 answer
65 views

I have an elasticsearch query that I am using to group by results by a text field called category in my documents. One more key in my _docs is called id of type integer. Now, there are two ...
Sagnik Mukherjee's user avatar
0 votes
1 answer
106 views

I am using AWS OpenSearch database which is a fork of Elasticsearch. My use case is as follows: A product contains an ID, a title, a brand, a productGroupId Query: Given a string, find all products ...
nxh's user avatar
  • 1,089
1 vote
0 answers
43 views

I have an Elasticsearch index with two types of records: one for product data (including item_code, color, size, etc.), and another for sales data containing the item_code and related sales ...
md-shah's user avatar
  • 405
0 votes
0 answers
164 views

In Elasticsearch 7.16, for some date fields the Min/Max aggregation returned a value as 'format_specifiedin*_*the_aggregation'+'epochtimeinmillis', however for some other date fields it is returning ...
Bijay's user avatar
  • 11
1 vote
0 answers
127 views

currently we are in the process of migrating to spring boot 3 ,and since there aren't many migration guides and examples with alternatives to specific queries and aggregations: What's the alternative ...
predator's user avatar
0 votes
1 answer
44 views

i've problems to correctly filter my data based on previously aggregated result. I've the following mapping for my elasticsearch data: "properties": { "day": { "type&...
Carsten's user avatar
0 votes
0 answers
24 views

I'm trying to create aggregations for certain matches. GET /test_index_search { "aggregations": { "fooAggregation": { "filters": { "filters":...
darth jemico's user avatar
0 votes
1 answer
54 views

I have an Elasticsearch setup with multiple indexes (let's say a, b, c, d, e, and f). My goal is to retrieve a total of 20 documents, with exactly 4 documents from each index. However, if any index ...
Ajay Makwana's user avatar
  • 2,392
0 votes
0 answers
76 views

We are trying to execute a query to get variable_width_histogram aggregation results but getting an error 'Trying to create too many buckets'. However bucket size in query is 10. When trying to get ...
Chandra Shekhar's user avatar
-1 votes
1 answer
628 views

My data objects contain 3 string fields: section, category and username. I want to do grouping by category and username and find out the top 20 "section" and their count in the grouping i ...
Kyon's user avatar
  • 26
0 votes
1 answer
503 views

I am trying to sort data by top_hits parameter in search query Elasticsearch but somehow it didn't affect anything. can anyone please help me with this one? so I've tried using sort as some people ...
Lidya's user avatar
  • 7
0 votes
1 answer
391 views

I am trying to sort data by top_hits parameter in search query Elasticsearch but somehow it didn't affect anything. can anyone please help me with this one? so I've tried using sort as some people ...
Lidya's user avatar
  • 7
0 votes
1 answer
227 views

Index Mapping(In Kibana) GET /new_index/_mapping I already reset the "ignore_above" to the larger size, but it seems not working for my index when I query for searching. I heard from other ...
Shi Eng Ng's user avatar
0 votes
1 answer
48 views

can anyone please help me with this complicated sum with elasticsearch since I've been searching and trying for days, yet seems no one have the same problem as mine. let say I have this sample data : [...
Lidya's user avatar
  • 7
0 votes
1 answer
153 views

Am using below elastic search query and getting the response, but how to limit the response size of each itemDetails.itemId specified in the query. elastic search version: 8.7.1 sample elatic search ...
Amulya M's user avatar
  • 109
0 votes
1 answer
115 views

we want to sort the data using few fileds before applying terms aggregation, tried using terms and sort sub aggregation using which sort is working however terms aggregation is giving duplicate ...
Amulya M's user avatar
  • 109
0 votes
1 answer
44 views

I need to use elastic search in nestjs to query to retrieve some result from index. Requirements: I need all results including access_level: "Restricted" and access_level: "...
Shi Eng Ng's user avatar
0 votes
1 answer
238 views

When I ran the below command C:\Users\ASDF>elasticdump --input=http://username:pwd@domainname/indexnameone/ --output=http://username:pwd@domainnameone/indexnametwo --type=data The error is ...
Ajay Takur's user avatar
  • 6,224

1
2 3 4 5
23