1 | /**************************************************************************
|
---|
2 | *
|
---|
3 | * invf.h -- Data structures for inverted files
|
---|
4 | * Copyright (C) 1994 Neil Sharman
|
---|
5 | *
|
---|
6 | * This program is free software; you can redistribute it and/or modify
|
---|
7 | * it under the terms of the GNU General Public License as published by
|
---|
8 | * the Free Software Foundation; either version 2 of the License, or
|
---|
9 | * (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This program is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | * GNU General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU General Public License
|
---|
17 | * along with this program; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
19 | *
|
---|
20 | * $Id: invf.h 16583 2008-07-29 10:20:36Z davidb $
|
---|
21 | *
|
---|
22 | **************************************************************************/
|
---|
23 |
|
---|
24 |
|
---|
25 |
|
---|
26 | #ifndef H_INVF
|
---|
27 | #define H_INVF
|
---|
28 |
|
---|
29 | /* NOTE: This does not include the magic number */
|
---|
30 | struct invf_dict_header
|
---|
31 | {
|
---|
32 | unsigned long lookback;
|
---|
33 | unsigned long dict_size;
|
---|
34 | unsigned long total_bytes;
|
---|
35 | unsigned long index_string_bytes;
|
---|
36 | double input_bytes; /* [RJM 07/97: 4G limit] */
|
---|
37 | unsigned long num_of_docs;
|
---|
38 | unsigned long static_num_of_docs;
|
---|
39 | unsigned long num_of_words;
|
---|
40 | unsigned long stemmer_num;
|
---|
41 | unsigned long stem_method;
|
---|
42 | };
|
---|
43 |
|
---|
44 | struct stem_dict_header
|
---|
45 | {
|
---|
46 | unsigned long lookback;
|
---|
47 | unsigned long block_size;
|
---|
48 | unsigned long num_blocks;
|
---|
49 | unsigned long blocks_start;
|
---|
50 | unsigned long index_chars;
|
---|
51 | unsigned long num_of_docs;
|
---|
52 | unsigned long static_num_of_docs;
|
---|
53 | unsigned long num_of_words;
|
---|
54 | unsigned long stemmer_num;
|
---|
55 | unsigned long stem_method;
|
---|
56 | unsigned long indexed; /* [RPAP - Jan 97: Stem Index Change] */
|
---|
57 | };
|
---|
58 |
|
---|
59 | struct invf_file_header
|
---|
60 | {
|
---|
61 | unsigned long no_of_words;
|
---|
62 | unsigned long no_of_ptrs;
|
---|
63 | unsigned long skip_mode;
|
---|
64 | unsigned long params[16];
|
---|
65 | unsigned long InvfLevel;
|
---|
66 | };
|
---|
67 |
|
---|
68 | /* [RPAP - Jan 97: Stem Index Change] */
|
---|
69 | struct stem_idx_header
|
---|
70 | {
|
---|
71 | unsigned long lookback;
|
---|
72 | unsigned long block_size;
|
---|
73 | unsigned long num_blocks;
|
---|
74 | unsigned long blocks_start;
|
---|
75 | unsigned long index_chars;
|
---|
76 | unsigned long num_of_words;
|
---|
77 | };
|
---|
78 |
|
---|
79 | #endif
|
---|