commit script with solr 1.2 response format

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

commit script with solr 1.2 response format

Ryan McKinley
I just started running the scripts and

The commit script seems to run fine, but it says there was an error.  I
looked into it, and the scripts expect 1.1 style response:

   <result status="0"></result>

1.2 /update returns:

   <?xml version="1.0" encoding="UTF-8"?>
   <response>
   <lst name="responseHeader">
     <int name="status">0</int>
     <int name="QTime">44</int>
   </lst>
   </response>


ryan
Reply | Threaded
Open this post in threaded view
|

Re: commit script with solr 1.2 response format

Yonik Seeley-2
On 6/21/07, Ryan McKinley <[hidden email]> wrote:

> I just started running the scripts and
>
> The commit script seems to run fine, but it says there was an error.  I
> looked into it, and the scripts expect 1.1 style response:
>
>    <result status="0"></result>
>
> 1.2 /update returns:
>
>    <?xml version="1.0" encoding="UTF-8"?>
>    <response>
>    <lst name="responseHeader">
>      <int name="status">0</int>
>      <int name="QTime">44</int>
>    </lst>
>    </response>

I guess we should look for 'status="0"><' ?

Or,  if you get a response code of 200, it's a success unless
you see status="<nonzero>"

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

Re: commit script with solr 1.2 response format

James liu-2
aha,,same question i found few days ago.

i m sorry to forget submit it.

2007/6/22, Yonik Seeley <[hidden email]>:

>
> On 6/21/07, Ryan McKinley <[hidden email]> wrote:
> > I just started running the scripts and
> >
> > The commit script seems to run fine, but it says there was an error.  I
> > looked into it, and the scripts expect 1.1 style response:
> >
> >    <result status="0"></result>
> >
> > 1.2 /update returns:
> >
> >    <?xml version="1.0" encoding="UTF-8"?>
> >    <response>
> >    <lst name="responseHeader">
> >      <int name="status">0</int>
> >      <int name="QTime">44</int>
> >    </lst>
> >    </response>
>
> I guess we should look for 'status="0"><' ?
>
> Or,  if you get a response code of 200, it's a success unless
> you see status="<nonzero>"
>
> -Yonik
>



--
regards
jl
Reply | Threaded
Open this post in threaded view
|

Re: commit script with solr 1.2 response format

Chris Hostetter-3
In reply to this post by Yonik Seeley-2

: I guess we should look for 'status="0"><' ?

that wouldn't quite work.

: Or,  if you get a response code of 200, it's a success unless
: you see status="<nonzero>"

we could always make it an option in the scripts.conf file -- what
substring to match on ... just in case people want to write their own
crazy commit handler and still use the script ... but that may be
overkill.



-Hoss