title: Methods usage of org.apache.lucene.document.Field class of Lucene
body: <p>I try to understand two methods of the title class i.e Field. Here is method which contains those two methods.</p>
  
  <pre><code>protected void addAnalyzedField(Document document, String fieldName, TokenStream tokenizer,
              boolean withNorms, boolean withTermFreqAndPositions) {
          Field field = new Field(fieldName, tokenizer);
          field.setOmitNorms(!withNorms);
          field.setOmitTermFreqAndPositions(!withTermFreqAndPositions);
          document.add(field);
      }
  </code></pre>
  
  <p>I was absolutely confused for <code>field.setOmitNorms(boolean....)</code> and <code>field.setOmitTermFreqAndPositions(boolean....)</code> that what these two methods really does? I was guessing that these method are used whether the field are omitted from/to indexing process. Am I right?</p>
  
  <p>Can anybody can show up with some practical scenarios?</p>
  
  <p>Thanks.</p>