lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Faire Mii <faire....@gmail.com>
Subject get field values from solr and highlight text?
Date Sat, 19 Dec 2009 20:20:19 GMT
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...
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message