Apache Lucene open-source search software
SOLR-553: Finish off by adding right Lucene jars and fix the spell checker test
Grant Ingersollf6f0c597a41c
diff --git a/lib/lucene-analyzers-2.3.2.jar b/lib/lucene-analyzers-2.3.2.jardeleted file mode 100644index c5bc27c0653..00000000000--- a/lib/lucene-analyzers-2.3.2.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[cf0d296bc731833f3ec9d80efd97ea5d50a889ab] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-analyzers-2.4-dev.jar b/lib/lucene-analyzers-2.4-dev.jarnew file mode 100644index 00000000000..02426d7be9a--- /dev/null+++ b/lib/lucene-analyzers-2.4-dev.jar@@ -0,0 +1,2 @@+AnyObjectId[46301eb5d1b721aa156b656db4535df13c792e48] was removed in git history.+Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-core-2.3.2.jar b/lib/lucene-core-2.3.2.jardeleted file mode 100644index c5f8c76299e..00000000000--- a/lib/lucene-core-2.3.2.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[639f750d270d3e382231fbfcc1a422b9bba86ead] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-core-2.4-dev.jar b/lib/lucene-core-2.4-dev.jarnew file mode 100644index 00000000000..e92ec8a70e7--- /dev/null+++ b/lib/lucene-core-2.4-dev.jar@@ -0,0 +1,2 @@+AnyObjectId[ae97fa85945b24fa2d39ddac17a18684a994aa24] was removed in git history.+Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-highlighter-2.3.2.jar b/lib/lucene-highlighter-2.3.2.jardeleted file mode 100644index c2f4fac7a4b..00000000000--- a/lib/lucene-highlighter-2.3.2.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[4eb398bd6d34a933d4a7d9da466f5c97547c15a4] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-highlighter-2.4-dev.jar b/lib/lucene-highlighter-2.4-dev.jarnew file mode 100644index 00000000000..631b2783b37--- /dev/null+++ b/lib/lucene-highlighter-2.4-dev.jar@@ -0,0 +1,2 @@+AnyObjectId[4f45c9b726c2677e35de084ce95474a0cc9bb435] was removed in git history.+Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-queries-2.3.2.jar b/lib/lucene-queries-2.3.2.jardeleted file mode 100644index b4a87524b94..00000000000--- a/lib/lucene-queries-2.3.2.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[a9aba9558199a5746bd18dad89f191f9e93585d9] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-queries-2.4-dev.jar b/lib/lucene-queries-2.4-dev.jarnew file mode 100644index 00000000000..d38faba4d95--- /dev/null+++ b/lib/lucene-queries-2.4-dev.jar@@ -0,0 +1,2 @@+AnyObjectId[35f5ff37c2e6fac8761f78484a2026ba1a2e0412] was removed in git history.+Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-snowball-2.3.2.jar b/lib/lucene-snowball-2.3.2.jardeleted file mode 100644index 224109ff3ec..00000000000--- a/lib/lucene-snowball-2.3.2.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[ffda177545574996286fd34bbaf225aabd2619d0] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-snowball-2.4-dev.jar b/lib/lucene-snowball-2.4-dev.jarnew file mode 100644index 00000000000..8c731a7f684--- /dev/null+++ b/lib/lucene-snowball-2.4-dev.jar@@ -0,0 +1,2 @@+AnyObjectId[72c7df01cab1e30c15c566d64c757dfad60068b8] was removed in git history.+Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-spellchecker-2.3.2.jar b/lib/lucene-spellchecker-2.3.2.jardeleted file mode 100644index 8f3b230bdce..00000000000--- a/lib/lucene-spellchecker-2.3.2.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[d6f3863ffe28b6777d8e32fe9d328a040d889a52] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/lib/lucene-spellchecker-2.4-dev.jar b/lib/lucene-spellchecker-2.4-dev.jarnew file mode 100644index 00000000000..77aa28adaba--- /dev/null+++ b/lib/lucene-spellchecker-2.4-dev.jar@@ -0,0 +1,2 @@+AnyObjectId[38546cf9942e64f2537e2719fb64426941737a8b] was removed in git history.+Apache SVN contains full history.\ No newline at end of filediff --git a/src/test/org/apache/solr/handler/SpellCheckerRequestHandlerTest.java b/src/test/org/apache/solr/handler/SpellCheckerRequestHandlerTest.javaindex c516441b552..c4600fbf3a9 100644--- a/src/test/org/apache/solr/handler/SpellCheckerRequestHandlerTest.java+++ b/src/test/org/apache/solr/handler/SpellCheckerRequestHandlerTest.java@@ -231,7 +231,7 @@ public class SpellCheckerRequestHandlerTest,"//int[@name='numDocs'][.=10]","//lst[@name='cat']","//lst[@name='cat']/int[@name='frequency'][.>0]"- ,"//lst[@name='cat']/lst[@name='suggestions' and count(lst)=0]"+ ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='cat']/int[@name='frequency'][.>0]");@@ -256,24 +256,26 @@ public class SpellCheckerRequestHandlerTestlrf.args.put("sp.query.accuracy",".2");assertQ("Failed to spell check",- req("cat")+ req("cap"),"//int[@name='numDocs'][.=10]"- ,"//lst[@name='cat']"- ,"//lst[@name='cat']/int[@name='frequency'][.>0]"- ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='cart']/int[@name='frequency'][.>0]"- ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='cot']/int[@name='frequency'][.>0]"- ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='cod']/int[@name='frequency'][.>0]"- ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='carp']/int[@name='frequency'][.>0]"+ ,"//lst[@name='cap']"+ ,"//lst[@name='cap']/int[@name='frequency'][.=0]"+ ,"//lst[@name='cap']/lst[@name='suggestions']/lst[@name='cat']/int[@name='frequency'][.>0]"+ ,"//lst[@name='cap']/lst[@name='suggestions']/lst[@name='cart']/int[@name='frequency'][.>0]"+ ,"//lst[@name='cap']/lst[@name='suggestions']/lst[@name='carp']/int[@name='frequency'][.>0]"+ ,"//lst[@name='cap']/lst[@name='suggestions']/lst[@name='cot']/int[@name='frequency'][.>0]"+ ,"//lst[@name='cap']/lst[@name='suggestions']/lst[@name='cod']/int[@name='frequency'][.>0]"+ ,"//lst[@name='cap']/lst[@name='suggestions']/lst[@name='cant']/int[@name='frequency'][.>0]");lrf.args.put("sp.query.suggestionCount", "2");lrf.args.put("sp.query.accuracy",".2");assertQ("Failed to spell check",- req("cat")- ,"//lst[@name='cat']"- ,"//lst[@name='cat']/int[@name='frequency'][.>0]"- ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='cart']"- ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='cot']"+ req("cap")+ ,"//lst[@name='cap']"+ ,"//lst[@name='cap']/int[@name='frequency'][.=0]"+ ,"//lst[@name='cap']/lst[@name='suggestions']/lst[@name='carp']"+ ,"//lst[@name='cap']/lst[@name='suggestions']/lst[@name='cat']");/* The following is the generated XML response for the next query with three words:@@ -309,21 +311,20 @@ public class SpellCheckerRequestHandlerTestlrf.args.put("sp.query.suggestionCount", "2");lrf.args.put("sp.query.accuracy",".2");assertQ("Failed to spell check",- req("cat cart carp")- ,"//lst[@name='cat']"- ,"//lst[@name='cat']/int[@name='frequency'][.>0]"- ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='cart']"- ,"//lst[@name='cat']/lst[@name='suggestions']/lst[@name='cot']"+ req("cad cart carm")+ ,"//lst[@name='cad']"+ ,"//lst[@name='cad']/int[@name='frequency'][.=0]"+ ,"//lst[@name='cad']/lst[@name='suggestions']/lst[@name='cat']"+ ,"//lst[@name='cad']/lst[@name='suggestions']/lst[@name='cod']","//lst[@name='cart']","//lst[@name='cart']/int[@name='frequency'][.>0]"- ,"//lst[@name='cart']/lst/lst[1]"- ,"//lst[@name='cart']/lst/lst[2]"+- ,"//lst[@name='carp']"- ,"//lst[@name='carp']/int[@name='frequency'][.>0]"- ,"//lst[@name='carp']/lst[@name='suggestions']/lst[@name='cart']"- ,"//lst[@name='carp']/lst[@name='suggestions']/lst[@name='corn']"+ ,"//lst[@name='carm']"+ ,"//lst[@name='carm']/int[@name='frequency'][.=0]"+ ,"//lst[@name='carm']/lst[@name='suggestions']/lst[@name='cart']"+ ,"//lst[@name='carm']/lst[@name='suggestions']/lst[@name='carp']");