title: Adding non-indexable fields to the document in lucene - Field.Index deprecated
body: <p>What is the best way to add fields to a document now that Field.Index is deprecated. </p>
  
  <p>Here is what I am doing and what most example online suggest: </p>
  
  <pre><code>doc.add(new Field("id", dbID, Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS)); 
  </code></pre>
  
  <p>What is the new recommended way to set Index properties on Fields with Field.Index going away? </p>