mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-10 14:11:25 +00:00
SEARCH-75, Port and fixed AlfrescoReRankQParserPluginTest
This commit is contained in:
@@ -65,6 +65,7 @@ import org.apache.solr.util.BaseTestHarness;
|
||||
import org.apache.solr.util.RefCounted;
|
||||
import org.apache.solr.util.TestHarness;
|
||||
import org.apache.solr.util.TestHarness.TestCoresLocator;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
@@ -156,6 +157,7 @@ public abstract class AbstractAlfrescoSolrTests implements SolrTestFiles, Alfre
|
||||
.setUseSchemaCache(false)
|
||||
.setCoreAdminHandlerClass("org.alfresco.solr.AlfrescoCoreAdminHandler")
|
||||
.build();
|
||||
coreContainer.shutdown();
|
||||
try
|
||||
{
|
||||
h = new TestHarness(nodeConfig, locator);
|
||||
@@ -168,9 +170,12 @@ public abstract class AbstractAlfrescoSolrTests implements SolrTestFiles, Alfre
|
||||
lrf = h.getRequestFactory
|
||||
("standard",0,20, CommonParams.VERSION,"2.2");
|
||||
}
|
||||
//
|
||||
|
||||
// coreContainer.shutdown();
|
||||
}
|
||||
@AfterClass
|
||||
public static void tearDown()
|
||||
{
|
||||
solrConfig = null;
|
||||
h.close();
|
||||
}
|
||||
/**
|
||||
* Generates a <delete>... XML string for an query
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user