On 6 October 2013 14:49, Ertio Lew <ertio...@gmail.com> wrote: > yeah I already configured it as a unique identifier, > but how do I tell solr it should use that for its internal document id & > not do unnecessary lookup/fetch for the document but instead just return > the doc id as query response ? [...]
I am not following your question. You will need to index your unique identifier into Solr, using the name of the uniqueKey field defined in schema.xml ("id" by default). Then, while querying, you need to query Solr on that field (id:XYZ), and use the retrieved IDs to look up objects in the database. Regards, Gora