Thank you Mikhail,

Yes it does.
I can access it throu the SolrQueryRequest object.

this.uniqueKeyFieldName = req.getSchema().getUniqueKeyField().getName();



2012/11/20 Mikhail Khludnev <mkhlud...@griddynamics.com>

> Hello Zakharia,
>
> org.apache.solr.schema.IndexSchema.getUniqueKeyField()
> Does it help?
>
>
>
> On Tue, Nov 20, 2012 at 2:40 PM, zakaria benzidalmal <zakib...@gmail.com
> >wrote:
>
> > Hi all,
> >
> > I am writing a custom query response writer and I would like to handle
> the
> > unique key field without knowing his actual name to stay generic.
> >
> > My question is: how can I get the uniqueKey fieldname of a result
> document?
> >
> >
> > Regards.
> > ______________________
> > Zakaria BENZIDALMAL
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> <http://www.griddynamics.com>
>  <mkhlud...@griddynamics.com>
>

Reply via email to