title: How to index date field in lucene
body: <p>I am new to lucene. I have to index date field.
  i am using Following <code>IndexWriter</code> constructor in lucene 3.0.0.</p>
  
  <pre><code>IndexWriter writer = new IndexWriter(FSDirectory.open(indexDir), new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.UNLIMITED)
  </code></pre>
  
  <p>my point is:
  Why it needs a analyzer when date fields are not analyzed,while indexing I used <code>Field.Index.NOT_ANALYZED</code>.</p>