mirror of https://github.com/apache/lucene.git
SOLR-2706: The carrot.lexicalResourcesDir parameter does not work with absolute directories
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1156590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d3eb8755b
commit
d003046438
|
@ -173,8 +173,8 @@ public class CarrotClusteringEngine extends SearchClusteringEngine {
|
|||
@Override
|
||||
public IResource[] getAll(final String resource) {
|
||||
final SolrResourceLoader resourceLoader = core.getResourceLoader();
|
||||
final String carrot2ResourcesDir = resourceLoader.getConfigDir()
|
||||
+ initParams.get(CarrotParams.LEXICAL_RESOURCES_DIR, CARROT_RESOURCES_PREFIX);
|
||||
final String carrot2ResourcesDir = initParams.get(
|
||||
CarrotParams.LEXICAL_RESOURCES_DIR, CARROT_RESOURCES_PREFIX);
|
||||
try {
|
||||
log.debug("Looking for " + resource + " in "
|
||||
+ carrot2ResourcesDir);
|
||||
|
|
|
@ -190,7 +190,7 @@ public class CarrotClusteringEngineTest extends AbstractClusteringTestCase {
|
|||
wordsToCheck);
|
||||
|
||||
// "customsolrstopword" is in stopwords.en, "customsolrstoplabel" is in
|
||||
// stoplabels.en, so we're expecting only one cluster with label "online".
|
||||
// stoplabels.mt, so we're expecting only one cluster with label "online".
|
||||
final List<NamedList<Object>> clusters = checkEngine(
|
||||
getClusteringEngine(engineName), 1, params);
|
||||
assertEquals(getLabels(clusters.get(0)), ImmutableList.of("online"));
|
||||
|
|
Loading…
Reference in New Issue