开发者

lucene multiple indexes from mysql tables

开发者 https://www.devze.com 2023-03-18 20:17 出处:网络
I have 3 tables (urls, textnodes, and titles) with 3 columns each in mysql. My question was, could I create multiple indexes in lucene and would this be necessary? The reason I want to do this is that

I have 3 tables (urls, textnodes, and titles) with 3 columns each in mysql. My question was, could I create multiple indexes in lucene and would this be necessary? The reason I want to do this is that开发者_运维百科 if a hit appears inside a textnode...I only show the textnode (not the title or url), if its in the title, I only show the title and textnode (not the url).


Not sure if I understand the question.
Is there a relation between these three tables (say one webpage has a title, a url and a textnode)?
If there is then you could easily create one index where each document (webpage) has three fields. Then you can provide a query to match on the three fields (or on the one/s you need) and show the fields that you want.

Don't know if this answers your question, please clarify.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号