#1171: Category Search fails after editing the Category name
----------------------------+-----------------------------------------------
Reporter: vsinceac | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: Catalog server | Version: v2.6.5
Keywords: Category |
----------------------------+-----------------------------------------------
Hi,
Cannot retrieve metadata by category after changing the category name
(while localized name remains unchanged).
Found this defect on GeoNetwork 2.6.5.
Checked also on 2.9.0-SNAPSHOT (same result).
When the GN administrator changes the name of a category (Administration-
CategoryManagement-Edit), the user interface will always show the
localized name of that category. If there was results before this change,
there will be no more results after the change.
Is the search in the database done by using the field "name" from the
table categoriesdes, instead the feld "id"?
Steps to reproduce the bug:
1)Add a new category "MOMO" (the English name will be automatically
"MOMO", too);
3)Search for any metadata and set it to the category "MOMO" (button
OtherActions-Category);
4)Click on category "MOMO" in Simple Search --> OK (one result)
5)Change category name "MOMO" to "TOTO" (Administration-
CategoryManagement-Edit-Save);
6)Click on category "MOMO" in Simple Search --> NOK (zarro result);
Allow a metadata to any category;
- Change the name of the category
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1171>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#1171: Category Search fails after editing the Category name
----------------------------+-----------------------------------------------
Reporter: vsinceac | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: Catalog server | Version: v2.6.5
Keywords: Category |
----------------------------+-----------------------------------------------
Comment(by vsinceac):
Sorry for the format...
Steps to reproduce the bug:[[BR]]
1) Add a new category "MOMO" (the English name will be automatically
"MOMO", too);[[BR]]
3) Search for any metadata and set it to the category "MOMO" (button
OtherActions?-Category);[[BR]]
4) Click on category "MOMO" in Simple Search --> OK (one result)[[BR]]
5) Change category name "MOMO" to "TOTO" (Administration-
CategoryManagement?-Edit-Save);[[BR]]
6) Click on category "MOMO" in Simple Search --> NOK (zarro
result);[[BR]]
Allow a metadata to any category; - Change the name of the categor
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1171#comment:1>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#1171: Category Search fails after editing the Category name
----------------------------+-----------------------------------------------
Reporter: vsinceac | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: Catalog server | Version: v2.6.5
Keywords: Category |
----------------------------+-----------------------------------------------
Comment(by vsinceac):
The workaround would be to rebuild Lucene index after each category name
change..[[BR]]
It appears the search for category is done in Lucene index, which stores
the real category name for each metadata.[[BR]]
I didn't know categories are indexed by Lucene. Isn't faster to use
extract metadata by category ID directly from the database, for the Simple
Search?
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1171#comment:2>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#1171: Category Search fails after editing the Category name
----------------------------+-----------------------------------------------
Reporter: vsinceac | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: Catalog server | Version: v2.6.5
Keywords: Category |
----------------------------+-----------------------------------------------
Comment(by fxp):
Maybe we should improve that by:
1) displaying a warning message to the user editing the category, that the
index needs to be updated
2) trigger an index update (automatically?)
The same will happen when renaming a group.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1171#comment:3>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.