-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Hibernate Search + Hibernate Sharding
PostPosted: Tue Nov 04, 2008 12:39 pm 
Newbie

Joined: Tue Jul 22, 2008 8:19 am
Posts: 8
Hi guys,

I am using hibernate search with a single unsharded index.

I am implementing hibernate shards and want to use a sharded session factory to create my full text session.

This does not really appear to work so well. Is it supposed to be supported?

By subclassing the FullTextSearchImpl I can create the EventSource and SessionImplemetor using 1 shard EG ssi.getSessionFactory().getSessionFactories().get(0).

This will predictably get me my hits from the index but will only populate the list of returned object with what exists in the shard reference that I passed in in the constructor.

Any ideas on a better approach as it appears that SessionImplementor and ShardedSessionImplementor are different beasts.

Thanks


Top
 Profile  
 
 Post subject: Thread Exists
PostPosted: Tue Nov 04, 2008 1:32 pm 
Newbie

Joined: Tue Jul 22, 2008 8:19 am
Posts: 8
This
http://forum.hibernate.org/viewtopic.ph ... ght=shards

exactly the same issue I am getting, so I am just linking the two posts.

I tried to created a shard aware class from the following classes
- FullTextSession
- FullTextQuery
- AbstractQuery

I wont go into detail here and you have made the correct observation that it will be a complex issue to resolve. I need to resolve it so I woul appreciate any input as to how to approach the problem or if there has been any work done on the projects to support this?


Top
 Profile  
 
 Post subject: Working
PostPosted: Thu Nov 06, 2008 9:14 am 
Newbie

Joined: Tue Jul 22, 2008 8:19 am
Posts: 8
I resolved my issue with FullTextSession and a Sharded Session.

If anybody is interested check out my blog

http://devdi.blogspot.com/

The first comment is a high level description of the solution


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.