Re: Re[2]: add and delete docs at same time

2007-05-25 Thread Thierry Collogne
We always do a full delete before indexing, this is because for us that is the only way to be sure that there are no documents in the index that don't exist anymore. So delete all, than add all. To use the delete all, we did the following. We added a field called dummyDelete. This field always

Re: AW: Re[2]: add and delete docs at same time

2007-05-25 Thread Erik Hatcher
-user@lucene.apache.org; Jack L Betreff: Re: Re[2]: add and delete docs at same time We always do a full delete before indexing, this is because for us that is the only way to be sure that there are no documents in the index that don't exist anymore. So delete all, than add all. To use

Re: AW: Re[2]: add and delete docs at same time

2007-05-25 Thread Mike Klaas
On 25-May-07, at 2:49 AM, Burkamp, Christian wrote: Thierry, If you always start from scratch you could even reset the index completely (i.e. delete the index directory). Solr will create a new index automatically at startup. This will also make indexing and optimizing much faster for

add and delete docs at same time

2007-05-24 Thread Patrick Givisiez
can I add and delete docs at same post? Some thing like this: myDocs.xml = add docfield name=mainId4/field/doc docfield name=mainId5/field/doc docfield name=mainId6/field/doc /add deleteid1/id/delete deleteid2/id/delete deleteid3/id/delete

Re: add and delete docs at same time

2007-05-24 Thread Ryan McKinley
currently no. Right now you even need a new request for each delete... Patrick Givisiez wrote: can I add and delete docs at same post? Some thing like this: myDocs.xml = add docfield name=mainId4/field/doc docfield name=mainId5/field/doc docfield

Re: add and delete docs at same time

2007-05-24 Thread Erik Hatcher
On May 24, 2007, at 3:47 PM, Ryan McKinley wrote: currently no. Right now you even need a new request for each delete... Unless you used delete-by-query with the id's OR'd deletequeryid:1 OR id:2 OR id:3/query/delete Patrick Givisiez wrote: can I add and delete docs at same