# US 2008/0301130 A1 · Method, system and article of manufacture for searching documents for ranges of numeric values

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

- Number: US 2008/0301130 A1
- Document ID: US20080301130A1
- Status: Published application
- Kind: A1
- Application number: 12/190,495
- Filed: 2008-08-12
- Published: 2008-12-04
- Earliest claimed: 2004-09-24
- Assignees: International Business Machines Corporation
- Inventors: Marcus Felipe Fontoura; Ronny Lempel; Runping Qi; Jason Yeong Zien
- Web page: https://patentgrep.com/patent/US20080301130A1

## CPC

- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/9538: Presentation of query results
- Y10S 707/99933: Query processing, i.e. searching
- Y10S 707/99937: Sorting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

Provided are a method, system, and article of manufacture for searching documents for ranges of numeric values. Document identifiers for documents are accessed, wherein the documents include at least one value that is a member of a set of values. A number of posting lists are generated. Each posting list is associated with a range of consecutive values within the set of values and includes document identifiers for documents including at least one value within the range of consecutive values associated with the posting list, and wherein each document identifier is associated with one value in the set of values included in the document identified by the document identifier. The generated posting lists are stored, wherein the posting lists are used to process a query on a range of values within the set of values.

## Claims

### Claim 1

A computer implemented method, comprising:
accessing document identifiers for documents, wherein the documents include at least one value that is a member of a set of values;
generating a number of posting lists, wherein each posting list is associated with a range of consecutive values within the set of values and includes document identifiers for documents including at least one value within the range of consecutive values associated with the posting list, and wherein each document identifier is associated with one value in the set of values included in the document identified by the document identifier; and
storing the generated posting lists, wherein the posting lists are used to process a query on a range of values within the set of values.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
sorting the document identifier and value pairs in each posting list by the document identifiers.

### Claim 3 (depends on 1)

The method of claim 1, wherein the range associated with each posting list includes a number of values determined by dividing the number of values in the set of values by the number of posting lists.

### Claim 4 (depends on 1)

The method of claim 1, wherein the set of values comprises at least one of an integer and a real number.

### Claim 5

A computer implemented method, comprising:
accessing document identifiers for documents including at least one value that is a member of a set of values;
generating a number of posting lists associated with a first level, wherein each posting list is associated with a range of consecutive values within the set of values and includes document identifiers for documents including at least one value within the range of consecutive values associated with the posting list, and wherein each document identifier is associated with one value in the set of values included in the document identified by the document identifier; and
performing at least one iteration of generating posting lists for an additional level, wherein each posting list generated for the additional level is formed by merging at least two posting lists associated with a previous level, wherein each generated posting list at one additional level is associated with consecutive values in the set of values, wherein each document in the generated posting list at the additional level includes one value in the consecutive values associated with the posting list at the additional level, and wherein a new additional level and posting lists associated therewith are generated with each iteration.

### Claim 6 (depends on 5)

The method of claim 5, wherein the number of posting lists generated for the first level is a function of a number of the values in the set of values and a maximum number of records to filter in posting lists at the first level.

### Claim 7 (depends on 6)

The method of claim 6, wherein the function comprises dividing the number of values in the set of values by two times the maximum number of records to filter.

### Claim 8 (depends on 5)

The method of claim 5, wherein each posting list generated for one additional level is formed by merging a fixed number of posting lists associated with the previous level.

### Claim 9 (depends on 8)

The method of claim 8, wherein the fixed number of posting lists is a function of the number of posting lists generated for the first level and a number of levels for which posting lists are generated.

### Claim 10 (depends on 5)

The method of claim 5, wherein the additional iterations are performed to generate posting lists for a number of levels.

### Claim 11 (depends on 5)

The method of claim 5, further comprising:
filtering at least one of the determined posting lists at the first level in response to the determined posting lists at the first level including values outside of the query range of values to remove values not within the query range of values to form at least one filtered posting list only including values within the query range of values, wherein merging the determined posting lists comprising merging the at least one filtered posting list and determined posting lists that are not subject to filtering.

### Claim 12 (depends on 11)

The method of claim 11, wherein merging the determined posting lists comprises:
accessing documents identifiers associated with a lowest value from the determined posting lists;
adding the accessed document identifiers to the merged posting list; and
repeating the operations of accessing and adding the document identifiers for a next lowest value from the determined posting lists until all the document identifiers in the determined posting lists have been added to the merged posting list, wherein the document identifiers in the merged posting list are sorted according to the values associated with the document identifiers.

### Claim 13 (depends on 5)

The method of claim 5, wherein the set of values comprises at least one of an integer and a real number.

### Claim 14

A system in communication, comprising:
a processor;
a computer readable medium including code executed by the processor to perform operations, the operations comprising:
accessing document identifiers for documents, wherein the documents include at least one value that is a member of a set of values;
generating a number of posting lists, wherein each posting list is associated with a range of consecutive values within the set of values and includes document identifiers for documents including at least one value within the range of consecutive values associated with the posting list, and wherein each document identifier is associated with one value in the set of values included in the document identified by the document identifier; and
storing the generated posting lists, wherein the posting lists are used to process a query on a range of values within the set of values.

### Claim 15 (depends on 14)

The system of claim 14, wherein the range associated with each posting list includes a number of values determined by dividing the number of values in the set of values by the number of posting lists.

### Claim 16 (depends on 14)

The system of claim 14, wherein the set of values comprises at least one of an integer and a real number.

### Claim 17

An article of manufacture comprising at least one of a hardware device implementing logic and a computer storage media having computer executable code to cause operations to be performed, the operations comprising:
accessing document identifiers for documents, wherein the documents include at least one value that is a member of a set of values;
generating a number of posting lists, wherein each posting list is associated with a range of consecutive values within the set of values and includes document identifiers for documents including at least one value within the range of consecutive values associated with the posting list, and wherein each document identifier is associated with one value in the set of values included in the document identified by the document identifier; and
storing the generated posting lists, wherein the posting lists are used to process a query on a range of values within the set of values.

### Claim 18 (depends on 17)

The article of manufacture of claim 17, wherein the operations further comprise:
sorting the document identifier and value pairs in each posting list by the document identifiers.

### Claim 19 (depends on 17)

The article of manufacture of claim 17, wherein the range associated with each posting list includes a number of values determined by dividing the number of values in the set of values by the number of posting lists.

### Claim 20 (depends on 17)

The system of claim 17, wherein the set of values comprises at least one of an integer and a real number.
