简体   繁体   中英

How to check Lucene version in Zend Framework?

My java code in eclipse 4.2 is generating an index using lucene 2.9.1. I am using Zend framework 1.12.20 with PHP 7.1 at front end to do search and getting below error.

Fatal error: Uncaught Zend_Search_Lucene_Exception: Unsupported segments file format in C:\\xampp1\\php\\pear\\Zend\\Search\\Lucene.php:422 Stack trace: #0 C:\\xampp1\\php\\pear\\Zend\\Search\\Lucene.php(570): Zend_Search_Lucene->_readSegmentsFile()

What is causing the problem?

How can I check which lucene version is used in Zend framework 1.12.20?

From Zend documentation:

Zend_Search_Lucene was derived from the Apache Lucene project. The currently (starting from ZF 1.6) supported Lucene index format versions are 1.4 - 2.3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM