Hi Bruno,

Why don't you write deletePkQuery to delete these documents and set your cron 
to run delta query on every Friday?

Regards
Harshvardhan Ojha

-----Original Message-----
From: Bruno Mannina [mailto:bmann...@free.fr]
Sent: Sunday, January 27, 2013 6:03 PM
To: solr-user@lucene.apache.org
Subject: Re: The best way to delete several documents?

yep ok thks !

Le 27/01/2013 13:27, Marcin Rzewucki a écrit :
> You can write a script and remove say 50 docs in 1 call. It's always
> better than removing 1 by 1.
> Regards.
>
>
> On 27 January 2013 13:17, Bruno Mannina <bmann...@free.fr> wrote:
>
>> Hi,
>>
>> Even If I have one or two thousands of Id ?
>>
>> Thanks
>>
>> Le 27/01/2013 13:15, Marcin Rzewucki a écrit :
>>
>>> Hi,
>>>
>>> The best is if you could find a query for all docs you want to
>>> remove. If this is not simple you can use the following syntax: id:
>>> (1 2 3 4 5) to remove group of docs by ID (and if your default query 
>>> operator is OR).
>>>
>>> Regards.
>>>
>>> On 27 January 2013 11:47, Bruno Mannina <bmann...@free.fr> wrote:
>>>
>>>   Dear Solr users,
>>>> Every Friday I need to delete some documents on my solr db (around
>>>> 100~200
>>>> docs).
>>>>
>>>> Could you help me to choose the best way to delete these documents.
>>>> - I have the unique ID of each documents
>>>>
>>>> Another question:
>>>> How can I disable to possibility to do:
>>>>
>>>> http://localhost:8983/solr/****update?stream.body=<http://localhost
>>>> :8983/solr/**update?stream.body=>
>>>> <http://**localhost:8983/solr/update?**stream.body=<http://localhos
>>>> t:8983/solr/update?stream.body=>
>>>> <delete><**query>id:298253</**query></**delete>&commit=true
>>>>
>>>> by using a webbrowser.
>>>>
>>>> I would like to do operations on my DB only if use a command line
>>>> like java -jar -DUrl=
>>>>
>>>> http://localhost:8983/solr/****update?stream.body=<http://localhost
>>>> :8983/solr/**update?stream.body=>
>>>> <http://**localhost:8983/solr/update?**stream.body=<http://localhos
>>>> t:8983/solr/update?stream.body=>
>>>> <delete><**query>id:298253</**query></**delete>&commit=true
>>>> post.jar
>>>>
>>>>
>>>> is it possible?
>>>>
>>>> Thanks a lot,
>>>> Bruno
>>>>
>>>>
>>>>

The contents of this email, including the attachments, are PRIVILEGED AND 
CONFIDENTIAL to the intended recipient at the email address to which it has 
been addressed. If you receive it in error, please notify the sender 
immediately by return email and then permanently delete it from your system. 
The unauthorized use, distribution, copying or alteration of this email, 
including the attachments, is strictly forbidden. Please note that neither 
MakeMyTrip nor the sender accepts any responsibility for viruses and it is your 
responsibility to scan the email and attachments (if any). No contracts may be 
concluded on behalf of MakeMyTrip by means of email communications.

Reply via email to