- new SearchController

- new subtitle in hero section
- MimetypeTableSeeder with geo-Package
This commit is contained in:
Arno Kaimbacher 2019-09-20 19:00:57 +02:00
parent 54d6c5d434
commit 7bf0337faf
11 changed files with 277 additions and 11 deletions

View file

@ -101,6 +101,12 @@ class SearchController extends Controller
public function index(): View
{
$totalNumOfDocs = Dataset::count();
// get a select query instance
$query = $this->client->createQuery($this->client::QUERY_SELECT);
// this executes the query and returns the result
$resultset = $this->client->execute($query);
// // display the total number of documents found by solr
$totalNumOfDocs = $resultset->getNumFound();
return view('frontend.solrsearch.index', compact('totalNumOfDocs'));
}