简体   繁体   中英

Can I index RDB with lucene?

I have a RDB and I index it. But the fields in de database that are related, in the lucene index aren't. So how can I index this relation? And, of course, then can I search it well?

I search in google but I only find that I have, without the relation, I think should be something for this, but I didn't find

Thanks for response! :)

The key thing you can do in lucene is store the ID from your relational db against each index record. You need to place an amount of data in lucene from your relational store. You then fire a search off against lucene which gives you the ID or IDs of the relational records that have matched the search and you could then use that to retreive the data from your relational store.

Here's a presentation on the subject: http://www.slideshare.net/frankmashraqi/lucene-and-mysql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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