aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/rankingexpression/rankingexpressionlist
blob: def378069a89a6bfdbecd13839012414fea8b307 (plain) (blame)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# This file is a list of semicolon separated strings. The first string is the expression to be parsed, whereas all
# following strings are allowed ways to print the parsed expression. If no alternatives are given, the expression can be
# printed as the original. Note that all strings are trimmed before they are parsed / compared.
  1
1.0; 1.0; 1
1e1; 1e1; 10.0
1e-1; 1e-1; 0.1
1.0e1; 1.0e1; 10.0
1.0e-1; 1.0e-1; 0.1
-1; -1
1 + -1; 1 + -1; 1 - 1
-1 + 1; -1 + 1
tan(10)
1
 1
 1 + 2
 1 - 2
 1 * 2
 1 / 2
 1 + 2 - 3
 1 + 2 - 3 * 4
 1 + 2 - 3 * 4 / 5
1+2-3*4/5; 1 + 2 - 3 * 4 / 5
(1)
(1)+ 2; (1) + 2
(1)+(2); (1) + (2)
(1)+(2)-3; (1) + (2) - 3
(1)+(2)-(3); (1) + (2) - (3)
(1)+(2)-(3)*4; (1) + (2) - (3) * 4
(1)+(2)-(3)*(4); (1) + (2) - (3) * (4)
(1)+(2)-(3)*(4)/5; (1) + (2) - (3) * (4) / 5
(1)+(2)-(3)*(4)/(5); (1) + (2) - (3) * (4) / (5)
 1 +(2)-(3)*(4)/(5); 1 + (2) - (3) * (4) / (5)
 1 + 2 -(3)*(4)/(5); 1 + 2 - (3) * (4) / (5)
 1 + 2 - 3 *(4)/(5); 1 + 2 - 3 * (4) / (5)
 1 + 2 - 3 * 4 /(5); 1 + 2 - 3 * 4 / (5)
 1 + 2 - 3 * 4 / 5 ; 1 + 2 - 3 * 4 / 5
(1 + 2)
(1 + 2)- 3; (1 + 2) - 3
(1 + 2 - 3)
(1 + 2 - 3)* 4; (1 + 2 - 3) * 4
(1 + 2 - 3 * 4)
(1 + 2 - 3 * 4)/ 5; (1 + 2 - 3 * 4) / 5
(1 + 2 - 3 * 4 / 5)
 1 +(2 - 3 * 4 / 5); 1 + (2 - 3 * 4 / 5)
 1 + 2 -(3 * 4 / 5); 1 + 2 - (3 * 4 / 5)
 1 + 2 - 3 *(4 / 5); 1 + 2 - 3 * (4 / 5)
1+2-3*(4/5); 1 + 2 - 3 * (4 / 5)
log(1)
log( 1 ); log(1)
log( 1 + 2 ); log(1 + 2)
log( 1 + 2 - 3 ); log(1 + 2 - 3)
log( 1 + 2 - 3 * 4 ); log(1 + 2 - 3 * 4)
log( 1 + 2 - 3 * 4 / 5 ); log(1 + 2 - 3 * 4 / 5)
log((1 + 2)- 3 * 4 / 5 ); log((1 + 2) - 3 * 4 / 5)
log( 1 +(2 - 3)* 4 / 5 ); log(1 + (2 - 3) * 4 / 5)
log( 1 + 2 -(3 * 4)/ 5 ); log(1 + 2 - (3 * 4) / 5)
log( 1 + 2 - 3 *(4 / 5)); log(1 + 2 - 3 * (4 / 5))
log(1+2-3*4/5); log(1 + 2 - 3 * 4 / 5)
""; ""
"foo"
"foo\""
(1+"foo"); (1 + "foo")
if("foo" == "bar", 1, 2); if ("foo" == "bar", 1, 2)
cosh(1); cosh(1)
cosh (1); cosh(1)
cosh ( 1 ); cosh(1)
cosh ( foo ); cosh(foo)
cosh ( foo.out ); cosh(foo.out)
cosh ( foo ( bar ) . out ); cosh(foo(bar).out)
sin(10)
cos(10)
tan(10)
acos(10)
asin(10)
atan(10)
cosh(10)
sinh(10)
tanh(10)
exp(10)
log(10)
log10(10)
sqrt(10)
ceil(10)
fabs(10)
floor(10)
relu(10)
sigmoid(10)
atan2(10, 20); atan2(10,20)
hamming(42, -16); hamming(42,-16)
ldexp(10, 20); ldexp(10,20)
pow(10, 20); pow(10,20)
fmod(10, 20); fmod(10,20)
min(0, 1); min(0,1)
max(1, 0); max(1,0)
if(1<2,3,4); if (1 < 2, 3, 4)
if(1>2,3,4); if (1 > 2, 3, 4)
if(1==2,3,4); if (1 == 2, 3, 4)
if(1~=2,3,4); if (1 ~= 2, 3, 4)
if(1<=2,3,4); if (1 <= 2, 3, 4)
if(1>=2,3,4); if (1 >= 2, 3, 4)
if(1>=2,3,4,0.3); if (1 >= 2, 3, 4, 0.3)
if(1>=2,3,4,0.5); if (1 >= 2, 3, 4, 0.5)
if (1   <   2,   3,   4); if (1 < 2, 3, 4)
if (1+2 <   3,   4,   5); if (1 + 2 < 3, 4, 5)
if (1   < 2+3,   4,   5); if (1 < 2 + 3, 4, 5)
if (1   <   2, 3+4,   5); if (1 < 2, 3 + 4, 5)
if (1   <   2,   3, 4+5); if (1 < 2, 3, 4 + 5)
if (foo in [bar], 6, 9); if (foo in [bar], 6, 9)
if (foo in [bar,baz], 6, 9); if (foo in [bar, baz], 6, 9)
if (foo in [bar,baz,cox], 6, 9); if (foo in [bar, baz, cox], 6, 9)
if (foo in [bar], 6, 9)
if (foo in [bar, baz], 6, 9)
if (foo in [bar, baz, cox], 6, 9)
if (foo in [ bar ], 6, 9); if (foo in [bar], 6, 9)
if (foo in [ bar,  baz ], 6, 9); if (foo in [bar, baz], 6, 9)
if (foo in [ bar,  baz,  cox ], 6, 9); if (foo in [bar, baz, cox], 6, 9)
feature;                                    feature
fe@ture;                                    fe@ture
featur@;                                    featur@
fe$ture;                                    fe$ture
featur$;                                    featur$
feature.out;                                feature.out
feature .out;                               feature.out
feature . out;                              feature.out
feature.out.out;                            feature.out.out
feature.if
feature.in
feature(arg1);                              feature(arg1)
feature (arg1);                             feature(arg1)
feature ( arg1);                            feature(arg1)
feature ( arg1 );                           feature(arg1)
feature(arg1,arg2);                         feature(arg1,arg2)
feature(arg1 ,arg2);                        feature(arg1,arg2)
feature(arg1 , arg2);                       feature(arg1,arg2)
feature(arg1 , arg2).out;                   feature(arg1,arg2).out
feature(arg1 , arg2) .  out;                feature(arg1,arg2).out
feature("\",difficult","\")arguments\\").out
feature(arg1,arg2).out;                     feature(arg1,arg2).out
feature(if)
feature(in)
feature(cos)
feature("cos(1,2)")
feature(cos,sin,tan,cosh,sinh,tanh,acos,asin,atan,exp,log10,log,sqrt,ceil,fabs,floor)
feature(cos,"sin(1,2)",3)
rankingExpression(foo@92c9e83e1b665d2c.fe5dbbcea5ce7e29).rankingScript
rankingExpression(foo@92c9e83e1b665d2c.2e5dbbcea5ce7e29).rankingScript
mysum ( mysum(4,  4), value( 4 ), value(4) ); mysum(mysum(4,4),value(4),value(4))
"\\"
"\""
"\f"
"\female"
"\n"
"\nude"
"\r"
"fa\rt"
"\t"
"fe\tish"
"\x10081977"; "x10081977"
"10\\x081977"
"1008\x1977"; "1008x1977"
"100819\\x77"
if(1.09999~=1.1,2,3); if (1.09999 ~= 1.1, 2, 3)
10 % 3
1 && 0 || 1
!a && (a || a)
10 ^ 3