forked from Yegoroff/PlainElastic.Net
/
Enums.cs
81 lines (69 loc) · 1.95 KB
/
Enums.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
namespace PlainElastic.Net
{
public enum Operator
{
/// <summary>
/// When OR operator used, the query 'capital of Hungary' is translated to 'capital OR of OR Hungary'
/// </summary>
OR,
/// <summary>
/// When AND operator used, the query 'capital of Hungary' is translated to 'capital AND of AND Hungary'
/// </summary>
AND
}
/// <summary>
/// Analyzers that can be used in order to both break indexed (analyzed) fields when a document is indexed and process query strings.
/// see: http://www.elasticsearch.org/guide/reference/index-modules/analysis/
/// </summary>
public enum DefaultAnalyzers
{
standard,
simple,
whitespace,
stop,
keyword,
pattern,
snowball
}
/// <summary>
/// Pattern analyzer regular expression flags.
/// see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#field_summary
/// </summary>
[Flags]
public enum RegexFlags
{
/// <summary>
/// Enables canonical equivalence.
/// </summary>
CANON_EQ = 1,
/// <summary>
/// Enables case-insensitive matching.
/// </summary>
CASE_INSENSITIVE = 2,
/// <summary>
/// Permits whitespace and comments in pattern.
/// </summary>
COMMENTS = 4,
/// <summary>
/// Enables dotall mode.
/// </summary>
DOTALL = 8,
/// <summary>
/// Enables literal parsing of the pattern.
/// </summary>
LITERAL = 0x10,
/// <summary>
/// Enables multiline mode.
/// </summary>
MULTILINE = 0x20,
/// <summary>
/// Enables Unicode-aware case folding.
/// </summary>
UNICODE_CASE = 0x40,
/// <summary>
/// Enables Unix lines mode.
/// </summary>
UNIX_LINES = 0x80
}
}