index organizationid for search

This commit is contained in:
Kyle Spearrin 2018-10-30 11:03:41 -04:00
parent a98a8bda9b
commit 2c4005d4c7
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ export class SearchService implements SearchServiceAbstraction {
(builder as any).field('attachments', { extractor: (c: CipherView) => this.attachmentExtractor(c, false) });
(builder as any).field('attachments_joined',
{ extractor: (c: CipherView) => this.attachmentExtractor(c, true) });
(builder as any).field('organizationid', { extractor: (c: CipherView) => c.organizationId });
const ciphers = await this.cipherService.getAllDecrypted();
ciphers.forEach((c) => builder.add(c));
this.index = builder.build();