- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在本地环境中工作时不确定 elasticsearch
我收到这个奇怪的错误,任何帮助我都会很感激。谢谢
Elasticsearch::Transport::Transport::Errors::NotFound ([404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"invoices","index":"invoices"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"invoices","index":"invoices"},"status":404})
最佳答案
通过在 rails console
运行这些命令来索引 ES 修复了问题:-
Model.__elasticsearch__.create_index!
Model.__elasticsearch__.create_index! force: true
Model.import force: true
关于ruby-on-rails - Elasticsearch::Transport::Transport::Errors::NotFound ([404] {"error": {"root_cause":[ {"type":"index_not_found_exception",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49810704/
如您所见,在图像 #1 中,我在触发 GET 请求时得到了有效的 ES 响应。但是,如果我尝试通过我创建的 NGINX 反向代理执行相同的操作并点击 myip/elasticsearch ,它返回给我
我使用 ELK stack 来分析我的日志文件。我上周进行了测试,一切正常。 今天,我进行了测试,但是当我输入“http://localhost:9200/iot_log/_count”时出现了这个错
我正在这个问题中粘贴错误,这是事实:没有Sugestao索引。专有名称为sugestao(记下S与s)。 据我所知,我无法创建大写索引。到现在为止还挺好。问题是:由于我的模型是大写的Java类,如何“
我正在尝试使用python从elastisearch索引中检索文档。其代码如下: def get_data_es(): ES_HOST = { "host": "loc
在本地环境中工作时不确定 elasticsearch我收到这个奇怪的错误,任何帮助我都会很感激。谢谢 Elasticsearch::Transport::Transport::Errors::NotF
我是一名优秀的程序员,十分优秀!