Hi  Shalin

 Thanks a lot. It is the point that I need.


Regards


2013/9/23 Shalin Shekhar Mangar <shalinman...@gmail.com>

> You can use request parameters in your query e.g.
>
> <entity name="type" query="select id as tid from movie_type
> partition(${dataimporter.request.part})''">
>
> http://wiki.apache.org/solr/DataImportHandler#Accessing_request_parameters
>
> On Mon, Sep 23, 2013 at 8:26 AM, YouPeng Yang <yypvsxf19870...@gmail.com>
> wrote:
> > Hi
> >
> >   I want to import dataset in a partition of a partition table with DIH.
> > And I would like to explicitly define the partition when I do import job.
> >
> >  To be specific.
> >   1. I define the DIH configuration like these
> > <entity name="type" query="select id as tid from movie_type  partition(${
> > part})''">
> >
> >   2.I send the url:
> >   http://localhost:8983/solr/dataimport?command=full-import&part=p2
> >
> >   and then the DIHhandler will full import the p2 partition of the table.
> >
> > Any suggestion will be appreciated.
> >
> >
> > Regards.
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Reply via email to