~slub.team/goobi-indexserver/3.x

« back to all changes in this revision

Viewing changes to lucene/contrib/memory/src/test/org/apache/lucene/index/memory/testqueries.txt

  • Committer: Sebastian Meyer
  • Date: 2012-08-03 09:12:40 UTC
  • Revision ID: sebastian.meyer@slub-dresden.de-20120803091240-x6861b0vabq1xror
Remove Lucene and Solr source code and add patches instead
Fix Bug #985487: Auto-suggestion for the search interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# queries extracted from TestQueryParser.java
3
 
#
4
 
Apache
5
 
Apach~ AND Copy*
6
 
 
7
 
a AND b
8
 
(a AND b)
9
 
c OR (a AND b)
10
 
a AND NOT b
11
 
a AND -b
12
 
a AND !b
13
 
a && b
14
 
a && ! b
15
 
 
16
 
a OR b
17
 
a || b
18
 
a OR !b
19
 
a OR ! b
20
 
a OR -b
21
 
 
22
 
+term -term term
23
 
foo:term AND field:anotherTerm
24
 
term AND "phrase phrase"
25
 
"hello there"
26
 
 
27
 
germ term^2.0
28
 
(term)^2.0
29
 
(germ term)^2.0
30
 
term^2.0
31
 
term^2
32
 
"germ term"^2.0
33
 
"term germ"^2
34
 
 
35
 
(foo OR bar) AND (baz OR boo)
36
 
((a OR b) AND NOT c) OR d
37
 
+(apple "steve jobs") -(foo bar baz)
38
 
+title:(dog OR cat) -author:"bob dole"
39
 
 
40
 
 
41
 
a&b
42
 
a&&b
43
 
.NET
44
 
 
45
 
"term germ"~2
46
 
"term germ"~2 flork
47
 
"term"~2
48
 
"~2 germ"
49
 
"term germ"~2^2
50
 
 
51
 
3
52
 
term 1.0 1 2
53
 
term term1 term2
54
 
 
55
 
term*
56
 
term*^2
57
 
term~
58
 
term~0.7
59
 
term~^2
60
 
term^2~
61
 
term*germ
62
 
term*germ^3
63
 
 
64
 
 
65
 
term*
66
 
Term*
67
 
TERM*
68
 
term*
69
 
Term*
70
 
TERM*
71
 
 
72
 
// Then 'full' wildcard queries:
73
 
te?m
74
 
Te?m
75
 
TE?M
76
 
Te?m*gerM
77
 
te?m
78
 
Te?m
79
 
TE?M
80
 
Te?m*gerM
81
 
 
82
 
term term term
83
 
term +stop term
84
 
term -stop term
85
 
drop AND stop AND roll
86
 
term phrase term
87
 
term AND NOT phrase term
88
 
stop
89
 
 
90
 
 
91
 
[ a TO c]
92
 
[ a TO c ]
93
 
{ a TO c}
94
 
{ a TO c }
95
 
{ a TO c }^2.0
96
 
[ a TO c] OR bar
97
 
[ a TO c] AND bar
98
 
( bar blar { a TO c}) 
99
 
gack ( bar blar { a TO c}) 
100
 
 
101
 
 
102
 
+weltbank +worlbank
103
 
+weltbank\n+worlbank
104
 
weltbank \n+worlbank
105
 
weltbank \n +worlbank
106
 
+weltbank\r+worlbank
107
 
weltbank \r+worlbank
108
 
weltbank \r +worlbank
109
 
+weltbank\r\n+worlbank
110
 
weltbank \r\n+worlbank
111
 
weltbank \r\n +worlbank
112
 
weltbank \r \n +worlbank
113
 
+weltbank\t+worlbank
114
 
weltbank \t+worlbank
115
 
weltbank \t +worlbank
116
 
 
117
 
 
118
 
term term term
119
 
term +term term
120
 
term term +term
121
 
term +term +term
122
 
-term term term
123
 
 
124
 
 
125
 
on^1.0
126
 
"hello"^2.0
127
 
hello^2.0
128
 
"on"^1.0
129
 
the^3