Re: Adding new field after data is already indexed

2013-11-26 Thread jefferyyuan
Check Solr: Add new fields with Default Value for Existing Documents If we only need search and display the new fields, we can do the following steps. 1. add the new field definition in schema.xml:

Re: Adding new field after data is already indexed

2010-11-11 Thread Erick Erickson
@Jerry Li What version of Solr were you using? And was there any data in the new field? I have no problems here with a quick test I ran on trunk... Best Erick On Thu, Nov 11, 2010 at 1:37 AM, Jerry Li | 李宗杰 wrote: > but if I use this field to do sorting, there will be an error occured > and th

Re: Adding new field after data is already indexed

2010-11-10 Thread Jerry Li | 李宗杰
but if I use this field to do sorting, there will be an error occured and throw an indexOfBoundArray exception. On Thursday, November 11, 2010, Robert Petersen wrote: > 1)  Just put the new field in the schema and stop/start solr.  Documents > in the index will not have the field until you reinde

RE: Adding new field after data is already indexed

2010-11-10 Thread Robert Petersen
1) Just put the new field in the schema and stop/start solr. Documents in the index will not have the field until you reindex them but it won't hurt anything. 2) Just turn off their handlers in solrconfig is all I think that takes. -Original Message- From: gauravshetti [mailto:gaurav.s

Re: Adding new field after data is already indexed

2010-11-08 Thread Marc Sturlese
>> and i index data on the basis of these fields. Now, incase i need to add a new field, is there a way i can >> add the field without corrupting the previous data. Is there any feature which adds a new field with a >> default value to the existing records. You just have to add the new field in

Re: Adding new field after data is already indexed

2010-11-08 Thread Marc Sturlese
>> and i index data on the basis of these fields. Now, incase i need to add a new field, is there a way i can >> add the field without corrupting the previous data. Is there any feature which adds a new field with a >> default value to the existing records. You just have to add the new field in