Lucene.Net.Index.TestIndexReader.AddDocumentWithFields C# (CSharp) Method

AddDocumentWithFields() private method

private AddDocumentWithFields ( IndexWriter writer ) : void
writer IndexWriter
return void
		private void  AddDocumentWithFields(IndexWriter writer)
		{
			Document doc = new Document();
			doc.Add(new Field("keyword", "test1", Field.Store.YES, Field.Index.NOT_ANALYZED));
			doc.Add(new Field("text", "test1", Field.Store.YES, Field.Index.ANALYZED));
			doc.Add(new Field("unindexed", "test1", Field.Store.YES, Field.Index.NO));
			doc.Add(new Field("unstored", "test1", Field.Store.NO, Field.Index.ANALYZED));
			writer.AddDocument(doc);
		}