__init__ constructor

On this page

init

Initializes a new DocumentField.

def __init__(self, name, value):
    ...
Parameter Type Description
name str The field name.
value str The field value.

Example

from groupdocs.search.common import DocumentField

# Create a field containing the file name
field = DocumentField("FileName", "/path/to/file.txt")

See Also

On this page