Method AddTextField
AddTextField(Document, String, TextReader)
Adds a new un-stored TextField with
Declaration
public static TextField AddTextField(this Document document, string name, TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | field name |
TextReader | reader |
Returns
Type | Description |
---|---|
TextField | The field that was added to this Document. |
AddTextField(Document, String, String, Field.Store)
Adds a new TextField with
Declaration
public static TextField AddTextField(this Document document, string name, string value, Field.Store stored)
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | field name |
System.String | value | |
Field.Store | stored | YES if the content should also be stored |
Returns
Type | Description |
---|---|
TextField | The field that was added to this Document. |
AddTextField(Document, String, TokenStream)
Adds a new un-stored TextField with TokenStream value.
Declaration
public static TextField AddTextField(this Document document, string name, TokenStream stream)
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | field name |
TokenStream | stream | TokenStream value |
Returns
Type | Description |
---|---|
TextField | The field that was added to this Document. |