Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
QueryParserConstants.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2011 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
{
17
protected
:
18
QueryParserConstants
();
19
20
public
:
21
virtual
~
QueryParserConstants
();
22
LUCENE_INTERFACE
(
QueryParserConstants
);
23
24
public
:
25
enum
RegularExpressionId
26
{
27
_EOF = 0,
28
_NUM_CHAR = 1,
29
_ESCAPED_CHAR = 2,
30
_TERM_START_CHAR = 3,
31
_TERM_CHAR = 4,
32
_WHITESPACE = 5,
33
_QUOTED_CHAR = 6,
34
AND = 8,
35
OR = 9,
36
NOT = 10,
37
PLUS = 11,
38
MINUS = 12,
39
LPAREN = 13,
40
RPAREN = 14,
41
COLON = 15,
42
STAR = 16,
43
CARAT = 17,
44
QUOTED = 18,
45
TERM = 19,
46
FUZZY_SLOP = 20,
47
PREFIXTERM = 21,
48
WILDTERM = 22,
49
RANGEIN_START = 23,
50
RANGEEX_START = 24,
51
NUMBER = 25,
52
RANGEIN_TO = 26,
53
RANGEIN_END = 27,
54
RANGEIN_QUOTED = 28,
55
RANGEIN_GOOP = 29,
56
RANGEEX_TO = 30,
57
RANGEEX_END = 31,
58
RANGEEX_QUOTED = 32,
59
RANGEEX_GOOP = 33
60
};
61
62
enum
LexicalState
63
{
64
Boost = 0,
65
RangeEx = 1,
66
RangeIn = 2,
67
DEFAULT = 3
68
};
69
71
static
Collection<String>
tokenImage
;
72
73
protected
:
75
static
const
wchar_t
* _tokenImage[];
76
};
77
}
78
79
#endif
clucene.sourceforge.net