CommonFieldNames class

CommonFieldNames class

Represents a list of field names for the faceted search.

Learn more: https://docs.groupdocs.com/search/python-net/faceted-search/

The CommonFieldNames type exposes the following members:

Fields

Field Description
CONTENT The content field name.
FILE_NAME The file name field name.
FORMAT_FAMILY The format family field name.
CREATION_DATE The creation date field name.
MODIFICATION_DATE The modification date field name.
EMBEDDED_IMAGE_OCR The embedded image OCR field name.

Example

from groupdocs.search import SearchQuery
from groupdocs.search.options import CommonFieldNames

word_query = SearchQuery.create_word_query("Einstein")
field_query = SearchQuery.create_field_query(CommonFieldNames.CONTENT, word_query)
result = index.search(field_query)

Guides

Task guides that use CommonFieldNames:

See Also