Add new test solr spellcheck test. Not added to dist test for now.
authorDennis Schafroth <dennis@indexdata.com>
Tue, 1 Nov 2011 12:51:01 +0000 (13:51 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Tue, 1 Nov 2011 12:51:01 +0000 (13:51 +0100)
test/test_solr_spell_1.res [new file with mode: 0644]
test/test_solr_spell_2.res [new file with mode: 0644]
test/test_solr_spell_3.res [new file with mode: 0644]
test/test_solr_spell_4.res [new file with mode: 0644]
test/test_solr_spell_5.res [new file with mode: 0644]
test/test_solr_spell_6.res [new file with mode: 0644]

diff --git a/test/test_solr_spell_1.res b/test/test_solr_spell_1.res
new file mode 100644 (file)
index 0000000..81ff9ff
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<init><status>OK</status><session>1</session><protocol>1</protocol></init>
\ No newline at end of file
diff --git a/test/test_solr_spell_2.res b/test/test_solr_spell_2.res
new file mode 100644 (file)
index 0000000..42534e3
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<settings><status>OK</status></settings>
\ No newline at end of file
diff --git a/test/test_solr_spell_3.res b/test/test_solr_spell_3.res
new file mode 100644 (file)
index 0000000..ab63fe6
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<search><status>OK</status></search>
\ No newline at end of file
diff --git a/test/test_solr_spell_4.res b/test/test_solr_spell_4.res
new file mode 100644 (file)
index 0000000..5a1147b
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<show><status>OK</status>
+<activeclients>0</activeclients>
+<merged>0</merged>
+<total>0</total>
+<start>0</start>
+<num>0</num>
+</show>
\ No newline at end of file
diff --git a/test/test_solr_spell_5.res b/test/test_solr_spell_5.res
new file mode 100644 (file)
index 0000000..848b25c
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<termlist><activeclients>0</activeclients>
+<list name="xtargets">
+</list>
+<list name="subject">
+</list>
+<list name="author">
+</list>
+<list name="date">
+</list>
+<list name="medium">
+</list>
+</termlist>
\ No newline at end of file
diff --git a/test/test_solr_spell_6.res b/test/test_solr_spell_6.res
new file mode 100644 (file)
index 0000000..abf47c8
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bytarget><status>OK</status>
+<target><id>ocs-test.indexdata.com/solr/select</id>
+<name>ocs_test</name>
+<hits>0</hits>
+<diagnostic>0</diagnostic>
+<records>0</records>
+<state>Client_Idle</state>
+<misspelled term="kingg">
+<suggestion>king</suggestion>
+<suggestion>kinga</suggestion>
+<suggestion>kingp</suggestion>
+<suggestion>lingg</suggestion>
+<suggestion>kingv</suggestion>
+</misspelled>
+</target></bytarget>
\ No newline at end of file