【发布时间】:2023-03-03 09:40:02
【问题描述】:
我在 Solr 中索引了 word 文档。但是当我使用搜索文本进行查询时,返回的 xml 文件包含搜索到的文本,但没有包含该文本的文件的名称。
例如:
让word文档Printer.doc&models.doc包含单词HP。
当我将HP 作为查询词时,返回的 XML 响应必须具有标签为
<doc>
<str name="filename" >Printer.doc </str>
<str name ="filename" >models.doc</str>
如何实现这个..
我使用以下命令上传和索引文档
java -Durl=http://localhost:8983/solr/update/extract?literal.id=1 -Dtype=application/word -jar post.jar *.doc
请告诉我怎么做?
【问题讨论】:
标签: solr lucene indexing solr4