Function getSnippet

Takes a piece of text and a text query and returns a snippet of the text that best matches the query.

  • Parameters

    Returns string