--- a/server/src/app/Console/Commands/IndexDocuments.php Tue Nov 08 18:23:01 2016 +0100
+++ b/server/src/app/Console/Commands/IndexDocuments.php Wed Nov 09 15:05:41 2016 +0100
@@ -74,7 +74,7 @@
private function resetIndex()
{
$indexParams = [
- 'index' => env('ELASTICSEARCH_INDEX')
+ 'index' => config('elasticsearch.index')
];
if(Es::indices()->exists($indexParams)){
$response = Es::indices()->delete($indexParams);
@@ -600,7 +600,7 @@
$this->comment('Index reset!');
}
else{
- $this->error('Error resetting index ' . env('ELASTICSEARCH_INDEX'));
+ $this->error('Error resetting index ' . config('elasticsearch.index'));
}
$this->info('Indexing documents...');