get_result method

On this page

get_result

Returns an array of resulting fragment containers.

def get_result(self):
    ...

Returns: list: A list of fragment containers.

Example

    from groupdocs.search.highlighters import FragmentHighlighter
    from groupdocs.search.options import OutputFormat

    fh = FragmentHighlighter(OutputFormat.HTML)
    index.highlight(found, fh)
    for container in fh.get_result():
        print(container.field_name, container.count)
    ```

### See Also
* class [`FragmentHighlighter`](/search/python-net/groupdocs.search.highlighters/fragmenthighlighter/)

On this page