Hi András!
Excellent tips!
Thanks,
Napoli
Em ter, 1 de set de 2015 às 09:45, András Péteri <
apet...@b2international.com> escreveu:
> Hi Napoli,
>
> You could also create an instance of SearcherManager [1], and let it take
> care of tracking IndexSearchers; it can also be use to reopen the
> un
Hi Napoli,
You could also create an instance of SearcherManager [1], and let it take
care of tracking IndexSearchers; it can also be use to reopen the
underlying readers, and close them when they are no longer in use. Calling
maybeRefresh() or maybeRefreshBlocking() on the manager ensures that a
r
Ian,
Well remembered!
Thanks,
Napoli
Em ter, 1 de set de 2015 às 09:12, Ian Lea escreveu:
> From a glance, you need to close the old reader after calling
> openIfChanged if it gives you a new one.
>
> See
> https://lucene.apache.org/core/5_3_0/core/org/apache/lucene/index/DirectoryReader.html#
>From a glance, you need to close the old reader after calling
openIfChanged if it gives you a new one.
See
https://lucene.apache.org/core/5_3_0/core/org/apache/lucene/index/DirectoryReader.html#openIfChanged(org.apache.lucene.index.DirectoryReader).
You may wish to pay attention to the words abo
Hey Anton,
I use this way:
Thanks!
@PostConstruct
public void create() {
final String parent = System.getProperty("jboss.server.data.dir");
final File indexFullPath = new File(parent, CIDADAO_INDEX_PATH);
try {
final FSDirectory directory = FSDirectory.open(indexFullPath);
Are you sure you are not holding open readers somewhere?
On Mon, Aug 31, 2015 at 7:46 PM, Marcio Napoli
wrote:
> Hey! :)
>
> It seems IndexWriter is not closing the descriptors of the removed files,
> see the log below.
>
> Thanks,
> Napoli
>
> [root@server01 log]# ls -l /proc/59491/fd | grep i
Hey! :)
It seems IndexWriter is not closing the descriptors of the removed files,
see the log below.
Thanks,
Napoli
[root@server01 log]# ls -l /proc/59491/fd | grep index
l-wx--. 1 wildfly wildfly 64 Ago 31 11:26 429 ->
/usr/local/wildfly-2.0/standalone/data/index/cidadao/write.lock
lr-x---