简体   繁体   English

使用Apache Solr索引数据库中的所有表

[英]Index all tables from the database using Apache Solr

How to index most of the tables(ex:20 table) using Apache solr 如何使用Apache Solr索引大多数表(例如20个表)

We need to add entity tag for each and every table in the dataconfig.xml? 我们需要为dataconfig.xml中的每个表添加实体标签吗?

Thanks in advance 提前致谢

Dilip 双唇

I had index tables from database using solrj. 我使用solrj从数据库获得了索引表。

I had entered Field tag in schema.xml with user-defined name. 我已经使用用户定义的名称在schema.xml中输入了字段标签。

Sample Field Tag: 样本字段标签:

<field name="id" type="string" indexed="true" stored="true" required="true" /> 

Also refer to Schema XML File 另请参阅架构XML文件

Hope it answers your doubts.. 希望它能回答您的疑问。

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

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