我是elasticsearch的新手。我需要获取查询结果的文档大小。 示例:在ES中查询文档时使用-- this is a document. (19bytes). this is also a document. (24bytes) content:{"a":"this is a document", "b":"this is also a document"}(53bytes)。我会得到上面的文件作为结果。因此,两个文档的大小都是32字节。我需要elasticsearch中的32字节作为结果。
我试图使用节点js在Elasticsearch中搜索。这是我的剧本
var elasticsearch = require('elasticsearch');
var client = elasticsearch.Client({
host: 'localhost:9200',
log: 'trace'
});
client.ping({
// ping usually has a 3000ms timeout
requestTimeout: Infinity,
// undocumented params are app
我将超过3800万个文档(文本字符串)加载到本地机器上的Elasticsearch索引中。我希望计算每个字符串的长度,并将该值作为元数据添加到索引中。
在将文档加载到Elasticsearch之前,是否应该将字符串长度计算为元数据?或者,在事实发生后,我可以用计算值更新元数据吗?
我对Elasticsearch/Kibana比较陌生,这些问题是由于以下Python实验而产生的:
数据作为字符串列表。
mylist = 'string_1','string_2',.,'string_N‘L= len(s) for s in mylist #这个计算在我
我正在尝试使用Nest到Elasticsearch索引许多文档。文档数量有限,一切都很好,但是当我将数量从1000增加到5万时,它会抛出一个错误。我不认为这是由于文件的数量-这可能是糟糕的数据。
不过,我正在努力防止不良数据的发生--我只是为有id的文档建立索引。id是从我的一个字段(upc)生成的。所以我确定每个文件都有身份证。我还确保正在序列化的类对象具有所有可空属性。
但是,没有任何信息可以帮助我解决这个错误。
我得到的错误是..。
Unable to perform request: 'POST' on any of the nodes after retrying 0
我和mongodb在elasticsearch建立的river有个问题。如果数据的大小在一百万以内,从mongodb导入数据没有问题。但是,当数据很大,有1000万或更多的数据时,河流就无法对mongodb收集的所有记录进行索引。
我在日志中看到了这个错误
org.elasticsearch.river.mongodb.Slurper$SlurperException: River out of sync with oplog.rs collection
at org.elasticsearch.river.mongodb.Slurper.isRiverStale(Slurper.ja
我正在运行一个ElasticSearch,Logstash,Filebeat和Kibana受启发的对接设置。我需要将15 GB的og日志文件加载到系统中(Filebeat>Logstash->ElasticSearch),但性能方面存在一些问题。
Filebeat/Logstash似乎为ElasticSearch输出了太多的工作。过了一段时间,我开始看到ElasticSearch中的一些错误,如下所示:
INFO f8kc50d现在为shard []设置索引:段编写无法跟上
我找到了这篇关于如何禁用合并节流:的旧文档。
PUT /_cluster/settings
{
我有一个AWS Elasticsearch域,其配置如下:
Elasticsearch version: 7.4
Availability zones: 2
Instance type (data): t2.small.elasticsearch
Number of nodes: 2
size: 7GB
the number of documents: 4000
Memory utilization often reaches 95%
当负载很高时,或者当我们对这个ES进行大量调用时,我们注意到它变得无法访问。我应该做什么改变,这样它才能承受更多的负载?
在更改部署在K8s中的Elasticsearch配置时,我遇到了麻烦。我想为我的Elasticsearch节点应用这个配置。
# Force all memory to be locked, forcing the JVM to never swap
bootstrap.mlockall: true
## Threadpool Settings ##
# Search pool
threadpool.search.type: fixed
threadpool.search.size: 20
threadpool.search.queue_size: 100
# Bulk pool
thr