Datatype change in solr

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Datatype change in solr

Manjunath N S (mans3)
Hello,

I had defined one of my field as string and indexed the data but it is of type integer. Now when I try to change the field type as tint ,to allow sorting to be performed on that field ,I am getting Async distributed error.
I have deleted the document with that id.


Is there a way to change the field types without deleting the index ?


Thanks,
manjunath


Reply | Threaded
Open this post in threaded view
|

Re: Datatype change in solr

Xavier Morera
Have you considered adding a copyfield and reindexing? Less disruptive.

On Wed, Feb 8, 2017 at 11:33 PM, Manjunath N S (mans3) <[hidden email]>
wrote:

> Hello,
>
> I had defined one of my field as string and indexed the data but it is of
> type integer. Now when I try to change the field type as tint ,to allow
> sorting to be performed on that field ,I am getting Async distributed error.
> I have deleted the document with that id.
>
>
> Is there a way to change the field types without deleting the index ?
>
>
> Thanks,
> manjunath
>
>
>


--

*Xavier Morera*

Entrepreneur | Author & Trainer | Consultant | Developer & Scrum Master

*www.xaviermorera.com <http://www.xaviermorera.com/>*

office:  (305) 600-4919

cel:     +506 8849-8866

skype: xmorera
Twitter <https://twitter.com/xmorera> | LinkedIn
<https://www.linkedin.com/in/xmorera> | Pluralsight Author
<http://www.pluralsight.com/author/xavier-morera>