我是靠谱客的博主 土豪大米,最近开发中收集的这篇文章主要介绍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的结合使用所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部