[GeoNetwork-users] Category not updated in Lucene after Batch Import or XML Data Insert

Hello group!

When entering metadata through Batch Import or XML Data Insert, the category specified on the input form is not inserted in the Lucene Index. (After importing metadata associated to a category, the search according to this category does not show the metadata in question). The category is nonetheless inserted into the metadata table.

Jean-François Meunier

Jean-Francois Meunier wrote:

Hello group!

When entering metadata through Batch Import or XML Data Insert, the category specified on the input form is not inserted in the Lucene Index. (After importing metadata associated to a category, the search according to this category does not show the metadata in question). The category is nonetheless inserted into the metadata table.

Jean-François Meunier

Hi Jean,

By coincidence, I noticed this too a day or two a go - you're right, the metadata is added and indexed *before* the category is set. It's a straightforward fix to move the category setting code into the method that inserts the rest of the metadata as that method is only used by the batch import and metadata insert services - I'll commit it shortly if no one else is onto it already?

Cheers,
Simon