Yep seems this is the case.  I found a work-around in case anyone wants
to know.  I adjusted my query to include a fq of '-myfield:1'.  So
pretty much, all my data that was in there already would have had a
value of '0' for myfield so I can treat either myfield:0 or the absence
of myfield as the same result.  I wish there was an option to just
completely reindex all data..i suppose optimize may do that a little
bit?

--Jeff

-----Original Message-----
From: Chris Hostetter [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 21, 2008 4:47 PM
To: solr-user@lucene.apache.org
Subject: Re: Updating schema.xml without deleting index?


: I've tried searching for this answer all over but have found no
results
: thus far.  I am trying to add a new field to my schema.xml with a
: default value of 0.  I have a ton of data indexed right now and it
would
: be very hard to retrieve all of the original sources to rebuild my
: index.  So my question is...is there any way to send a command to SOLR
: that tells it to re-index everything it has and include the new field
I
: added?

default values only affect documents as they are indexed.  you can add 
that field, without reindexing anything, and solr will work, but those 
docs still won't have that value.  you have to manually re-index 
everything for them to get it.



-Hoss

Reply via email to