Solr 搜索关键字后打开文档 [英] Solr open document after searching a keyword

查看:31
本文介绍了Solr 搜索关键字后打开文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试索引一些 PDF 文档,然后创建一个搜索用户界面.

I am trying to index some PDF documents and then create a Search UI .

这个问题有点关系

Solr 索引 PDF 文档并发布它们到远程服务器

1) 索引 PDF 文档 - > 我使用 tika jar 将 PDF 转换为文本文件,然后使用 curl 命令来索引它们.

1) Indexing PDF Docs - > I use tika jar to convert PDF to text files and then use curl command to index them.

2) 搜索用户界面 --> 我正在使用 Solritas 浏览功能及其内置用户界面.

2) Search UI --> I m using Solritas browse feature and its built in UI.

目标:

当我在索引文档列表中搜索一个词时说Lucene",当我获得给定查询的结果集时,我希望为每个返回的文档显示一个链接,并单击我应该显示的任何文档能够打开那个文档.

When I search for a word say "Lucene" in the list of indexed documents and when I get a result set for the given query I want a link to be displayed for each returned document and on clicking any document that I should be able to open that document.

我目前的想法:

我想我可能需要将第一步从两步改为一步直接索引它们.我什至认为 schema.xml 中应该有一个额外的字段来说明这些 PDF 文档的位置.

I think I might have to change step one from a two way step to a single step of indexing them directly. I even think there should be an additional field in the schema.xml which tells about the location of these PDF docs.

请指导我一些建议

推荐答案

这可能会有所帮助:

http://wiki.apache.org/solr/ExtractingRequestHandler

这篇关于Solr 搜索关键字后打开文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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