get_result method

On this page

get_result

Gets the resulting string.

def get_result(self):
    ...

Returns: str: The resulting string.

Example

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)
text = adapter.get_result()
print(text[:200])

See Also

On this page