-->
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: [Hibernate Search] Extra data into index not part of entity
PostPosted: Tue Nov 24, 2009 2:22 pm 
Newbie

Joined: Mon Oct 22, 2007 7:04 am
Posts: 19
Hi,

We started using Hibernate Search on our project two years ago. It seemed to be a good fit for our needs at the time. The more complex our domain got and the more complex our search needs became ... the less fit this choice seem. I might be wrong however. Hence this post.

My biggest concern is that our main entity (the indexed one) now has alot (really) of methods which are only there to provide special data (agreagations, denormalizations etc.) to the index at index-time. They do not serve any real purpose in the domain. This of course bothers me.

Here is a question which might reveal if I have missed something fundamental:
Can I somehow associate a factory class (or some kind of decorator) with the indexed entity which in turn can hold all index-taylored methods so I can get clean entities again.

Hope this made any sense and you get what I mean.

Tobias


Top
 Profile  
 
 Post subject: Re: [Hibernate Search] Extra data into index not part of entity
PostPosted: Tue Nov 24, 2009 5:16 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Why not using a ClassBridge?
It's cool you can add to the index with some annotations, if the code is growing uncontrolled to have special indexing needs, I agree you should move it out.

_________________
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.