Yii Framework Forum: Need Dgsphinxsearch Extension Example - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need Dgsphinxsearch Extension Example Rate Topic: -----

#1 User is offline   yiiqs2 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 21-August 13

Posted 22 August 2013 - 03:10 AM

Dear yii team....

i have tired this DGSphinxSearch Extension http://www.yiiframew...dgsphinxsearch/ , how to parsing result data to grid as $dataprovider ?

$searchCriteria = new stdClass();
$searchCriteria->select = '*';
$searchCriteria->query = '@tags *'.$term.'*';
$searchCriteria->from = 'test1';
$pages = new CPagination();
$pages->pageSize =24;
$resArray = Yii::app()->search->setMatchMode(SPH_MATCH_ANY)->searchRaw($searchCriteria);
$pages->itemCount = $resArray['total'];
$searchCriteria->paginator = $pages;
$resArray = Yii::app()->search->setMatchMode(SPH_MATCH_ANY)->searchRaw($searchCriteria);

thanks .
0

#2 User is offline   yiiqs2 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 21-August 13

Posted 22 August 2013 - 03:14 AM

Hi yii team..

please give me sample , how to show result data DGSphinxSearch Extension into datagrid ??

Thank a lot.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users