简体   繁体   中英

Associating binary to a Lucene Document

I have a number of POJO's, each with a String field that I am indexing and searching using Lucene. However, I seem to be missing an easy way to associate a "found" keyphrase with the (unique) object that it comes from. Does anyone know how to do this?

Don't your POJO's have some kind of business key or ID? Index that along with the String field.

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