private static Document MakeDocument(string docText) { Document doc = new Document(); FieldType customType = new FieldType(TextField.TYPE_NOT_STORED); customType.OmitNorms = true; Field f = new Field("f", docText, customType); doc.Add(f); return doc; }