-->
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: Fined Grained IndexEmbedded Options In The Pipeline?
PostPosted: Thu Aug 18, 2011 5:49 pm 
Beginner
Beginner

Joined: Fri Jan 29, 2010 8:17 pm
Posts: 20
Location: Portland OR
I'm currently using Hibernate Search 3.2.1, and have searched future versions and don't see support for more fine grained @IndexEmbedded options. I was wondering if anything is in the pipeline for this, or if it has been considered by rejected for some reason.

I find that entities that are referenced by a lot of different types I frequently don't want to index the same way, depending on what type is doing the referencing. Depth is a bit of a blunt tool to control this. Something like:

Code:
class A{
   @IndexEmbedded(
       paths={"d.one", "d.two"}
    )
   private C see;
}

class B{
   @IndexEmbedded(
       paths={"foo", "d.two"}
   )
   private C see;
}

class C{
   @IndexEmbedded
   private Collection<D> d;
   @Field
   private int foo;
}

class D{
   @Field
   int one;
   @Field
   int two;
}


Where both type A, and B want to index C, but they index different fields. This would also be a nice 'per path' way to control depth as opposed saying depth = N, and all properties are traversed until depth N is reached along each path. Which is the source of a lot of overkill indexing in our app. Especially if relationships are bi-directional and there is no way to have it stop if a cycle is formed.

Is something like this in the works? I know I'd probably replace every @IndexEmbedded(depth=N) in our app with this if it was available.

TIA for feedback.


Top
 Profile  
 
 Post subject: Re: Fined Grained IndexEmbedded Options In The Pipeline?
PostPosted: Fri Aug 19, 2011 4:54 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
I like your proposal, it makes perfect sense to list the paths in alternative to the depth. Indeed people know the path they'll search for, but controlling that via a depth option is hard to get right, and less explicit.
This kind of proposals we usual discuss on the developer's mailing list, I'm writing there now to point out this post; please join.

Quote:
. I was wondering if anything is in the pipeline for this, or if it has been considered by rejected for some reason.

No I don't remember this was ever considered.

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