How do I update inline views in Couchdb lite

122 Views Asked by At

I'm using the CouchDbRepositorySupport class available in the ektorp library. According to their documentation I should be able to set a system property that will automatically generate my inline views which I'm doing System.setProperty(CouchDbRepositorySupport.AUTO_UPDATE_VIEW_ON_CHANGE, Boolean.TRUE.toString()); but it doesn't seem like the views are changing when I edit my existing views. How would I be able to edit views after my app is released? (right now I'm uninstalling and re-installing which is less than ideal)

1

There are 1 best solutions below

0
On

So the solution for me was to check if the view definition was updated and then delete the index of the view that was changed so that everything will be re-indexed.