get_document_text method
Leave feedback
On this page
Generates the text of an indexed document and passes it through an output adapter.
def get_document_text(self, document_info, adapter):
...
| Parameter | Type | Description |
|---|---|---|
| document_info | NetworkDocumentInfo |
The indexed document info. |
| adapter | OutputAdapter |
The output adapter. |
from groupdocs.search import Index
from groupdocs.search.common import StringOutputAdapter
from groupdocs.search.options import OutputFormat
index = Index("./index")
index.add("./documents")
doc = index.get_indexed_documents()[0]
adapter = StringOutputAdapter(OutputFormat.PLAIN_TEXT)
index.get_document_text(doc, adapter)
print(adapter.get_result()[:200])
These names call get_document_text too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
get_document_text_network_document_info |
get_document_text_network_document_info(document_info, adapter) |
- class
Searcher
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.