[hibernate-dev] Re: Search and Shard topic "up"

Emmanuel Bernard emmanuel at hibernate.org
Sun May 11 13:37:14 EDT 2008


My understanding is that we need to implement a  
shardedfulltextsessionimpl delegating to fts. It makes more sense to  
for shards to wrap other projets.  It probably needs some refactoring  
to avoid duplication

On May 11, 2008, at 9:08, "Sanne Grinovero"  
<sanne.grinovero at gmail.com> wrote:

> Hi all,
> I've verified a scaring design problem I found in the forum, it
> appears that Search and Shards can't be used together:
> http://forum.hibernate.org/viewtopic.php?t=986285
>
> The problem is that Search needs to cast the session to an
> EventSource, but when using Shards the provided
> session is "org.hibernate.shards.session.ShardedSessionImpl", which
> does not implement org.hibernate.event.EventSource;
> also it doesn't look like trivial to add the missing methods.
>
> Any thought about it? Should I open a JIRA: in which category,  
> Search or Shards?
> IMHO I think the Search shouldn't do this casting, so it would be a
> Search design problem,
> but it's difficult to keep the code decoupled.
>
> Sanne



More information about the hibernate-dev mailing list