我是靠谱客的博主 土豪大米,这篇文章主要介绍mahout0.5和solr3.4的结合使用,现在分享给大家,希望可以做个参考。

往上搜到一篇文章讲这个

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.


经过测试,需要先mvn clean然后重新编译才行

最后

以上就是土豪大米最近收集整理的关于mahout0.5和solr3.4的结合使用的全部内容,更多相关mahout0.5和solr3.4内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(114)

评论列表共有 0 条评论

立即
投稿
返回
顶部