Updating a field isn't straightforward. Changing size from string to int
would, if you don't re-index, break your index. The schema tells Slr how
to interpret the binary bits it finds in the index. If there are no bits
in the index for that field name, then no issue. If there already are
bits in the index, changing the schema will cause Solr to get confused
when those bits are returned from the index in the results of a query.

It seems to me that you could get away with using dynamic fields. Start
with size_s, which is a string field. Then, start adding a size_i field
to your index. It is a new field containing the integer version. Because
of the dynamic fields definitions in the schema, these fields would not
require schema editing or core reloads.

If you, however, want every document in tier index to have the integer
size value, you will need to update those documents, adding that new
field(and skipping/removing the string one if no-longer needed).

Hope this helps.

Upayavira

On Sat, Sep 28, 2013, at 04:38 PM, bengates wrote:
> Haha,
> 
> Thanks for your reply, that's what I'll do then.
> 
> Unfortunately I can speak Java as well as I can speak ancient Chinese in
> Sign Language... ^^
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Update-field-properties-via-Schema-Rest-API-tp4087907p4092507.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to