title: Retrieving the textual context of a Sphinx search match
body: <p>As Sphinx only returns ID's, it's hard to tell where the actual match occured in a matching piece of text. It ofcourse, also depends on the search mode: maybe there are more matches in a document <code>SPH_MATCH_ANY</code> or there's only one <code>SPH_MATCH_PHRASE</code>. </p>
  
  <p>When the matching mode is set to <code>SPH_MATCH_PHRASE</code>, it is kind of easy to retrieve the textual context of the actual match, by for example finding the <code>strpos("Exact phrase", $string)</code>. How is it possible to achieve the same thing with <code>SPH_MATCH_ANY</code> or <code>SPH_MATCH_ALL</code>? Is there a way that Sphinx can return a <code>strpos</code> (pointer) to the most relevant match or just the first one?</p>