如何使用lucene.net为诸如.txt,.pdf,.doc等文件编制索引? [英] How to index files such as .txt,.pdf,.doc etc using lucene.net?

查看:87
本文介绍了如何使用lucene.net为诸如.txt,.pdf,.doc等文件编制索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Lucene .net的新手.如何使用lucene.net索引.txt,.pdf,.doc等文件?我们可以使用lucene.net索引哪些文件?

I am new to Lucene .net.How to index files such as .txt,.pdf,.doc etc using lucene.net?and what all files we can index using lucene.net?

推荐答案

Lucene.net与索引特定文件无关.您必须自己为文件建立索引.

Lucene.net is agnostic to indexing particular files. You must index the files yourself.

我将使用IFilter提取文档中的文本,然后使用Lucene.net创建搜索索引.

I would use IFilters to pull out the text in a document and then use Lucene.net to create the search index.

您可以在codeproject.com上搜索有关使用IFilters&的多篇文章. lucene.net

you can search codeproject.com for multiple articles about using IFilters & lucene.net

这篇关于如何使用lucene.net为诸如.txt,.pdf,.doc等文件编制索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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