简体   繁体   English

如何在Apache Solr中索引文本文件

[英]How to index text files in apache solr

I have some information in a text file. 我在文本文件中有一些信息。 I want to index it on solr. 我想在solr上建立索引。 What should be the procedure. 程序应该是什么。 Any tool that can be used for indexing in solr ? 任何可用于在solr中建立索引的工具? Please guide me in details as I am not familiar with solr too mutch? 请指导我详细信息,因为我对Solr也不太熟悉?

One way would be to convert the plain text into CSV file. 一种方法是将纯文本转换为CSV文件。 You can then use the CSV file uploading process to index data in Solr. 然后,您可以使用CSV文件上传过程在Solr中索引数据。 Check the documentation here for more configurations Here 这里检查文档的详细配置这里

I'd refer you to Solr DataImportHandler Page, it has a comprehensive tutorial on how to import data from various source. 我会向您介绍Solr DataImportHandler页面,它提供了有关如何从各种来源导入数据的综合教程。 Importing text files is under FileDataSource 导入文本文件在FileDataSource下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM