You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by regany <re...@newzealand.co.nz> on 2009/12/09 02:11:49 UTC

bool default - if missing when "updating" uses current or default value?

hello,

if I have a booleen fieldType (solr.BoolField) with a default value of
"true", and I insert a new document I understand that the booleen value will
be set to TRUE.

But if I update an existing document, and I don't pass in a value for the
booleen field, will Solr keep the existing booleen value unchanged, or will
it update the booleen value again using the default? - ie. true.

?

regan
-- 
View this message in context: http://old.nabble.com/bool-default---if-missing-when-%22updating%22-uses-current-or-default-value--tp26703630p26703630.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: bool default - if missing when "updating" uses current or default value?

Posted by Chris Hostetter <ho...@fucit.org>.
: But if I update an existing document, and I don't pass in a value for the
: booleen field, will Solr keep the existing booleen value unchanged, or will
: it update the booleen value again using the default? - ie. true.

Updating a document is very simplistic -- it removes the old one (by id) 
and then adds the new version -- it will have no "memory" of values from 
the old version of the document.


-Hoss