-->
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: is Manually Indexing polymorphicable?
PostPosted: Mon Sep 28, 2009 4:40 pm 
Newbie

Joined: Fri Jun 19, 2009 2:56 pm
Posts: 2
I manully indexed the parent class and expected the child classes were indexed at the same time. But it seemed only parent classes were indexed.

thanks.


Top
 Profile  
 
 Post subject: Re: is Manually Indexing polymorphicable?
PostPosted: Tue Sep 29, 2009 3:27 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

I am not sure what you actually mean. Do you talk about indexing associations? To speak about polymorphic indexing does not quite sense I think.
When manually indexing you run some query against the db to retrieve the entities you want to index. This instances you then pass to FullTextSession.index(). Provided the entities are indexable Lucene documents will be created. If the entities have associations and they are marked with @IndexedEmbedded these associations are getting indexed as well.

Maybe you can be more explicit with your example. How do you mapped entities look like and how do you manually index.

--Hardy


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.