Welcome Guest, Not a member yet? Register   Sign In
[Help] How to formatting zend lucene search result into pagination??
#1

[eluser]Unknown[/eluser]
Hey everyone i have a problem integrating zend lucene search result with pagination in codeigniter. I using zend lucene for search system and it will store all data into an indexing files. So i didnt use database. The problem is. Zend lucene doesnt have "lIMIT" like "Select * table LIMIT '10', '50'" in SQL.

here the code for search system :


$index = Zend_Search_Lucene::open(DOCROOT . 'data/index'); //opening index
$hits['post']= $index->find($query); //for getting serach result


then the result will be stored in $hits['post']
that contains multidimension array (id, post, name, etc)

It havent LIMIT like SQL, so anyone any Idea??


Thank u
#2

[eluser]CroNiX[/eluser]
http://framework.zend.com/manual/1.10/en...ation.html




Theme © iAndrew 2016 - Forum software by © MyBB