YiiSolr - Use solr backed models / dataproviders with Yii

YiiSolr is a Yii extension that provides a wrapper for the pecl solr library (http://www.php.net/manual/en/book.solr.php) to make fast searching with Yii really easy. The wrapper allows the use of familiar Yii constructs such as models, data providers etc with a solr index.

Github page: https://github.com/phpnode/YiiSolr

Extension Page: http://www.yiiframework.com/extension/yii-solr/

Hi, phpnode,

I just started looking into YiiSolr extension. I understand that I can extend my own model class from ASolrDocument. Can you shed some lights on how I might be able define some attributes in my custom model (extended from ASolrDocument)? A simple code snippet would help as I am new to Yii as well.




tnx for great extension

how can i use solr text highlighting with this ext?