egeloen / IvoryLuceneSearchBundle

Provides a Zend Lucene Search integration for your Symfony2 project.
MIT License
29 stars 11 forks source link

Uncaught Symfony\Component\Debug\Exception\ContextErrorException: Notice: Uninitialized string offset: 0 in **/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/AbstractFile.php:79 #17

Closed anuri73 closed 6 years ago

anuri73 commented 6 years ago

I am trying to index my data (about 25k rows), but on getting the following error:

` PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ContextErrorException: Notice: Uninitialized string offset: 0 in **//vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/AbstractFile.php:79 Stack trace:

0 **/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Index.php(121): ZendSearch\Lucene\Storage\File\AbstractFile->readInt()

1 **/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Index/Writer.php(395): ZendSearch\Lucene\Index::getActualGeneration(Object(ZendSearch\Lucene\Storage\Directory\Filesystem))

2 **/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Index/Writer.php(747): ZendSearch\Lucene\Index\Writer->_updateSegments()

3 **/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Index.php(1158): ZendSearch\Lucene\Index\Writer->commit()

4 /vendor/zendframework/zendsear in //vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Index.php on line 154

`

I am using Vagrant(Homestead). Inserting code is: ` /**

And the values are:

2000153,"ПОСТ 94 КМ"

anuri73 commented 6 years ago

Also on trying to remove index directory from the console (rm -rf **/var/lucene) I am getting the error: rm: cannot remove 'var/lucene/station/segments.gen': Input/output error But I wasn't catching the following error before

anuri73 commented 6 years ago

My composer.lock: "name": "egeloen/lucene-search-bundle", "version": "3.0.0", "name": "zendframework/zendsearch", "version": "dev-master",

anuri73 commented 6 years ago

https://github.com/zendframework/ZendSearch/pull/8#issuecomment-230953378