Lucene++ - a full-featured, c++ search engine
API Documentation


QueryParserConstants.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef QUERYPARSERCONSTANTS_H
8 #define QUERYPARSERCONSTANTS_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
15 class LPPAPI QueryParserConstants {
16 protected:
18 
19 public:
20  virtual ~QueryParserConstants();
22 
23 public:
25  _EOF = 0,
26  _NUM_CHAR = 1,
27  _ESCAPED_CHAR = 2,
28  _TERM_START_CHAR = 3,
29  _TERM_CHAR = 4,
30  _WHITESPACE = 5,
31  _QUOTED_CHAR = 6,
32  AND = 8,
33  OR = 9,
34  NOT = 10,
35  PLUS = 11,
36  MINUS = 12,
37  LPAREN = 13,
38  RPAREN = 14,
39  COLON = 15,
40  STAR = 16,
41  CARAT = 17,
42  QUOTED = 18,
43  TERM = 19,
44  FUZZY_SLOP = 20,
45  PREFIXTERM = 21,
46  WILDTERM = 22,
47  RANGEIN_START = 23,
48  RANGEEX_START = 24,
49  NUMBER = 25,
50  RANGEIN_TO = 26,
51  RANGEIN_END = 27,
52  RANGEIN_QUOTED = 28,
53  RANGEIN_GOOP = 29,
54  RANGEEX_TO = 30,
55  RANGEEX_END = 31,
56  RANGEEX_QUOTED = 32,
57  RANGEEX_GOOP = 33
58  };
59 
60  enum LexicalState {
61  Boost = 0,
62  RangeEx = 1,
63  RangeIn = 2,
64  DEFAULT = 3
65  };
66 
69 
70 protected:
72  static const wchar_t* _tokenImage[];
73 };
74 
75 }
76 
77 #endif
Lucene::Collection< String >
Lucene::QueryParserConstants::RegularExpressionId
RegularExpressionId
Definition: QueryParserConstants.h:24
Lucene::QueryParserConstants::LexicalState
LexicalState
Definition: QueryParserConstants.h:60
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::QueryParserConstants
Token literal values and constants.
Definition: QueryParserConstants.h:15
LUCENE_INTERFACE
#define LUCENE_INTERFACE(Name)
Definition: LuceneObject.h:19
Lucene::QueryParserConstants::tokenImage
static Collection< String > tokenImage
Literal token values.
Definition: QueryParserConstants.h:68
LuceneObject.h

clucene.sourceforge.net