# US 2022/0283944 A1 · Method, apparatus and computer program product for implementing filter cache in a group-based communication platform

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0283944 A1
- Document ID: US20220283944A1
- Status: Published application
- Kind: A1
- Application number: 17/752,496
- Filed: 2022-05-24
- Published: 2022-09-08
- Earliest claimed: 2018-07-30
- Assignees: Slack Technologies, LLC
- Applicants: Slack Technologies, LLC
- Inventors: Joshua Wills
- Web page: https://patentgrep.com/patent/US20220283944A1

## CPC

- G06F 12/0815: Cache consistency protocols
- G06F 16/00: Information retrieval; Database structures therefor; File system structures therefor
- G06F 16/2228: {Indexing structures}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/41: Indexing; Data structures therefor; Storage structures
- G06F 16/93: Document management systems
- G06Q 10/10: Office automation; Time management
- G06F 2212/1016: Performance improvement
- G06F 2212/608: Details relating to cache mapping
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Method, apparatus and computer program product for generating filter cache are described herein. For example, the apparatus includes at least one processor and at least one non-transitory memory including program code. The at least one non-transitory memory and the program code are configured to, with the at least one processor, cause the apparatus to at least generate an index document array, generate a group identifier lookup array, generate a channel identifier lookup array, and generate a filter cache for the index document array based at least on the group identifier lookup array and the channel identifier lookup array.

## Claims

### Claim 1

One or more non-transitory computer-readable media storing computer-executable instructions that, when executed by at least one processor, perform a method for providing permission-based document access, comprising:
identifying a set of groups to which a user has group access permissions;
identifying a set of channels within each group of the set of groups to which the user has channel access permissions;
identifying a plurality of document identifiers associated with each group of the set of groups;
identifying, based on the set of channels and the set of groups, a set of accessible document identifiers from the plurality of document identifiers to which the user has document access permissions;
generating a user-specific filter cache comprising the set of accessible document identifiers from the plurality of document identifiers;
storing the user-specific filter cache comprising the set of accessible document identifiers in a data store;
applying a filter query to the set of accessible document identifiers based at least in part on the user-specific filter cache;
after applying the filter query, analyzing the set of accessible document identifiers based on a search query; and
providing, to the user, access to a document associated with a respective accessible document identifier of the set of accessible document identifiers.

### Claim 2 (depends on 1)

The computer-readable media of claim 1, the method further comprising:
identifying a subsequent set of groups to which a subsequent user has subsequent group access permissions;
identifying a subsequent set of channels within each group of the subsequent set of groups to which the subsequent user has subsequent channel access permissions; and
identifying, based on the subsequent set of channels and the subsequent set of groups, a subsequent set of accessible document identifiers from the plurality of document identifiers to which the subsequent user has subsequent document access permissions.

### Claim 3 (depends on 2)

The computer-readable media of claim 2, the method further comprising:
generating a subsequent user-specific filter cache comprising the subsequent set of accessible document identifiers from the plurality of document identifiers; and
storing the subsequent user-specific filter cache comprising the subsequent set of accessible document identifiers in the data store,
wherein the subsequent set of accessible document identifiers is distinct from the set of accessible document identifiers.

### Claim 4 (depends on 3)

The computer-readable media of claim 3, the method further comprising:
applying a subsequent filter query to the subsequent set of accessible document identifiers based at least in part on the subsequent user-specific filter cache;
after applying the subsequent filter query, analyzing the subsequent set of accessible document identifiers based on a subsequent search query; and
providing, to the subsequent user, access to a subsequent document associated with a subsequent respective accessible document identifier of the subsequent set of accessible document identifiers.

### Claim 5 (depends on 1)

The computer-readable media of claim 1, wherein the set of accessible document identifiers of the user-specific filter cache is updated based on a change in a channel membership of the user.

### Claim 6 (depends on 1)

The computer-readable media of claim 1, the method further comprising:
identifying a plurality of group identifiers for the set of groups to which the user has the group access permissions; and
adding the plurality of group identifiers to a group identifier array associated with the set of groups to which the user has the group access permissions.

### Claim 7 (depends on 6)

The computer-readable media of claim 6, the method further comprising:
responsive to determining that a group identifier of the group identifier array is not unique, removing the group identifier from the group identifier array.

### Claim 8

A method for providing permission-based document access comprising:
identifying a set of groups to which a user has group access permissions;
identifying a set of channels within each group of the set of groups to which the user has channel access permissions;
identifying a plurality of document identifiers associated with each group of the set of groups;
identifying, based on the set of channels and the set of groups, a set of accessible document identifiers from the plurality of document identifiers to which the user has document access permissions;
generating a user-specific filter cache comprising the set of accessible document identifiers from the plurality of document identifiers;
storing the user-specific filter cache comprising the set of accessible document identifiers in a data store;
applying a filter query to the set of accessible document identifiers based at least in part on the user-specific filter cache;
after applying the filter query, analyzing the set of accessible document identifiers based on a search query; and
providing, to the user, access to a document associated with a respective accessible document identifier of the set of accessible document identifiers.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
identifying a subsequent set of groups to which a subsequent user has subsequent group access permissions;
identifying a subsequent set of channels within each group of the subsequent set of groups to which the subsequent user has subsequent channel access permissions; and
identifying, based on the subsequent set of channels and the subsequent set of groups, a subsequent set of accessible document identifiers from the plurality of document identifiers to which the subsequent user has subsequent document access permissions.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
generating a subsequent user-specific filter cache comprising the subsequent set of accessible document identifiers from the plurality of document identifiers; and
storing the subsequent user-specific filter cache comprising the subsequent set of accessible document identifiers in the data store,
wherein the subsequent set of accessible document identifiers is distinct from the set of accessible document identifiers.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
applying a subsequent filter query to the subsequent set of accessible document identifiers based at least in part on the subsequent user-specific filter cache;
after applying the subsequent filter query, analyzing the subsequent set of accessible document identifiers based on a subsequent search query; and
providing, to the subsequent user, access to a subsequent document associated with a subsequent respective accessible document identifier of the subsequent set of accessible document identifiers.

### Claim 12 (depends on 8)

The method of claim 8, wherein the set of accessible document identifiers of the user-specific filter cache is updated based on a change in a channel membership of the user.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
identifying a plurality of group identifiers for the set of groups to which the user has the group access permissions; and
adding the plurality of group identifiers to a group identifier array associated with the set of groups to which the user has the group access permissions.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
responsive to determining that a group identifier of the group identifier array is not unique, removing the group identifier from the group identifier array.

### Claim 15

A system comprising at least one processor and at least one non-transitory computer-readable media storing computer-executable instructions that, when executed by the at least one processor, perform a method for providing permission-based document access, comprising:
identifying a set of groups to which a user has group access permissions;
identifying a set of channels within each group of the set of groups to which the user has channel access permissions;
identifying a plurality of document identifiers associated with each group of the set of groups;
identifying, based on the set of channels and the set of groups, a set of accessible document identifiers from the plurality of document identifiers to which the user has document access permissions;
generating a user-specific filter cache comprising the set of accessible document identifiers from the plurality of document identifiers;
storing the user-specific filter cache comprising the set of accessible document identifiers in a data store;
applying a filter query to the set of accessible document identifiers based at least in part on the user-specific filter cache;
after applying the filter query, analyzing the set of accessible document identifiers based on a search query; and
providing, to the user, access to a document associated with a respective accessible document identifier of the set of accessible document identifiers.

### Claim 16 (depends on 15)

The system of claim 15, the method further comprising:
identifying a subsequent set of groups to which a subsequent user has subsequent group access permissions;
identifying a subsequent set of channels within each group of the subsequent set of groups to which the subsequent user has subsequent channel access permissions; and
identifying, based on the subsequent set of channels and the subsequent set of groups, a subsequent set of accessible document identifiers from the plurality of document identifiers to which the subsequent user has subsequent document access permissions.

### Claim 17 (depends on 16)

The system of claim 16, the method further comprising:
generating a subsequent user-specific filter cache comprising the subsequent set of accessible document identifiers from the plurality of document identifiers; and
storing the subsequent user-specific filter cache comprising the subsequent set of accessible document identifiers in the data store,
wherein the subsequent set of accessible document identifiers is distinct from the set of accessible document identifiers.

### Claim 18 (depends on 17)

The system of claim 17, the method further comprising:
applying a subsequent filter query to the subsequent set of accessible document identifiers based at least in part on the subsequent user-specific filter cache;
after applying the subsequent filter query, analyzing the subsequent set of accessible document identifiers based on a subsequent search query; and
providing, to the subsequent user, access to a subsequent document associated with a subsequent respective accessible document identifier of the subsequent set of accessible document identifiers.

### Claim 19 (depends on 15)

The system of claim 15, wherein the set of accessible document identifiers of the user-specific filter cache is updated based on a change in a channel membership of the user.

### Claim 20 (depends on 15)

The system of claim 15, the method further comprising:
identifying a plurality of group identifiers for the set of groups to which the user has the group access permissions; and
adding the plurality of group identifiers to a group identifier array associated with the set of groups to which the user has the group access permissions.
