开发者

How to store object relationships in Lucene?

开发者 https://www.devze.com 2023-01-25 09:49 出处:网络
What is the best way to store the object relationships in lucene? I need to be able to read them back easily and fast. Currently the开发者_StackOverflow中文版y are not stored in the lucene index and r

What is the best way to store the object relationships in lucene? I need to be able to read them back easily and fast. Currently the开发者_StackOverflow中文版y are not stored in the lucene index and reading them from DB is slow.


Your best bet is probably to add all of the objects that you wish to reference in a large hashtable / dictionary and store the object key in the Lucene index.

(I may have used some .Net specific terminology there, but I assume that the same concept can be applied to whatever language you are using)

0

精彩评论

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