On Dec 17, 2007 1:40 AM, Ben Incani <[EMAIL PROTECTED]> wrote: > I have converted to using the Solr search interface and I am trying to > retrieve documents from a list of search results (where previously I had > used the doc id directly from the lucene query results) and the solr id > I have got currently indexed is unfortunately configured not be unique!
Ouch... I'd try to make a unique Id then! Or barring that, just try to make the query match exactly the docs you want back (don't do the 2 phase thing). > I do realise that lucene internal ids are transient, but for a read-only > requests (that are not cached) should be ok. But if you use 2 separate requests, an index can change versions between when you get the list of ids and when you request the documents for those ids. That's why this isn't safe as a general feature. Actually, it may be possible in the future... I had planned something like for more internal use (distributed search). The first request returns the index version, and then subsequent requests specify the index version to ensure that the internal lucene ids remain unchanged. -Yonik