xapian-core  2.0.0
wdf-norm-dispatch.h
Go to the documentation of this file.
1 
4 /* Warning: This file is generated by ./weight/collate-wdf-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_WDF_NORM_DISPATCH_H
23 #define XAPIAN_INCLUDED_WDF_NORM_DISPATCH_H
24 
25 static const unsigned char wdf_norm_tab[] = {
26  11,
27 
28  1, 1, 19, 8, 1, 0, 32, 1,
29  1, 1, 57,
30 
31  (1 - 1),
32  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::SQUARE), 'S','Q','U','A','R','E',
33 
34  (2 - 1),
35  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::NONE), 'N','O','N','E',
36  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::SQRT), 'S','Q','R','T',
37 
38  (3 - 1),
39  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::AUG), 'A','U','G',
40  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::LOG), 'L','O','G',
41  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::MAX), 'M','A','X',
42 
43  (3 - 1),
44  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::AUG_LOG), 'A','U','G','_','L','O','G',
45  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::BOOLEAN), 'B','O','O','L','E','A','N',
46  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::PIVOTED), 'P','I','V','O','T','E','D',
47 
48  (2 - 1),
49  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::AUG_AVERAGE), 'A','U','G','_','A','V','E','R','A','G','E',
50  static_cast<unsigned char>(Xapian::TfIdfWeight::wdf_norm::LOG_AVERAGE), 'L','O','G','_','A','V','E','R','A','G','E'
51 };
52 
53 #endif
@ AUG
Augmented max wdf.
@ AUG_AVERAGE
Augmented average term frequency.
static const unsigned char wdf_norm_tab[]