fix(all): Working with no Azure Search.
This commit is contained in:
parent
972b0f9bfd
commit
9c8fff3629
1 changed files with 5 additions and 7 deletions
|
@ -767,16 +767,14 @@ export class GBDeployer implements IGBDeployer {
|
|||
* its index based on .gbkb structure.
|
||||
*/
|
||||
public async rebuildIndex(instance: IGBInstance, searchSchema: any) {
|
||||
// Prepares search.
|
||||
let release;
|
||||
|
||||
// TODO: Semaphore logic.
|
||||
//try {
|
||||
const key = instance.searchKey ? instance.searchKey : GBServer.globals.minBoot.instance.searchKey;
|
||||
GBLogEx.info(instance.instanceId, `rebuildIndex running...`);
|
||||
// release = await GBServer.globals.indexSemaphore.acquire();
|
||||
// GBLogEx.info(instance.instanceId, `Acquire rebuildIndex done.`);
|
||||
|
||||
const key = instance.searchKey ? instance.searchKey : GBServer.globals.minBoot.instance.searchKey;
|
||||
if (!key){
|
||||
|
||||
return;
|
||||
}
|
||||
const searchIndex = instance.searchIndex ? instance.searchIndex : GBServer.globals.minBoot.instance.searchIndex;
|
||||
const searchIndexer = instance.searchIndexer
|
||||
? instance.searchIndexer
|
||||
|
|
Loading…
Add table
Reference in a new issue