-->
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.  [ 2 posts ] 
Author Message
 Post subject: MassIndexer and ShardingStrategy
PostPosted: Thu Apr 08, 2010 2:30 pm 
Newbie

Joined: Wed Nov 18, 2009 7:00 pm
Posts: 12
1. I'm using the MassIndexer that's in the 3.2 api, however I need for the MassIndexer to be shard aware. e.g. If I only wanted to index/reindex shard n, I need the MassIndexer to only to index the given shard.

2. How can I have the MassIndexer return Distinct Root Entities? Currently when I use the massindexer, it creates multiple root entities if the entity has an association. As a result I have multiple documents containing the same root entity.

3. I currently periodically receive the following exception when running the massindexer.
Exception in thread "Hibernate Search: collectionsloader-6"
org.hibernate.HibernateException: illegally attempted to associate a proxy with to open sessions at org.hibernate.proxy.AbstractLazyInitializer.setSession(AbstractLazyInitializer.java:126) ....


Thanks in advance.


Top
 Profile  
 
 Post subject: Re: MassIndexer and ShardingStrategy
PostPosted: Fri Apr 09, 2010 1:03 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
hey thanks that's very valuable feedback.

Quote:
1. I'm using the MassIndexer that's in the 3.2 api, however I need for the MassIndexer to be shard aware. e.g. If I only wanted to index/reindex shard n, I need the MassIndexer to only to index the given shard.

that's a nice feature request, it's not currently possible but I'll look into it for next version.

Quote:
2. How can I have the MassIndexer return Distinct Root Entities? Currently when I use the massindexer, it creates multiple root entities if the entity has an association. As a result I have multiple documents containing the same root entity.

that's a bug I'm looking into http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-490
If you have a testcase, please attach it to the issue, that would be helpfull.
If I'm able to fix it before monday, a new CR will be released including it, otherwise it'll likely be postponed.

Quote:
3. I currently periodically receive the following exception when running the massindexer.
Exception in thread "Hibernate Search: collectionsloader-6"
org.hibernate.HibernateException: illegally attempted to associate a proxy with to open sessions at org.hibernate.proxy.AbstractLazyInitializer.setSession(AbstractLazyInitializer.java:126) ....

unfortunately that's related to issue above.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.