lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Teichmann <>
Subject Best practice to map Lucene docids to real ids
Date Tue, 06 May 2014 08:33:01 GMT

what is the best way to retrieve our "real" ids (as they are in our 
database) while searching?

Right now we generate a file after indexing which contains all Lucene 
docids and the matching id in our database. Our own Collector converts 
the docids to our ids while collecting. This works as long as no 
document is deleted and the index optimized after it.

Is this a good solution or should we use Fields or DocValues for this? 
What is the fastest solution?


Sven Teichmann

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message