title: Exception couchdb-lucene
body: <p>I'm trying to index documents from couchdb but lucene is throwing the exception as follows:</p>
  
  <pre><code>WARN [mobiprofiletest] Exiting after init() raised exception.
  java.lang.IllegalArgumentException: No enum constant com.github.rnewson.couchdb.lucene.util.Analyzers.{"PERFIELD"
  at java.lang.Enum.valueOf(Enum.java:236)
  at com.github.rnewson.couchdb.lucene.util.Analyzers.valueOf(Analyzers.java:45)
  at com.github.rnewson.couchdb.lucene.util.Analyzers.getAnalyzer(Analyzers.java:176)
  at com.github.rnewson.couchdb.lucene.couchdb.View.getAnalyzer(View.java:57)
  at com.github.rnewson.couchdb.lucene.DatabaseIndexer.init(DatabaseIndexer.java:835)
  at com.github.rnewson.couchdb.lucene.DatabaseIndexer.run(DatabaseIndexer.java:479)
  at java.lang.Thread.run(Thread.java:744)
  </code></pre>
  
  <p>My design document looks like this:</p>
  
  <pre><code>{
     "_id": "_design/fulltextTest",
     "_rev": "11-6121dccd00af8f95a9e222755147ebc8",
     "language": "javascript",
     "fulltext": {
         "fulltextTest": {
             "index": "function(doc) {\n    var ret=new Document(); ret.add(doc.objType); return ret;\n}",
             "analyzer": "perfield:{field_name:\"analyzer_name\"}"
         }
     }
  }
  </code></pre>
  
  <p>when I'm starting to query the system</p>
  
  <pre><code>curl -X GET "http://localhost:5984/_fti/local/mobiprofiletest/_design/fulltextTest/fulltextTest?q=hello"
  </code></pre>
  
  <p>the exception as the above is thrown.</p>
  
  <p>When I remove </p>
  
  <pre><code> "analyzer": "perfield:{field_name:\"analyzer_name\"}"
  </code></pre>
  
  <p>it's working.  But the analyzer is copy-pasted from the manual.</p>