mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 02:10:32 -06:00
SEARCH-539 & SEARCH-206
- Updated demo html
This commit is contained in:
parent
6528ae8a60
commit
5e2396d7e8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user