/// <summary>Constructs a Reader-valued Field that is tokenized and indexed, but is /// not stored in the index verbatim. Useful for longer text fields, like /// "body". /// </summary> public static Field Text(System.String name, System.IO.TextReader value_Renamed, bool storeTermVector) { Field f = new Field(name, value_Renamed); f.storeTermVector = storeTermVector; return f; }
/// <summary> <p>Adds a Field to a document. Several fields may be added with /// the same name. In this case, if the fields are indexed, their text is /// treated as though appended for the purposes of search.</p> /// <p> Note that add like the removeField(s) methods only makes sense /// prior to adding a document to an index. These methods cannot /// be used to change the content of an existing index! In order to achieve this, /// a document has to be deleted from an index and a new changed version of that /// document has to be added.</p> /// </summary> public void Add(Field field) { fields.Add(field); }