Re: deleting a doc inside a custom UpdateRequestProcessor

2013-11-18 Thread Liu Bo
hi, you can try this in your checkIfIsDuplicate(), build a query based on your title, and set it to a delete command: //build your query accordingly, this depends on how your tittle is indexed, eg analyzed or not. be careful with it and do some test. DeleteUpdateCommand

deleting a doc inside a custom UpdateRequestProcessor

2013-11-18 Thread Peyman Faratin
Hi I am building a custom UpdateRequestProcessor to intercept any doc heading to the index. Basically what I want to do is to check if the current index has a doc with the same title (i am using IDs as the uniques so I can't use that, and besides the logic of checking is a little more complicat