如何在CouchDB 2.0中创建TEXT索引? [英] How to create a TEXT index in CouchDB 2.0?
问题描述
我正在阅读本文 https://cloudant.com/blog/ mango-json-vs-text-indexes ,我想在我的CouchDB中创建一个TEXT索引
I'm reading this article https://cloudant.com/blog/mango-json-vs-text-indexes and I would like to create a TEXT index in my CouchDB
在Fauxton-> Mango Indexes页面中,我已发布
In the Fauxton -> Mango Indexes page, I posted
{
"index": {
"fields": [
{
"name": "id_str",
"type": "number"
}
]
},
"name": "doc_id",
"type": "text"
}
...但是503错误并显示以下消息:
...but got a 503 error with the following message:
{"error":"required index service unavailable","reason":"text"}
我什至无法在他们的文档,我现在真的迷失了。
I wasn't able to find even any related info in their documentation and I feel really lost now.
所以:
- 如何在CouchDB中创建TEXT索引?
- 在哪里可以找到
请帮忙,谢谢。
推荐答案
此错误与未知的索引类型不同,因为Couchdb 2.0具有文本索引的存根,但没有直接实现它们。这些存根依赖于cloudant提供的dreyfus文本索引模块。
This error is different than an unknown index type since Couchdb 2.0 has stubs for text indexes, but doesn't directly implement them. These stubs depend on a dreyfus text index module provided by cloudant.
可以找到有关使用Dreyfus(及其Clouseau依赖项)配置和重新编译Couchdb 2.0+的指南。 href = https://developer.ibm.com/dwblog/2015/text-search-apache-couchdb/ rel = nofollow noreferrer>此处。 (我验证了这些说明自2017年4月22日起适用于最新的Sofadb和dreyfus主分支。)
A guide to configuring and recompiling couchdb 2.0+ with Dreyfus (and its Clouseau dependency) can be found here. (I verified that these instructions work with the latest couchdb and dreyfus master branches as of 2017-04-22.)
这篇关于如何在CouchDB 2.0中创建TEXT索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!