开发者

How to store object relationships in Lucene?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜