我必须使用Elasticsearch实现全文搜索,在持久层使用MongoDB,应用程序在Node.js上。为此,我使用了elmongo库。
根据,我必须调用
Cat.sync(function (err) {
// all cats are now searchable in elasticsearch
})
以便将我现有的数据添加到搜索索引中。
问题是:
什么时候我必须调用这个方法,这样如果我添加了更多的"Cats“,我仍然可以在Elasticsearch搜索索引中找到它们?你能给我解释一下如何将数据添加到搜索索引中吗?
谢谢。
经过大量更新后,Shard无法恢复。我能做些什么吗?
这是等待碎片恢复的问题吗?我在受影响的节点上一遍又一遍地看到这一点,而该节点恰好是主节点:
[IndexShardGatewayRecoveryException[[global][2] failed to recover shard]; nested:
ElasticsearchIllegalArgumentException[No version type match [6]]; ]]
[2014-06-06 12:32:43,249][WARN ][indices.cluster] [Centurion] [global][5] fa
我正在尝试索引堆栈溢出数据。首先,我创建一个具有指定映射和设置的索引。 @classmethod
def create_index_with_set_map(cls, name, elasticsearch):
"""
create index with default mappings and settings(and analyzer).
Argument:
name -- The name of the index.
elasticsearch -- Elasticsearch insta
elasticsearch中是否有阻止索引搜索的选项?
Ex: i have 5 index and i block 4th index from search and elasticsearch search only from 1, 2, 3 and 5 index.
在elasticsearch中可以阻止索引搜索吗?
在索引文档时,我面临着跨所有节点的elasticsearch集群中的高IO等待。从网上的一些帖子中,我了解到了elasticsearch中的热点线程。我收集了热线程API的输出。请参见以下输出:
55.0% (275.1ms out of 500ms) cpu usage by thread 'elasticsearch[01][refresh][T#1]'
7/10 snapshots sharing following 24 elements
java.lang.Object.wait(Native Method)
java.lang.
我刚刚下载了ElasticSearch、LogStash和KibanaVersion5.3(直到几个小时前我还在使用5.2左右)。我在每个麋鹿上安装了XPack。从那以后我就不能再用洛什了。
LogStash错误:
./logstash -f /log_to_elastic53.conf
...
[2017-04-06T19:25:55,704][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>
代码在elasticsearch.js文件中的应用
function es() {
throw new Error('Looks like you are expecting the previous "elasticsearch" module. ' +
'It is now the "es" module. To create a client with this module use ' +
'`new es.Client(params)`.');
}
es.Client = requi