[GeoNetwork-devel] [GeoNetwork opensource Developer website] #499: Method getTerms in class SearchManager skips first Term

#499: Method getTerms in class SearchManager skips first Term
-----------------------------------------+----------------------------------
Reporter: bothe | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.6.5
Component: General | Version: v2.6.3
Keywords: Lucene Index, SearchManager |
-----------------------------------------+----------------------------------
I was trying to get a list of all keywords in the Lucene Index, and
realized there seems to be one Keyword missing, if the method getTerms in
the class org.fao.geonet.kernel.search.SearchManager is used for this.

Changing the "while (enu.next()) {...}"-Loop to a "do {...} while
(enu.next())"-Loop seems to work, but this may not be the right way to fix
this.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/499&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
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.