delete changed?

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

delete changed?

James liu-2
solr:1.2

 curl http://192.168.7.6:8080/solr0/update --data-binary
'<delete><query>nodeid:20</query></delete>'

i remember it is ok when i use solr 1.1

does it change?

it show me:
HTTP Status 400 - missing content stream
------------------------------

*type* Status report

*message* *missing content stream*

*description* *The request sent by the client was syntactically incorrect
(missing content stream).*


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

Re: delete changed?

Chris Hostetter-3
:  curl http://192.168.7.6:8080/solr0/update --data-binary
: '<delete><query>nodeid:20</query></delete>'
:
: i remember it is ok when i use solr 1.1
        ...
: HTTP Status 400 - missing content stream


please note the "Upgrading from Solr 1.1" section of the 1.2 CHANGES.txt
file, which states...

The Solr "Request Handler" framework has been updated in two key ways:
First, if a Request Handler is registered in solrconfig.xml with a name
starting with "/" then it can be accessed using path-based URL, instead of
using the legacy "/select?qt=name" URL structure.  Second, the Request
Handler framework has been extended making it possible to write Request
Handlers that process streams of data for doing updates, and there is a
new-style Request Handler for XML updates given the name of "/update" in
the example solrconfig.xml.  Existing installations without this "/update"
handler will continue to use the old update servlet and should see no
changes in behavior.  For new-style update handlers, errors are now
reflected in the HTTP status code, Content-type checking is more strict,
and the response format has changed and is controllable via the wt
parameter.



-Hoss

Reply | Threaded
Open this post in threaded view
|

Re: delete changed?

James liu-2
aha,,sorry,i miss it.

2007/6/21, Chris Hostetter <[hidden email]>:

>
> :  curl http://192.168.7.6:8080/solr0/update --data-binary
> : '<delete><query>nodeid:20</query></delete>'
> :
> : i remember it is ok when i use solr 1.1
>         ...
> : HTTP Status 400 - missing content stream
>
>
> please note the "Upgrading from Solr 1.1" section of the 1.2 CHANGES.txt
> file, which states...
>
> The Solr "Request Handler" framework has been updated in two key ways:
> First, if a Request Handler is registered in solrconfig.xml with a name
> starting with "/" then it can be accessed using path-based URL, instead of
> using the legacy "/select?qt=name" URL structure.  Second, the Request
> Handler framework has been extended making it possible to write Request
> Handlers that process streams of data for doing updates, and there is a
> new-style Request Handler for XML updates given the name of "/update" in
> the example solrconfig.xml.  Existing installations without this "/update"
> handler will continue to use the old update servlet and should see no
> changes in behavior.  For new-style update handlers, errors are now
> reflected in the HTTP status code, Content-type checking is more strict,
> and the response format has changed and is controllable via the wt
> parameter.
>
>
>
> -Hoss
>
>


--
regards
jl