SEARCH-539 & SEARCH-206

- Updated demo html
This commit is contained in:
Keerthi Niranjan 2017-12-18 11:08:14 +05:30
parent 6528ae8a60
commit 5e2396d7e8

View File

@ -127,7 +127,7 @@
</div>
<script>
var search = new ssf.Search("12345678910112", "jjjehdnctsjyieoalskcjdhsnahsadndfnusdfsdfsd=");
var search = new ssf.Search("12345678910112", "jjjehdnctsjyieoalskcjdhsnahsadndfnusdfsdfsd=", 'v2');
var searchUtils = new ssf.SearchUtils();
var buttonEl = document.getElementById('search');
var merge = document.getElementById('merge');
@ -231,7 +231,12 @@
merge.addEventListener('click', function () {
search.mergeIndexBatches().then(function () {
search.encryptIndex('jjjehdnctsjyieoalskcjdhsnahsadndfnusdfsdfsd=').then(function () {
search.encryptIndex('jjjehdnctsjyieoalskcjdhsnahsadndfnusdfsdfsd=', 'v2').then(function () {
searchUtils.updateUserConfig(12345678910112, {rotationId:0, version: 'v2'}).then(function (res) {
resultsEl.innerHTML = JSON.stringify(res);
}).catch(function (err) {
resultsEl.innerHTML = JSON.stringify(err);
});
resultsEl.innerHTML = "Merging and Encrypting index completed"
});
}).catch(function (err) {