【发布时间】:2021-02-19 00:54:55
【问题描述】:
我正在使用弹性搜索 7.10.1。我会存储和搜索我的博客。博客有 id、title 和 content 字段。
我想对id、title和content进行搜索,但是由于blog的内容太大,所以我想将原始内容文本保存在Elastic Search之外,例如HBase。
请问如何在ES中实现这一点?
【问题讨论】:
-
您的问题的某些部分我不清楚,例如
store the id, title but also the index in ES和save the index only and save the blog text itself in other places是什么意思? -
我添加了一个带有参数的答案,它控制索引(用于搜索的令牌)和存储(检索原始值),但如果您有后续问题,请告诉我。
-
另外,我得到的是你只想搜索
large content field,但不想存储它的原始值?? -
感谢@opster-elasticsearch-ninja 的回复。是的,我的意思是我要搜索内容,而不是将原始值存储在 ES 中。
标签: elasticsearch