lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley" <ryan...@gmail.com>
Subject addConditionally / allowDups / overwriteBoth
Date Fri, 02 Feb 2007 00:47:46 GMT
I'm having a bit of trouble deciphering the use case for these three
'add' options.  here is my best guss, can you correct me if i'm wrong

* addConditionally()
Only add the document if we have not already tried to add it and have
not committed yet

* allowDups()
add the document regardless of what you have done since last commit.

* overwriteBoth()
add the document.

What are these options trying to solve?  Is this the SQL equivalent of
 INSERT  (it has to be a new ID)
 UPDATE (the old id has to be there)
 REPLACE (insert or update - i don't care)

ryan

Mime
View raw message