-->
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: Indexing associated collection-types as part of root entity?
PostPosted: Wed Apr 04, 2007 8:52 pm 
Newbie

Joined: Wed Apr 04, 2007 7:57 pm
Posts: 1
Hi,

using the Lucene integration "Hibernate Search" for a few days now ... i have to admit: i'm really impressed about the smooth integration and such an easy way to process lucene-queries / retrieve results as managed objects... and now the question ;-)

Is it possible to index one or more properties of a associated collection type as part of the root-entity-index? (i want to retrieve always and only the root entity) the children are instances from a small class with a few string-properties whose inclusion at the fulltext-search for parent-entities is important ...

It seems to me that i am am looking for a combination of a
Code:
@ManyToMany
@IndexedEmbedded
which is currently not suported?!... is there any way to achieve the desired behaviour?

Many thanks in advance and many greetings
jens


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 4:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I think you can write a custom @FieldBridge for that. There is no out of the box experience today though.

But I am curious about your usecase, can you detail it? What is your query? how you expect HSearch to store the "collection" of elements in the index?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 20, 2007 3:05 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
OK, now it's out of the box :-)
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-40

_________________
Emmanuel


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.