StringOutputAdapter class
Leave feedback
On this page
Represents an output adapter that collects output as a str.
Learn more
- Output adapters: https://docs.groupdocs.com/search/python-net/output-adapters/
The StringOutputAdapter type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the StringOutputAdapter class. |
| Method | Description |
|---|---|
| get_result | Gets the resulting string. |
| Property | Description |
|---|---|
| output_format | The output format. (inherited from ResultBuilderFactory) |
from groupdocs.search import Index
from groupdocs.search.common import StringOutputAdapter
from groupdocs.search.options import OutputFormat
index = Index("./index")
index.add("./documents")
documents = index.get_indexed_documents()
adapter = StringOutputAdapter(OutputFormat.PLAIN_TEXT)
index.get_document_text(documents[0], adapter)
print(adapter.get_result()[:200])
- module
groupdocs.search.common
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.