Hello,
Right now our implementation retrieves our UID for our records from the
topdocs by calling IndexSearcher.doc(docid, fieldToLoad) (Deprecated) with
the UID as the only field.  I'm looking to replace this with the
appropriate call to IndexSearcher.storedFields().  This feels a little
inefficient since it could be visiting each segment on disk.  Some of our
searches are for an abusive 10k results (I would love to change this, but
that's the system as it exists).   If I only want a single field, is there
a better way to retrieve these? Should I be retrieving the numeric docvals
and advancing the iterator?   I've been looking around the internet for
different strategies and I'm kind of muddled with older blog posts vs the
current state of the codebase.   Can I cache the relationship between the
docId and the UID as long as I clear it whenever I commit?
Thank you,
Marc

Reply via email to