xapian-core  2.0.0
idf-norm-dispatch.h
Go to the documentation of this file.
1 
4 /* Warning: This file is generated by ./weight/collate-idf-norm - do not modify directly! */
5 /* Copyright (C) 2020 Dipanshu Garg
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, see
19  * <https://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef XAPIAN_INCLUDED_IDF_NORM_DISPATCH_H
23 #define XAPIAN_INCLUDED_IDF_NORM_DISPATCH_H
24 
25 static const unsigned char idf_norm_tab[] = {
26  23,
27 
28  1, 1, 1, 37, 0, 7, 15, 1,
29  1, 1, 24, 1, 1, 1, 53, 70,
30  1, 1, 1, 1, 1, 1, 88,
31 
32  (1 - 1),
33  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::TFIDF), 'T','F','I','D','F',
34 
35  (1 - 1),
36  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::SQUARE), 'S','Q','U','A','R','E',
37 
38  (1 - 1),
39  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::PIVOTED), 'P','I','V','O','T','E','D',
40 
41  (1 - 1),
42  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::GLOBAL_FREQ), 'G','L','O','B','A','L','_','F','R','E','Q',
43 
44  (3 - 1),
45  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::FREQ), 'F','R','E','Q',
46  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::NONE), 'N','O','N','E',
47  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::PROB), 'P','R','O','B',
48 
49  (1 - 1),
50  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::LOG_GLOBAL_FREQ), 'L','O','G','_','G','L','O','B','A','L','_','F','R','E','Q',
51 
52  (1 - 1),
53  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::SQRT_GLOBAL_FREQ), 'S','Q','R','T','_','G','L','O','B','A','L','_','F','R','E','Q',
54 
55  (1 - 1),
56  static_cast<unsigned char>(Xapian::TfIdfWeight::idf_norm::INCREMENTED_GLOBAL_FREQ), 'I','N','C','R','E','M','E','N','T','E','D','_','G','L','O','B','A','L','_','F','R','E','Q'
57 };
58 
59 #endif
@ GLOBAL_FREQ
Global frequency IDF.
@ LOG_GLOBAL_FREQ
Log global frequency IDF.
@ SQRT_GLOBAL_FREQ
Square root global frequency IDF.
@ INCREMENTED_GLOBAL_FREQ
Incremented global frequency IDF.
static const unsigned char idf_norm_tab[]