Welcome Guest, Not a member yet? Register   Sign In
Re-open Zend Lucene index on each request?
#1

[eluser]logan2z[/eluser]
I've used Lucene in the Java/J2EE world in the past and have always implemented a mechanism in which the index was kept open for some length of time to avoid the cost of opening the index on each search request. After some period of time, the index is closed, then re-opened in order to make new documents visible to search. I'm fairly new to PHP but I'm not sure there is a way to do something equivalent. All of the code examples I've seen simply open the index for each request. As the index gets large, I'm concerned that the cost of opening the index will become high, as the Lucene implementation reads certain data structures into server memory, and the performance of search requests will be poor. Has anyone run into this issue in a real-world site based on CI/Zend Lucene? Is there a best practice for dealing with this?




Theme © iAndrew 2016 - Forum software by © MyBB