cancel
Showing results for 
Search instead for 
Did you mean: 

How to override previous schema configuration in Elastic Search in Nuxeo

dipesh_kc
Champ on-the-rise
Champ on-the-rise

I had one of my field 'published_date' as 'timestamp' datatype.But eventually I had to make it as 'string' . I corrected in my schema file. But both db and elastic search suggested that it must be timestamp while adding new record.

I solved in db by deleting previous table from db......and new table was created by server with corrected schema.

But I dont know how to solve in elasticSearch.It still says that 'published_date' must be 'timestamp' datatype.(I know its data is stored in data folder inside nxsever, but i dont know how to delete its previous schema)

1 ACCEPTED ANSWER

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

You'd better create another property and not edit an existing property type: this is always risky.

Regards

View answer in original post

2 REPLIES 2

michal_m
Champ on-the-rise
Champ on-the-rise

This will not directly answer your question, but I would never recommend to change the type of an atrribute. You can be sure of side effects you won't predict - there are some already.

I would add a new field, migrate values and remove the old one. Guaranteed it will save a lot of time - but again, thats my approach.

Sent from my Android phone using TouchDown (www.symantec.com)

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

You'd better create another property and not edit an existing property type: this is always risky.

Regards