List Info

Thread: LuceneEventListener refresh and new index direcory




LuceneEventListener refresh and new index direcory
user name
2006-11-23 14:03:35
Hi

I've got some problems trying to refresh/reinitialize
documentBuilders list
for new index directory.

I have LuceneEventListener mapped to hibernate
post-commit-... events. I
want to change storage link in runtime (JMX etc.) and I need
to refresh
documentBuilders list with new content provider but that
list is private and
there are no methods to renew listener or some other way to
get actual
listener looking on new storage

what do you think? Maybe there are some ways or workarounds
to refresh
listener info?

thank you

-- 
Best regards,
Polzunov Sergei
e-mail: polzunovgmail.com
ICQ: #204206246
LuceneEventListener refresh and new index direcory
user name
2006-11-23 16:05:07
Hi Sergei,
The short answer is, if you use a recent version, you should
be able to 
write you own DirectoryProvider that can handle such hot
swap through 
JMX or any other event.
Let's move the discussion to http://f
orum.hibernate.org/viewforum.php?f=9
This is more an Hibernate Search (use to be named Hibernate
Lucene) 
issue than a Lucene one.

Sergei Polzunov wrote:
>
> Hi
>
> I've got some problems trying to refresh/reinitialize
documentBuilders 
> list
> for new index directory.
>
> I have LuceneEventListener mapped to hibernate
post-commit-... events. I
> want to change storage link in runtime (JMX etc.) and I
need to refresh
> documentBuilders list with new content provider but
that list is 
> private and
> there are no methods to renew listener or some other
way to get actual
> listener looking on new storage
>
> what do you think? Maybe there are some ways or
workarounds to refresh
> listener info?
>
> thank you
>
> --
> Best regards,
> Polzunov Sergei
> e-mail: polzunovgmail.com
> ICQ: #204206246
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: java-dev-unsubscribelucene.apache.org
For additional commands, e-mail: java-dev-helplucene.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )