title: How to create a TEXT index in CouchDB 2.0?
body: <p>I'm reading this article <a href="https://cloudant.com/blog/mango-json-vs-text-indexes" rel="noreferrer">https://cloudant.com/blog/mango-json-vs-text-indexes</a> and I would like to create a TEXT index in my CouchDB</p>
  
  <p>In the Fauxton -> Mango Indexes page, I posted</p>
  
  <pre><code>{
    "index": {
      "fields": [
        {
          "name": "id_str",
          "type": "number"
        }
      ]
    },
    "name": "doc_id",
    "type": "text"
  }
  </code></pre>
  
  <p>...but got a 503 error with the following message:</p>
  
  <pre><code>{"error":"required index service unavailable","reason":"text"}
  </code></pre>
  
  <p>I wasn't able to find even any related info in their <a href="http://docs.couchdb.org/en/2.0.0/" rel="noreferrer">documentation</a> and I feel really lost now.</p>
  
  <p>So:</p>
  
  <ol>
  <li>How to create a TEXT index in CouchDB?</li>
  <li>Where can I find a decent introduction to indexes in CouchDB?</li>
  </ol>
  
  <p>Please help, thanks.</p>