#238: CatalogSearcher is not an extension of MetaSearcher
-------------------------+--------------------------------------------------
Reporter: Fxp | Owner: geonetwork-devel@…
Type: enhancement | Status: new
Priority: major | Milestone:
Component: General | Version: v2.5.0
Keywords: |
-------------------------+--------------------------------------------------
LuceneSearcher, UnusedSearcher and Z3950Searcher are all extensions of
MetaSearcher but CatalogSearcher for CSW is not. This is ok until
CatalogSearcher is put into the session as Geonet.Session.SEARCH_RESULT
where up until now only the extensions of MetaSearcher were expected.
Because CatalogSearcher is not a MetaSearcher the nice
polymorphism/dynamic binding used for example when closing the searcher
(get a MetaSearcher and do searcher.close()) is broken and we need to do
ugly if (object instanceof LuceneSearcher) then .... else etc etc etc.
Action: make CatalogSearcher an extension of MetaSearcher or put it
somewhere else in the session.
--
Ticket URL: <https://trac.osgeo.org/geonetwork/ticket/238>
GeoNetwork opensource Developer website <http://trac.osgeo.org/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.