Norberto Meijome pisze: >> 2) I don't want to overwrite old content with new one. >> >> Means, if I add duplicate content in solr and the content already >> exists, the old content should not be overwritten. > > before inserting a new document, query the index - if you get a result back, > then don't insert. I don't know of any other way.
This operation is not atomic, so you get a race condition here. Other than that, it seems fine. ;) -- We read Knuth so you don't have to. -- Tim Peters Jarek Zgoda re:define