[Mapbender-commits] r10383 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 2 00:02:38 PST 2020


Author: armin11
Date: 2020-01-02 00:02:38 -0800 (Thu, 02 Jan 2020)
New Revision: 10383

Modified:
   trunk/mapbender/http/classes/class_metadata.php
Log:
fix for search interface - search in materialized views not directly in views, this is to slow for production!

Modified: trunk/mapbender/http/classes/class_metadata.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata.php	2020-01-02 07:55:46 UTC (rev 10382)
+++ trunk/mapbender/http/classes/class_metadata.php	2020-01-02 08:02:38 UTC (rev 10383)
@@ -297,8 +297,8 @@
 				$this->databaseIdColumnName = 'layer_id';
 				$this->databaseTableName = 'layer';
 				//$this->keywordRelation = 'layer_keyword';
-				//$this->searchView = 'wms_search_table';
-				$this->searchView = 'search_wms_view';
+				$this->searchView = 'wms_search_table';
+				//$this->searchView = 'search_wms_view';
 				$this->whereStrCatExtension = " AND custom_category.custom_category_hidden = 0";
 				switch ($this->orderBy) {
 					case "rank":
@@ -321,8 +321,8 @@
 				$this->generateWMSMetadata($this->wmsDoc);
 			}
 			if (isset($this->searchResources) & strtolower($this->searchResources) === "wmc") {
-				$this->searchView = 'search_wmc_view';
-				//$this->searchView = 'wmc_search_table';
+				//$this->searchView = 'search_wmc_view';
+				$this->searchView = 'wmc_search_table';
 				$this->databaseIdColumnName = 'wmc_serial_id';
 				$this->databaseTableName = 'wmc';
 				//the following is needed to give a special filter to the custom cat table!



More information about the Mapbender_commits mailing list