Opened 15 years ago

Last modified 14 years ago

#238 new enhancement

CatalogSearcher is not an extension of MetaSearcher

Reported by: Fxp Owned by: geonetwork-devel@…
Priority: major Milestone: Future release
Component: General Version: v2.5.0
Keywords: Cc:

Description

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.

Change History (1)

comment:1 by ticheler, 14 years ago

Milestone: Future release
Note: See TracTickets for help on using tickets.