Re: recording a universal ID from DocID in a CustomScoreQuery

2012-02-06 Thread Ian Lea
int doc will be for the subreader, not for the entire index. oal.search.Collector has setNextReader(IndexReader reader, int docBase) which you might somehow be able to use. Failing that I'd go for FieldCache, or store the docids in a Set in a Map keyed by current Reader, if that would give you

RE: recording a universal ID from DocID in a CustomScoreQuery

2012-02-06 Thread Paul Allan Hill
for the feedback. -Paul -Original Message- From: Ian Lea [mailto:ian@gmail.com] Sent: Monday, February 06, 2012 3:54 AM To: java-user@lucene.apache.org Subject: Re: recording a universal ID from DocID in a CustomScoreQuery int doc will be for the subreader, not for the entire index

recording a universal ID from DocID in a CustomScoreQuery

2012-02-03 Thread Paul Allan Hill
My Index does NOT have a simple UID, it uses the file PATH to the file as the unique key. I was implementing a CustomScoreQuery which not only tweaked the score it also wanted to write down which documents had passed through this part of overall rebuilt query, so that I could further mess with