Hi, i have one doubt that is how to include text fields in aggregate query in elasticsearch version 1
@rajrana12062 жыл бұрын
how to index at different field?
@noman13bd Жыл бұрын
hey man thanks for this nice discussion. I have a problem with pipeline aggregation. I want to use global number of total docs in bucket script. But getting the error "No aggregation found for path [global_total_docs>total_docs]" can you please help me to identify the right aggregation path? here is my query ```GET bl_log_data/_search { "size": 0, "aggs": { "global_total_docs": { "global": {}, "aggs": { "total_docs": { "value_count": { "field": "_index" } } } }, "group_by_keyword": { "terms": { "field": "response_code.keyword" }, "aggs": { "percentage": { "bucket_script": { "buckets_path": { "doc_count": "_count", "total_docs": "global_total_docs>total_docs" }, "script": "params.doc_count / params.total_docs * 100" } } } } } }```
@kaushalparmar43002 жыл бұрын
How to store the output of an aggreagtion into an index ?
@SoumilShah2 жыл бұрын
Reindex api or pipelines
@iuxdev2 жыл бұрын
How we can limit the documents in scripted_metric.? ie we have 100 documents matching the query but i only want to run the aggregation on first 10 records.
@rishi-kanaujia3 жыл бұрын
Best video on elastic search...
@werthersoriginal2 жыл бұрын
Great work! I've been using this pkg for a little bit and it's quick. Is "aggreation" a typo for "aggregation", in the pkg?
@SoumilShah2 жыл бұрын
Sure can you submit merge request on git I can review your changes and merge to main branch
@kalahastikathalu16352 жыл бұрын
Hi, I am facing circuit_brraker exception when I run my aggregation query.Can you please help me to understand when we will get this error?
@SoumilShah2 жыл бұрын
Yes there are few things you can go put size 0 when you do agg that should help you There are further ways to improve agg as well opster.com/guides/elasticsearch/how-tos/elasticsearch-aggregation-performance/
@kalahastikathalu16352 жыл бұрын
@@SoumilShah Thanks for ur rly. I tried that also by putting size zero but my aggregation query itself is giving unstable response each time when I run(records count is varying) and it is simple aggregation query get the records count based on status (pending,approved,expired,deleted) and also it is happening for only one particular index that too after my changes and the changes are like I added new field to existing index but aggregation is not happening on that new field and moreover I made changes on one test environment (qa-sit)in that environment only we are seeing this error other environments (non-prof,uat) are fine for same index.I tried to remove data and recreated index and added new data into that index but still same issue. And index is having only around 1700 records but in error circuit-break-exception data is too large like that.Not able to identify the exact rootcause.
@kalahastikathalu16352 жыл бұрын
Hey my issue got resolved after set replica count to 2 earlier it was 0. But now we need to know why we are getting this error if replica is 0 with very less records (1500)?