I use the scripts aggressively for scoring and aggregation. One thing i cant figure out is how to emit logs from the script. I tried console.log , but then it didnt work out. Kindly let me know , how i can emit logs from my groovy script.
相关问题
- not found value index error on elastic4s
- Issues when replicating from couchbase bucket to e
- Is there a way to sort an elasticsearch _score by
- failed to send join request to master
- Multi match boolean boost
相关文章
- es 单字段多分词器时,textField.keyword无法高亮
- ElasticSearch: How to search for a value in any fi
- What are the disadvantages of ElasticSearch Doc Va
- NoNodeAvailableException[None of the configured no
- Types cannot be provided in put mapping requests,
- Elasticsearch cluster 'master_not_discovered_e
- Does AWS RDS encryption with KMS affect performanc
- Locality-sensitive hashing - Elasticsearch
This can be done by accessing global Elasticsearch logger instance. Its groovy example is given below You should be able to do something similar for javascript and other scripting languages too.
So when you do a terms aggregation , you can do something like below -
Some good folks from Elasticsearch has given a good documentation on it against a issue.
LINK - https://github.com/elasticsearch/elasticsearch/issues/9068
I have also given some examples here.