Real index test [broken]
diff --git a/src/test/resources/korap.conf b/src/test/resources/korap.conf
new file mode 100644
index 0000000..555b1a8
--- /dev/null
+++ b/src/test/resources/korap.conf
@@ -0,0 +1,5 @@
+# Lucene Backend properties
+lucene.properties = true
+lucene.index = /home/ndiewald/Repositories/korap/KorAP-modules/KorAP-lucene-index/sandbox/index
+lucene.index.commit.count = 5000
+lucene.index.commit.log = log/korap.commit.log
\ No newline at end of file
diff --git a/src/test/resources/queries/bsp1.json b/src/test/resources/queries/bsp1.json
new file mode 100644
index 0000000..4085309
--- /dev/null
+++ b/src/test/resources/queries/bsp1.json
@@ -0,0 +1,76 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/query",
+ "@language":"de",
+ "operands":{
+ "@id":"korap:operands",
+ "@container":"@list"
+ },
+ "relation":{
+ "@id":"korap:relation",
+ "@type":"korap:relation#types"
+ },
+ "class":{
+ "@id":"korap:class",
+ "@type":"xsd:integer"
+ },
+ "query":"korap:query",
+ "filter":"korap:filter",
+ "meta":"korap:meta"
+ },
+ "query":{
+ "@type":"korap:group",
+ "relation":"or",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:foo",
+ "relation":"="
+ }
+ },
+ {
+ "@type":"korap:sequence",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:foo",
+ "relation":"="
+ }
+ },
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:bar",
+ "relation":"="
+ },
+ "repetition":"*"
+ }
+ ]
+ }
+ ]
+ },
+ "meta":{
+ "@type":"korap:meta",
+ "@value":{
+ "@type":"korap:group",
+ "operands":[
+ {
+ "@type":"korap:term",
+ "@value":"author:Goethe",
+ "relation":"="
+ },
+ {
+ "@type":"korap:term",
+ "@value":"year:1815",
+ "relation":"="
+ }
+ ],
+ "relation":"and"
+ }
+ }
+}
diff --git a/src/test/resources/queries/bsp2.json b/src/test/resources/queries/bsp2.json
new file mode 100644
index 0000000..f97a4fd
--- /dev/null
+++ b/src/test/resources/queries/bsp2.json
@@ -0,0 +1,56 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/query",
+ "@language":"de",
+ "operands":{
+ "@id":"korap:operands",
+ "@container":"@list"
+ },
+ "relation":{
+ "@id":"korap:relation",
+ "@type":"korap:relation#types"
+ },
+ "class":{
+ "@id":"korap:class",
+ "@type":"xsd:integer"
+ },
+ "query":"korap:query",
+ "filter":"korap:filter",
+ "meta":"korap:meta"
+ },
+ "query":{
+ "@type":"korap:sequence",
+ "operands":[
+ {
+ "@type":"korap:group",
+ "relation":"or",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:foo",
+ "relation":"="
+ }
+ },
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:bar",
+ "relation":"="
+ }
+ }
+ ]
+ },
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:foobar",
+ "relation":"="
+ }
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/bsp3.json b/src/test/resources/queries/bsp3.json
new file mode 100644
index 0000000..10a9f21
--- /dev/null
+++ b/src/test/resources/queries/bsp3.json
@@ -0,0 +1,41 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/query",
+ "@language":"de",
+ "operands":{
+ "@id":"korap:operands",
+ "@container":"@list"
+ },
+ "relation":{
+ "@id":"korap:relation",
+ "@type":"korap:relation#types"
+ },
+ "class":{
+ "@id":"korap:class",
+ "@type":"xsd:integer"
+ },
+ "query":"korap:query",
+ "filter":"korap:filter",
+ "meta":"korap:meta"
+ },
+ "query":{
+ "@type":"korap:sequence",
+ "shrink":"0",
+ "operands":[
+ {
+ "@type":"korap:group",
+ "class":"0",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:foo",
+ "relation":"="
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/bsp4.json b/src/test/resources/queries/bsp4.json
new file mode 100644
index 0000000..e98afbd
--- /dev/null
+++ b/src/test/resources/queries/bsp4.json
@@ -0,0 +1,49 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/query",
+ "@language":"de",
+ "operands":{
+ "@id":"korap:operands",
+ "@container":"@list"
+ },
+ "relation":{
+ "@id":"korap:relation",
+ "@type":"korap:relation#types"
+ },
+ "class":{
+ "@id":"korap:class",
+ "@type":"xsd:integer"
+ },
+ "query":"korap:query",
+ "filter":"korap:filter",
+ "meta":"korap:meta"
+ },
+ "query":{
+ "@type":"korap:sequence",
+ "shrink":"0",
+ "operands":[
+ {
+ "@type":"korap:group",
+ "class":"0",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:foo",
+ "relation":"="
+ }
+ }
+ ]
+ },
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"orth:bar",
+ "relation":"="
+ }
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/bsp5.json b/src/test/resources/queries/bsp5.json
new file mode 100644
index 0000000..246df1e
--- /dev/null
+++ b/src/test/resources/queries/bsp5.json
@@ -0,0 +1,49 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/query",
+ "@language":"de",
+ "operands":{
+ "@id":"korap:operands",
+ "@container":"@list"
+ },
+ "relation":{
+ "@id":"korap:relation",
+ "@type":"korap:relation#types"
+ },
+ "class":{
+ "@id":"korap:class",
+ "@type":"xsd:integer"
+ },
+ "query":"korap:query",
+ "filter":"korap:filter",
+ "meta":"korap:meta"
+ },
+ "query":{
+ "@type":"korap:sequence",
+ "shrink":"1",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:Der",
+ "relation":"="
+ }
+ },
+ {
+ "@type":"korap:group",
+ "class":"1",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "@value":{
+ "@type":"korap:term",
+ "@value":"base:Mann",
+ "relation":"="
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/readme.txt b/src/test/resources/queries/readme.txt
new file mode 100644
index 0000000..b82454f
--- /dev/null
+++ b/src/test/resources/queries/readme.txt
@@ -0,0 +1,5 @@
+bsp1.json: [base=foo]|([base=foo][base=bar])* meta author=Goethe&year=1815
+bsp2.json: ([base=foo]|[base=bar])[base=foobar]
+bsp3.json: shrink({[base=Mann]})
+bsp4.json: shrink({[base=foo]}[orth=bar])
+bsp5.json: shrink(1:[base=Der]{1:[base=Mann]})