right now you need to know the unique key name to get it...
I don't think we have any easy way to get that besides parsing the schema....

With debugQuery=true, the uniqueKey is added to the 'explain' info:
<lst name="explain">
  <str name="id=YOURID,internal_docid=0">
   ...

this gets parsed into the QueryResults _explainMap and _docIdMap but i'm not sure that is useful in the general sense...

ryan


Grant Ingersoll wrote:
What's the best way to retrieve the unique key field from SolrJ? From what I can tell, it seems like I would need to retrieve the schema and then parse it and get it from there, or am I missing something?

Thanks,
Grant


Reply via email to