How to create a TEXT index in CouchDB 2.0?

I am reading this article https://cloudant.com/blog/mango-json-vs-text-indexes and I would like to create a TEXT index in my CouchDB

On the Fauxton → Mango Indexes page, I posted

{
  "index": {
    "fields": [
      {
        "name": "id_str",
        "type": "number"
      }
    ]
  },
  "name": "doc_id",
  "type": "text"
}

... but received error 503 with the following message:

{"error":"required index service unavailable","reason":"text"}

I was unable to find any related information in my documentation and I feel really lost right now.

So:

  • How to create a TEXT index in CouchDB?
  • Where can I find a decent introduction to indexes in CouchDB?

Please help, thanks.

+4
source share
1 answer

, Couchdb 2.0 , . dreyfus, cloudant.

couchdb 2.0+ Dreyfus ( Clouseau) . ( , couchdb dreyfus 2017-04-22.)

+2

Source: https://habr.com/ru/post/1675314/


All Articles