Hello,

I have implemented Zend_Search_Lucene successfully with my application. The
application performs indexing and the search results are returned (so far
satisfactorily). The only problem is paginating the result set. 

I understand that Lucene must search the entire index to 'score' the results
and order into a best first order etc. So currently I perform the search
once and build an array of results which I am passing to Zend_Paginate to
display on a per page basis... OK?

Is there a better option? I thought of caching the result but this would be
resource intensive and counter productive as there would rarely be the same
search twice.

Also I am performing my search based on the query sent via a POST value from
my search form... This value is collected by my Index Controller and the
find() method is called on Lucene. The index controller searches more than
one Lucene index so I wish to display only the first few results from each
index with a link to "more" that would then show the entire index results
via pagination. 

For example "showing results 1-10 in products" and "showing results 1-10 in
articles". If the user was to click the "show all results in products" how
would I pass the search results from the Index Controller to the Products
Controller (which would display only results of the product index)? Via GET? 
It will only be a link in the view to the Products controller so the POST
value would be lost? (I know this question is probably a simple one).

I hope that makes sense.... Any insight greatly received.

Thanks

David


-- 
View this message in context: 
http://www.nabble.com/Zend_Search_Lucene-with-Zend_Paginator--tp21550886p21550886.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to