index organizationid for search
This commit is contained in:
parent
a98a8bda9b
commit
2c4005d4c7
|
@ -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', { extractor: (c: CipherView) => this.attachmentExtractor(c, false) });
|
||||||
(builder as any).field('attachments_joined',
|
(builder as any).field('attachments_joined',
|
||||||
{ extractor: (c: CipherView) => this.attachmentExtractor(c, true) });
|
{ extractor: (c: CipherView) => this.attachmentExtractor(c, true) });
|
||||||
|
(builder as any).field('organizationid', { extractor: (c: CipherView) => c.organizationId });
|
||||||
const ciphers = await this.cipherService.getAllDecrypted();
|
const ciphers = await this.cipherService.getAllDecrypted();
|
||||||
ciphers.forEach((c) => builder.add(c));
|
ciphers.forEach((c) => builder.add(c));
|
||||||
this.index = builder.build();
|
this.index = builder.build();
|
||||||
|
|
Loading…
Reference in New Issue