WordsFieldNames class
Leave feedback
On this page
Represents a list of field names for the faceted search.
Learn more
The WordsFieldNames type exposes the following members:
| Field | Description |
|---|---|
| APPLICATION | The application field name. |
| APPLICATION_VERSION | The application version field name. |
| TEMPLATE | The template field name. |
| TITLE | The title field name. |
| SUBJECT | The subject field name. |
| COMMENTS | The comments field name. |
| KEYWORDS | The keywords field name. |
| CONTENT_STATUS | The content status field name. |
| CATEGORY | The category field name. |
| MANAGER | The manager field name. |
| AUTHOR | The author field name. |
| LAST_AUTHOR | The last author field name. |
| COMPANY | The company field name. |
| HYPERLINK_BASE | The hyperlink base field name. |
| CREATED_TIME | The created time field name. |
| LAST_SAVED_TIME | The last saved time field name. |
| LAST_PRINTED_TIME | The last printed time field name. |
| REVISION_NUMBER | The revision number field name. |
| TOTAL_EDITING_TIME | The total editing time field name. |
from groupdocs.search import Index, SearchQuery
from groupdocs.search.options import WordsFieldNames
# Search using a text query on the COMPANY field
query = f"{WordsFieldNames.COMPANY}: Dycum"
result = index.search(query)
# Search using an object query on the COMPANY field
word_query = SearchQuery.create_word_query("Dycum")
field_query = SearchQuery.create_field_query(WordsFieldNames.COMPANY, word_query)
result2 = index.search(field_query)
Task guides that use WordsFieldNames:
- module
groupdocs.search.options
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.