Hi Marco,

Basically, the content of lucene index directory is deleted and after, the index is recreated (under the same directory). Months ago, I've researched how to "refresh" the lucene access to get the newest data withou restarting the wep applications and, in the 6.1.0 version, it is available the class SearchManager, which according to the documentation, should be called its method maybeRefresh() periodically to reopen the index. Our "reopen scheduler" runs hourly and even being executed with success it seems the data wasn't the newest.    

Eduardo Costa Lopes

telefone: (51) 2129 - 1180

----- Mensagem original -----
De: "Marco Reis" <[EMAIL PROTECTED]>
Para: "java-user" <[EMAIL PROTECTED]>
Enviadas: Quarta-feira, 11 de julho de 2018 12:06:18
Assunto: Re: Recreating index lucene without stopping client applications

Hi Eduardo,

It's not clear the index recreation process, but I think you have two
different SearcherManagers, one for the app and a different one for the
command line. At some point, one of them could see the document exclusion,
and the JBoss doen't. Maybe reopen the index directory could help.
On Wed, Jul 11, 2018 at 11:46 AM Eduardo Costa Lopes <
Marco Reis
Software Engineer
+55 61 9 81194620

"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada exclusivamente a seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."

"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a government company established under Brazilian law (5.615/70) -- is directed exclusively to its addressee and may contain confidential data, protected under professional secrecy rules. Its unauthorized use is illegal and may subject the transgressor to the law's penalties. If you're not the addressee, please send it back, elucidating the failure."