If no remote dir set for WebDAV, just use the index name by itself
This commit is contained in:
parent
e89a89a009
commit
a6fd64eacd
|
@ -154,7 +154,11 @@ class Solr_Configure extends BuildTask {
|
||||||
echo "done\n";
|
echo "done\n";
|
||||||
} else {
|
} else {
|
||||||
echo "Creating configuration...";
|
echo "Creating configuration...";
|
||||||
$service->coreCreate($index, "$remote/$index");
|
$instanceDir = $indexName;
|
||||||
|
if ($remote) {
|
||||||
|
$instanceDir = "$remote/$instanceDir";
|
||||||
|
}
|
||||||
|
$service->coreCreate($indexName, $instanceDir);
|
||||||
echo "done\n";
|
echo "done\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -250,4 +254,4 @@ class Solr_Reindex extends BuildTask {
|
||||||
foreach ($items as $item) { $index->add($item); $item->destroy(); }
|
foreach ($items as $item) { $index->add($item); $item->destroy(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue