: > How do I generate URLs to retrieve a document against any given Solr : > instance that I happen to be pointing at without knowing which field is the : > document id? : : One cool technique, not instead of your change to Luke RH (a needed change : IMO) but another way to go about it - we have a DocumentRequestHandler that : takes a uniqueKey parameter that would retrieve and return that single : document without having to specify the field name explicitly.
Erik's idea eliminates the need to know what the "name" of the uniqueKey field is when formulating the query to "fetch one", but it doesn't solve the crux of grants question: when looking at a list of results (with a partial "fl" for example) how can you know which value to use to later query on and get back just thta document (with the full "fl" for example) My point was that while knowing the uniqueKey field solves the problem, the person setting up the index may not want clients to know this ... the clinet has to have *some* pre-existing knowledge about the structure of the index ... grant's Luke patch solves this by letting the client get this information from Luke, but in a general case a Solr Admin may not want to expose that info to his clients (ie: the customerId vs SSN example from my previous mail) ... so a general purpose client should probably have a more general way to configure the "what field do i treat as unique" info without requirng that the LukeHandler be available. -Hoss