如何修改 Solr 给出的搜索结果页面? [英] How to modify search result page given by Solr?

查看:35
本文介绍了如何修改 Solr 给出的搜索结果页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算做一个利基搜索引擎.我使用 apache-nutch-1.6 作为爬虫,使用 apache-solr-3.6.2 作为搜索器.我必须说,网络上关于这些技术的最新信息非常少.

我遵循了本教程 回答了我的问题.

我同意在阅读以上链接提供的内容后,我对我感到非常生气.Solr 包提供了查询 solr 所需的所有对象.

事实上,基本的 jar 只是 solr-solrj-3.4.0.jar、commons-httpclient-3.1.jar 和 slf4j-api-1.6.4.jar.

任何人都可以使用这些对象构建 Java 搜索引擎来查询数据库并拥有精美的 UI.

再次感谢.

I intend to make a niche search engine. I am using apache-nutch-1.6 as the crawler and apache-solr-3.6.2 as the searcher. I must say there is very less updated information on web about these technologies.

I followed this tutorial http://wiki.apache.org/nutch/NutchTutorial and have successfully installed apache and solr on my ubuntu system. I was also successful in injecting seed url to webdb and perform the crawl.

Using solr interface at http://localhost:8983/solr/admin, I can also query the crawled results. But this is the output I receive. .

Am I missing something here, the earlier apache-nutch-0.7 had a war which generated a clear html output like this. . How do I achieve this... Or if anyone could point me to a latest tutorial or guidebook, highly appreciated.

解决方案

I found below link http://cmusphinx.sourceforge.net/2012/06/building-a-java-application-with-apache-nutch-and-solr/ which answered my query.

I agree after reading the content available on above link, I felt very angry at me. Solr package provides all the required objects to query solr.

Infact, the essential jars are just solr-solrj-3.4.0.jar, commons-httpclient-3.1.jar and slf4j-api-1.6.4.jar.

Anyone can build a java search engine using these objects to query the database and have a fancy UI.

Thanks again.

这篇关于如何修改 Solr 给出的搜索结果页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆