<commit/> doesn't work

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

<commit/> doesn't work

shenzhuxi
curl %solr_home% --data-binary "<commit/>" -H "Content-type:text/xml; charset=utf-8"

It doesm't work to update. I have to restart solr to make update work. Do I need to use:

curl %solr_home% --data-binary "<commit waitFlush="false" waitSearcher="false"/>" -H "Content-type:text/xml; charset=utf-8"

"" can't be in "" in windows cmd
Reply | Threaded
Open this post in threaded view
|

Re: <commit/> doesn't work

Yonik Seeley-2
On Jan 31, 2008 8:20 AM, shenzhuxi <[hidden email]> wrote:
>
> curl %solr_home% --data-binary "<commit/>" -H "Content-type:text/xml;
> charset=utf-8"
>
> It doesm't work to update. I have to restart solr to make update work. Do I
> need to use:
>
> curl %solr_home% --data-binary "<commit waitFlush="false"
> waitSearcher="false"/>" -H "Content-type:text/xml; charset=utf-8"

No, the params to commit are optional.
What is %solr_home%... it should be the URL of the update handler:
http://localhost:8983/solr/update

And if you are familiar with UNIX, I'd advise downloading and working
in something like cygwin to get the same environment.

-Yonik
Reply | Threaded
Open this post in threaded view
|

Re: <commit/> doesn't work

shenzhuxi

Yonik Seeley wrote
On Jan 31, 2008 8:20 AM, shenzhuxi <shenzhuxi@gmail.com> wrote:
>
> curl %solr_home% --data-binary "<commit/>" -H "Content-type:text/xml;
> charset=utf-8"
>
> It doesm't work to update. I have to restart solr to make update work. Do I
> need to use:
>
> curl %solr_home% --data-binary "<commit waitFlush="false"
> waitSearcher="false"/>" -H "Content-type:text/xml; charset=utf-8"

No, the params to commit are optional.
What is %solr_home%... it should be the URL of the update handler:
http://localhost:8983/solr/update

And if you are familiar with UNIX, I'd advise downloading and working
in something like cygwin to get the same environment.

-Yonik
Thanks. I figure out now. It's the delete problem not the commit.