You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Paul Dlug <pa...@gmail.com> on 2011/05/18 19:24:22 UTC

JSON delete error with latest branch_3x

I updated to the latest branch_3x (r1124339) and I'm now getting the
error below when trying a delete by query or id. Adding documents with
the new format works as do the commit and optimize commands. Possible
regression due to SOLR-2496?

curl 'http://localhost:8988/solr/update/json?wt=json' -H
'Content-type:application/json' -d '{"delete":{"query":"*:*"}}'

Error 400 meaningless command:
delete:query=`*:*`,fromPending=false,fromCommitted=false

Problem accessing /solr/update/json. Reason:
  meaningless command: delete:query=`*:*`,fromPending=false,fromCommitted=false

Re: JSON delete error with latest branch_3x

Posted by Paul Dlug <pa...@gmail.com>.
Thanks Yonik, all my app's test cases now pass again.


--Paul

On Wed, May 18, 2011 at 2:04 PM, Yonik Seeley
<yo...@lucidimagination.com> wrote:
> OK, I just fixed this on branch_3x.
> Trunk is fine (it was an error in the 3x backport that wasn't caught
> because the test doesn't go through the complete solr stack to the
> update handkler).
>
> -Yonik
> http://www.lucenerevolution.org -- Lucene/Solr User Conference, May
> 25-26, San Francisco
>
>
> On Wed, May 18, 2011 at 1:29 PM, Yonik Seeley
> <yo...@lucidimagination.com> wrote:
>> On Wed, May 18, 2011 at 1:24 PM, Paul Dlug <pa...@gmail.com> wrote:
>>> I updated to the latest branch_3x (r1124339) and I'm now getting the
>>> error below when trying a delete by query or id. Adding documents with
>>> the new format works as do the commit and optimize commands. Possible
>>> regression due to SOLR-2496?
>>>
>>> curl 'http://localhost:8988/solr/update/json?wt=json' -H
>>> 'Content-type:application/json' -d '{"delete":{"query":"*:*"}}'
>>>
>>> Error 400 meaningless command:
>>> delete:query=`*:*`,fromPending=false,fromCommitted=false
>>>
>>> Problem accessing /solr/update/json. Reason:
>>>  meaningless command: delete:query=`*:*`,fromPending=false,fromCommitted=false
>>
>> Hmmm, looks like unit tests must be inadequate for the JSON format.
>> I'll look into it.
>>
>> -Yonik
>> http://www.lucenerevolution.org -- Lucene/Solr User Conference, May
>> 25-26, San Francisco
>>
>

Re: JSON delete error with latest branch_3x

Posted by Yonik Seeley <yo...@lucidimagination.com>.
OK, I just fixed this on branch_3x.
Trunk is fine (it was an error in the 3x backport that wasn't caught
because the test doesn't go through the complete solr stack to the
update handkler).

-Yonik
http://www.lucenerevolution.org -- Lucene/Solr User Conference, May
25-26, San Francisco


On Wed, May 18, 2011 at 1:29 PM, Yonik Seeley
<yo...@lucidimagination.com> wrote:
> On Wed, May 18, 2011 at 1:24 PM, Paul Dlug <pa...@gmail.com> wrote:
>> I updated to the latest branch_3x (r1124339) and I'm now getting the
>> error below when trying a delete by query or id. Adding documents with
>> the new format works as do the commit and optimize commands. Possible
>> regression due to SOLR-2496?
>>
>> curl 'http://localhost:8988/solr/update/json?wt=json' -H
>> 'Content-type:application/json' -d '{"delete":{"query":"*:*"}}'
>>
>> Error 400 meaningless command:
>> delete:query=`*:*`,fromPending=false,fromCommitted=false
>>
>> Problem accessing /solr/update/json. Reason:
>>  meaningless command: delete:query=`*:*`,fromPending=false,fromCommitted=false
>
> Hmmm, looks like unit tests must be inadequate for the JSON format.
> I'll look into it.
>
> -Yonik
> http://www.lucenerevolution.org -- Lucene/Solr User Conference, May
> 25-26, San Francisco
>

Re: JSON delete error with latest branch_3x

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Wed, May 18, 2011 at 1:24 PM, Paul Dlug <pa...@gmail.com> wrote:
> I updated to the latest branch_3x (r1124339) and I'm now getting the
> error below when trying a delete by query or id. Adding documents with
> the new format works as do the commit and optimize commands. Possible
> regression due to SOLR-2496?
>
> curl 'http://localhost:8988/solr/update/json?wt=json' -H
> 'Content-type:application/json' -d '{"delete":{"query":"*:*"}}'
>
> Error 400 meaningless command:
> delete:query=`*:*`,fromPending=false,fromCommitted=false
>
> Problem accessing /solr/update/json. Reason:
>  meaningless command: delete:query=`*:*`,fromPending=false,fromCommitted=false

Hmmm, looks like unit tests must be inadequate for the JSON format.
I'll look into it.

-Yonik
http://www.lucenerevolution.org -- Lucene/Solr User Conference, May
25-26, San Francisco