Ive got the following code.
$params = array('defType' => 'dismax', 'qf' => 'threads.title posts.body tags.name', 'hl' => 'true');
$results = $solr->search($query, $offset, $limit, $params);
So the keywords will be highlighted. What i dont know how to do is pulling the data out from $results. How do I get a documents field values and then show the body and hightlight it like google/SO search? Im using solr client php but i find it difficult to understand how to use it. There is so few example codes.
could someone guide me a little...