diff --git a/pages/redis-search-indexes/index.vue b/pages/redis-search-indexes/index.vue index 935bea8..80f4354 100644 --- a/pages/redis-search-indexes/index.vue +++ b/pages/redis-search-indexes/index.vue @@ -3,9 +3,12 @@

Redis Search Indexes

- + Reindex All + + Reindex All (concurrently) +
@@ -164,14 +167,18 @@ export default class RedisSearchIndexesParent extends Vue { } } - async reindexAll () { + async reindexAll (concurrently:boolean) { this.loadingAll = true - try { - await this.$axios.$get( + if (concurrently) { + await this.$axios.$get( + '/dev/redis-search/force-reindex-all/?concurrently=true' + ) + }else{ + await this.$axios.$get( '/dev/redis-search/force-reindex-all/' ) - + } this.$notification.show({ type: 'success', message: 'Success' @@ -200,7 +207,7 @@ export default class RedisSearchIndexesParent extends Vue { }) } - confirmAll () { + confirmAll (concurrently:boolean) { this.confirmationModal .show({ title: 'Wait!!!', @@ -208,7 +215,7 @@ export default class RedisSearchIndexesParent extends Vue { }) .then((result) => { if (result) { - this.reindexAll() + this.reindexAll(concurrently) } }) }