Hi Shawn,

So it means that if my following is in a text file called update.txt,

{"id":"testing_0001",

"popularity":{"inc":1}

This text file must still exist if I use the URL? Or can this information
in the text file be put directly onto the URL?

Regards,
Edwin


On 20 July 2015 at 22:04, Shawn Heisey <apa...@elyograg.org> wrote:

> On 7/20/2015 2:06 AM, Zheng Lin Edwin Yeo wrote:
> > I'm using Solr 5.2.1, and I would like to check, is there a way to update
> > certain field by using REST API URL directly instead of using curl?
> >
> > For example, I would like to increase the "popularity" field in my index
> > each time a user click on the record.
> >
> > Currently, it can work with the curl command by having this in my text
> file
> > to be read by curl (the "id" is hard-coded here for example purpose)
> >
> > {"id":"testing_0001",
> >
> > "popularity":{"inc":1}
> >
> >
> > Is there a REST API URL that I can call to achieve the same purpose?
>
> The URL that you would use with curl *IS* the URL that you would use for
> a REST-like call.
>
> Thanks,
> Shawn
>
>

Reply via email to