I'm writing a search extension that is needing to write results to an external cache. So Solr will only return a handful of results to the user, but it puts all the rest into this cache where the user can do other operations on the results if they need to. The only thing that needs to go into this cache is the ID of the document.
The problem I'm running into is that when I use the SolrIndexSearcher getDocList method, the DocList returned only contains the Lucene IDs, which I do not need. I can use the doc or readDocs method in SolrIndexSearcher to get the IDs, but this process is very slow. It can take several seconds for around like 10K results. Does anyone have any workaround or experience with something like this? If the Lucene Document contains a field for the Solr document ID, can I cache it somewhere for quick retrieval or somehow return it along with the lucene ID? -- View this message in context: http://lucene.472066.n3.nabble.com/SolrIndexSearch-slow-doc-retrieval-problems-tp4127170.html Sent from the Solr - User mailing list archive at Nabble.com.