Answer the question
In order to leave comments, you need to log in
How to find out in which field a match was found in SphinxsearchBundle?
The code is something like this:
$searchd = $this->get('iakumai.sphinxsearch.search');
$query_word = $r->get('search');
$matches = $searchd->searchEx($query_word, array('hotelsIndex'));
<div class="text-block">
{{ content|sphinx_highlight('IndexName', 'query word', {limit:100}) }}
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question