Using Solr and Zends Lucene port together

前端 未结 2 1007
挽巷
挽巷 2021-01-18 20:20

Afternoon chaps,

After my adventures with Zend-Lucene-Search, and discovering it isn\'t all its cracked up to be when indexing large datasets, I\'ve turned to Solr

相关标签:
2条回答
  • 2021-01-18 21:07

    Never used Zend before, but I've used Lucene/Solr.

    Are you using the same version of Lucene for both the Solr indexing and the Zend port? Check to see what Lucene jar file is being used for each. If they're different, then Solr might be producing a Lucene index that isn't compatible with the Zend port.

    0 讨论(0)
  • 2021-01-18 21:17

    I confirmed on my machine that a Lucene index created through Solr cannot be read by Zend_Search_Lucene.

    Zend_Search_Lucene throws that exception when it detects a Lucene index format that it doesn't support. Looking at the code, Zend currently supports formats pre-2.1, 2.1, and 2.3.

    Solr creates an index in format FORMAT_HAS_PROX which as far as I can tell is used by Lucene 2.9 and higher.

    0 讨论(0)
提交回复
热议问题