概述
往上搜到一篇文章讲这个
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.
最后
以上就是土豪大米为你收集整理的mahout0.5和solr3.4的结合使用的全部内容,希望文章能够帮你解决mahout0.5和solr3.4的结合使用所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复