# US 2008/0306927 A1 · Index Partitioning and Scope Checking

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

- Number: US 2008/0306927 A1
- Document ID: US20080306927A1
- Status: Published application
- Kind: A1
- Application number: 11/924,596
- Filed: 2007-10-25
- Published: 2008-12-11
- Earliest claimed: 2007-06-10
- Assignees: Apple Computer, Inc.
- Inventors: John Martin Hoernkvist
- Web page: https://patentgrep.com/patent/US20080306927A1

## CPC

- G06F 16/901: Indexing; Data structures therefor; Storage structures (for retrieval from the web G06F16/951)
- G06F 16/907: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for processing an index are described. Searches are scope checked more efficiently using a forward lookup process based on the size of the requested search scope. In addition, an index is partitioned into separate stores based on a search scope that is learned based on where the user commonly conducts searches. As an example, a separate store may be created for a user's home directory should the user be conducting most of his or her searches in that directory. In addition to limiting the size of the index, during retrieval, intelligent index partitioning avoids the need to scope check a common search location.

## Claims

### Claim 1

A machine-implemented method of partitioning an inverted index, the method comprising:
determining a search scope for a user based on a location in which a user conducts searches;
storing an index referencing items occurring within the determined search scope in an index store separate from an index referencing items occurring outside the determined search scope; and
retrieving items from the index store in response to a search conducted in the location corresponding to the determined search scope.

### Claim 2 (depends on 1)

The machine-implemented method of claim 1, wherein the location in which the user conducts searches includes a directory within which the user conducts searches.

### Claim 3 (depends on 1)

The machine-implemented method of claim 1, wherein the determined search scope is a directory that meets criteria for storing the index referencing items occurring within the determined search scope in the separate index store, the criteria including the directory experiencing a greater number of searches relative to children in the directory, the directory experiencing a greater number of searches relative to the total number of searches experienced in the parent of the directory, the directory experiencing a large amount of processor time to scope check searches, the directory having a number of children that exceeds a threshold size to be considered a small directory.

### Claim 4

A machine-implemented method of scoping a result set of an index, the method comprising:
receiving a search having a query and a requested scope;
running the query against an index to produce a result set;
determining that a number of candidate results in the result set exceeds a threshold
for filtering the result set to the requested scope using a reverse lookup; and filtering the result set to the requested scope using a forward lookup of the requested scope location.

### Claim 5 (depends on 4)

The machine-implemented method of claim 4, further comprising determining that a directory size of the requested scope location is within a threshold for filtering the result set to the requested scope using the forward lookup of the requested scope location.

### Claim 6 (depends on 4)

The machine-implemented method of claim 4, wherein filtering the result set to the requested scope using the forward lookup of the requested scope location comprises:
generating a list of files within the requested scope location; and
removing from the result set those candidate results that are not in one of the list of files.

### Claim 7 (depends on 4)

The machine-implemented method of claim 4, further comprising:
counting a number of children in a directory of the requested scope location during the forward lookup; and
updating the directory size of the requested scope location with the counted number of children.

### Claim 8

A machine-implemented method of processing an index to facilitate searching the index, the method comprising:
receiving a search having a query and a requested scope;
running the query against an index to produce a result set;
tracking a number of candidate results in the result set, the requested scope of the search, and an amount of time expended to filter the result set to the requested scope;
identifying requested scope locations meeting criteria for inefficient searching based on the tracking; and
moving identified scope locations meeting criteria for inefficient searching to a separate index.

### Claim 9 (depends on 8)

The machine-implemented method of claim 8, wherein locations meeting the criteria for inefficient searching comprises:
locations experiencing a greater number of searches relative to children of the location,
locations experiencing a greater number of searches relative to the total number of searches experienced in the parent of the location, and
locations experiencing a large amount of processor time to scope check searches.

### Claim 10 (depends on 9)

The machine-implemented method of claim 9, wherein locations meeting the criteria for inefficient searching further comprises locations having a number of children that exceeds a threshold size for the location to be considered small.

### Claim 11

A machine-readable medium containing executable program instructions for causing a data processing system to perform a method of processing an index to facilitate searching the index, the method comprising:
receiving a search having a query and a requested scope;
running the query against an index to produce a result set;
tracking a number of candidate results in the result set, the requested scope of the search, and an amount of time expended to filter the result set to the requested scope;
identifying requested scope locations meeting criteria for inefficient searching based on the tracking; and
moving identified scope locations meeting criteria for inefficient searching to a separate index.

### Claim 12 (depends on 11)

A machine readable medium as in claim 11, wherein locations meeting the criteria for inefficient searching comprises:
locations experiencing a greater number of searches relative to children of the location,
locations experiencing a greater number of searches relative to the total number of searches experienced in the parent of the location, and
locations experiencing a large amount of processor time to scope check searches.

### Claim 13 (depends on 12)

A machine readable medium as in claim 12, wherein locations meeting the criteria for inefficient searching further comprises locations having a number of children that exceeds a threshold size for the location to be considered small.

### Claim 14

A data processing system comprising:
means for receiving a search having a query and a requested scope;
means for running the query against an index to produce a result set;
means for tracking a number of candidate results in the result set, the requested scope of the search, and an amount of time expended to filter the result set to the requested scope;
means for identifying requested scope locations meeting criteria for inefficient searching based on the tracking; and
means for moving identified scope locations meeting criteria for inefficient searching to a separate index.

### Claim 15 (depends on 14)

The data processing system as in claim 14, wherein means for identifying requested scope locations meeting criteria for inefficient searching based on the tracking comprises:
means for identifying locations experiencing a greater number of searches relative to children of the location,
means for identifying locations experiencing a greater number of searches relative to the total number of searches experienced in the parent of the location, and
means for identifying locations experiencing a large amount of processor time to scope check searches.

### Claim 16 (depends on 15)

The data processing system as in claim 15, wherein means for identifying requested scope locations meeting criteria for inefficient searching based on the tracking further comprises means for identifying locations having a number of children that exceeds a threshold size for the location to be considered small.
