strus  0.17
constants.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_GLOBAL_CONSTANTS_HPP_INCLUDED
11 #define _STRUS_GLOBAL_CONSTANTS_HPP_INCLUDED
12 
13 namespace strus
14 {
15 
17 struct Constants
18 {
21  static const char* attribute_docid()
22  {
23  return "docid";
24  }
26  static const char* identifier_docno()
27  {
28  return "docno";
29  }
31  static const char* identifier_acl()
32  {
33  return "acl";
34  }
36  static const char* identifier_position()
37  {
38  return "position";
39  }
42  static const char* operator_set_union()
43  {
44  return "union";
45  }
49  {
50  return "intersect";
51  }
54  static const char* operator_query_phrase_sequence()
55  {
56  return "sequence";
57  }
59  static const char* query_empty_postings_termtype()
60  {
61  return "";
62  }
65  static unsigned int storage_max_position_info()
66  {
67  return 65535;
68  }
70  static const char* standard_vector_storage()
71  {
72  return "vector_std";
73  }
75  static const char* standard_vector_storage_module()
76  {
77  return "storage_vector_std";
78  }
80  static const char* standard_pattern_matcher()
81  {
82  return "std";
83  }
85  static const char* standard_pattern_matcher_module()
86  {
87  return "analyzer_pattern";
88  }
91  {
92  return '#';
93  }
94 };
95 
96 }//namespace
97 #endif
static const char * identifier_acl()
Get the name reserved for addressing ACLs (access control lists)
Definition: constants.hpp:31
static const char * identifier_position()
Get the name reserved for ordinal positions assigned to terms in a document.
Definition: constants.hpp:36
static const char * query_empty_postings_termtype()
Get the term type that does not exist and is reserved for the empty posting set.
Definition: constants.hpp:59
static const char * standard_vector_storage_module()
Get the name of the standard (default) vector storage module.
Definition: constants.hpp:75
Some reserved global constants that document some dependencies (hacks) that did not get yet into inte...
Definition: constants.hpp:17
static const char * operator_set_union()
Get the name of the set union operator for postings.
Definition: constants.hpp:42
static const char * standard_pattern_matcher_module()
Get the name of the standard (default) pattern match module.
Definition: constants.hpp:85
static const char * attribute_docid()
Get the attribute name for the document id.
Definition: constants.hpp:21
static char standard_word2vec_type_feature_separator()
Get the default type feature separator in a word2vec vector file (where you have only a single identi...
Definition: constants.hpp:90
static const char * standard_vector_storage()
Get the name of the standard (default) vector storage.
Definition: constants.hpp:70
static const char * operator_query_phrase_sequence()
Get the name of the set join operator for postings for query phrase terms that got ascending position...
Definition: constants.hpp:54
static unsigned int storage_max_position_info()
Get the maximum position (counted from 1) in a document a token can have.
Definition: constants.hpp:65
static const char * operator_query_phrase_same_position()
Get the name of the set join operator for postings for query phrase terms that got the same position ...
Definition: constants.hpp:48
static const char * identifier_docno()
Get the name reserved for the internal document number.
Definition: constants.hpp:26
static const char * standard_pattern_matcher()
Get the name of the standard (default) pattern matcher.
Definition: constants.hpp:80