#015294: Index resettet in Zend-Search-Lucene search backend

Description:

The call to Zend_Search_Lucene::create() to open an existing index resets the chunk counter internally, so that all existing index data is lost. This cannot easily be reproduced in tests, because of the singleton in ZSL. To reproduce it, you need a script creating an index, and another instance reading from the index.

The attached patch fixes this problem.

We might want to call Zend_Search_Lucene::create(), though, if the index directory not yet exists, or if ::open() throws an exception. With the patch the user would be required to create the index once manually.


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments
ezc_search_zsl_open_bug.patch (580 b)
[Download] [Permanent Link]
ezc_search_zsl_open_bug.patch

- Comments

I have a patch for this, but I can't commit this yet because of other uncommitted (and unfinished) changes in my local checkout.

#262592 by Derick Rethans on August 14th, 2009 [Permanent Link]

Fixed in rev. 10802.

#262787 by Derick Rethans on August 26th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Search
Affects Unknown
Fix Versions 2009.2 sprint 2 - eZ components 2009.2 sprint 2
2009.2alpha1 - eZ components 2009.2alpha1
Reporter Kore Nordmann
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created August 14th, 2009
Updated August 26th, 2009
Resolved August 26th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels