Solr search with Mysql Database, any utility for data importing

核能气质少年 提交于 2019-12-24 12:39:29

问题


We are looking at ways of improving "search" functionality in our large business application which currently uses SQL Like syntax to do it. So we started evaluating Solr server and were able to index few of our database tables and search. But I am newbie and wanted to know if

1) We have large number of tables in our application. Is there any utility that generates schema xml in solr using the database tables?

2) Our current search lists the database row that meets the search criteria (this was written using SQL 'like' and takes lot of time to generate the search results). We want to simulate the exact functionality using solr. Is that possible?


回答1:


For importing a database into SOLR, you might want to look into DataImportHandler.

There will be a fair amount of configuration required for it, defining what tables and columns to import, what should be stored, and how it should be indexed.



来源:https://stackoverflow.com/questions/15681577/solr-search-with-mysql-database-any-utility-for-data-importing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!