3.1.6.1 Content Index Record

This is a standalone example of two content index records with property identifiers equal to 0x7ffeFFC8 and 0x7ffeFFC9. This example is not related to a full-text index catalog described in other examples.

Assumptions:

These content index records are written sequentially into a content index file with file version equal to 0x54. Previous content index records in content index file contained data about term "office" with property identifiers 1 and 2. The following two content index records contain data about term "office". Maximum document identifier for the current content index file is 300.

Previous content index records contained the following data:

property identifier = 1

  • docid: 1; Occurrences:2,3;

  • docid: 2; Occurrences: 1;

  • docid: 3; Occurrences: 1;

  • docid: 258; Occurrences: 1;

  • docid: 262; Occurrences: 1.

property identifier = 2

  • docid: 3; Occurrences: 1;

  • docid: 261; Occurrences: 1.

In this example:

property identifier = 0x7ffeFFC8

  • docid: 1;

  • docid: 3.

property identifier = 0x7ffeFFC9

  • docid: 2;

  • docid: 258;

  • docid: 262.

0

1

2

3

4

5

6

7

8

9

1

0

1

2

3

4

5

6

7

8

9

2

0

1

2

3

4

5

6

7

8

9

3

0

1

Previous index record

Link

...

Prefix4

Suffix4

C

PidBitCompress

...

A

B

C

...

AllPropertyRank

DocIdDelta

D

...

Link

Prefix4

E

...

PidBitCompress

...

F

G

Version

DocIdMask (32 bytes)

...

DocIdBitmapSize

H

Next Content Index Record

...

Previous Content Index Record: Continued from previous content index record.

Link (20 bits): For a value of 169, set to 00000000000010101001.

Prefix4 (4 bits): Set to 0110.

Suffix4 (4 bits): Set to 0000.

C (1 bit): Set to 1.

PidBitCompress (38 bits): For a value of 0x7ffeFFC8, set to 11111111111111111101111111111110010000.

A - DocID Count (4 bits): For a doc count of 2, set to 0001.

B - Average DocID bitcount (5 bits): For a bit count of 8, set to 00111.

C - DocIdDelta (9 bits): For a delta of 1, set to 000000000.

AllPropertyRank (12 bits): Set to 110000000000.

DocIdDelta (9 bits): For a delta of 2, set to 000000010.

D - AllPropertyRank (12 bits): Set to 101000000000.

Link (20 bits): For a link of 372, set to 00000000000101110100.

Prefix4 (4 bits): Set to 0110.

E - Suffix4 (4 bits): Set to 0000.

PidBitCompress (38 bits): For a value of 0x7ffeFFC9, set to 11111111111111111101111111111110010010.

F - DocID Count (4 bits): Set to 0001.

G - Average DocID bitcount (5 bits): Set to 00110.

Version (4 bits): Set to 0000.

DocIdMask (32 bytes): Set to the following:

 00100010000000000000000000000000
 00000000000000000000000000000000
 00000000000000000000000000000000
 00000000000000000000000000000000
 00000000000000000000000000000000
 00000000000000000000000000000000
 00000000000000000000000000000000
 00000000000000000000000000000000

DocIdBitmapSize (4 bytes): For a size of 5, set to 00000000000000000000000000000101.

H - DocIdBitmap (5 bits): Set to 10110.

Next Content Index Record: Beginning of the next content index record.