往上搜到一篇文章讲这个
http://blog.neofreko.com/index.php/tag/solr/
How to use Lucene 3.4 with Mahout 0.5
As you may have been frustrated by, Mahout 0.5 was build with Lucene 3.1 dependencies. How on earth can we use Lucene 3.4 then? My SOLR is 3.4, I want to use its index to play with Mahout.
Fear not. Just download mahout 0.5, both source and binaries. Extract them, it will reside on the same folder i.e: mahout-distribution-0.5. Now, open up that pom.xml. Find lucene and replace 3.1.0 with 3.4.0. I reckon there are only 4 of them. The do mvn install. You may want to skip tests with: mvn -DskipTests=true install.
Once done, do: export MAHOUT_CORE=1
Run mahout from mahout-distribution-0.5/bin folder.
I don’t get index incompatibility anymore. But, I keep getting not enough term vector on document. Even I’ve set the schema.xml dan reindex my docs.
Will write more once I pass it.
本文详细介绍了如何将Mahout 0.5与Lucene 3.4进行兼容使用的方法,通过修改源码并重新编译Mahout以支持更高版本的Lucene,解决了索引不兼容的问题。

被折叠的 条评论
为什么被折叠?



