I think this makes sense. Timothy asked about "update by query" in the last 24 hours and this sounds like the same thing.
Otis -- Solr & ElasticSearch Support http://sematext.com/ On Wed, Jun 19, 2013 at 3:52 AM, Avner Levy <av...@checkpoint.com> wrote: > I have a core with millions of records. > I want to add a custom handler which scan the existing documents and update > one of the field (delete and add document) based on a condition (age>12 for > example). > All fields are stored so there is no problem to recreate the document from > the search result. > I prefer doing it on the Solr server side for avoiding sending millions of > documents to the client and back. > I'm thinking of writing a solr plugin which will receive a query and update > some fields on the query documents (like the delete by query handler). > Are existing solutions or better alternatives? > I couldn't find any examples of Solr plugins which update / add / delete > documents (I don't need to extend the update handler). > If someone has an example it will be great help. > Thanks in advance