Opened 13 years ago

Closed 13 years ago

#499 closed defect (fixed)

Method getTerms in class SearchManager skips first Term

Reported by: bothe Owned by: craigj
Priority: major Milestone: v2.6.5
Component: General Version: v2.6.3
Keywords: Lucene Index, SearchManager Cc:

Description

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.

Change History (2)

comment:1 by craigj, 13 years ago

Owner: changed from geonetwork-devel@… to craigj

comment:2 by craigj, 13 years ago

Resolution: fixed
Status: newclosed

Fix applied in trunk (r7886) and 2.6.5 (r7887).

Thanks to Mirke Bothe for reporting and suggested fix (modified slightly to handle additional boundary conditions).

Note: See TracTickets for help on using tickets.