-->
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: indexing hierarchically structured tables and perform search
PostPosted: Thu Mar 29, 2012 7:29 am 
Newbie

Joined: Mon Feb 22, 2010 6:47 am
Posts: 5
Following is the structure that I am using..

Each Contact has a Location,i.e town info but Location is a hierarchical table eg. (country->state->city->town )

Need the ability to search for Contacts that directly or indirectly fall under country named USA..

How do I go ahead doing such configuration using hibernate search ?


Top
 Profile  
 
 Post subject: Re: indexing hierarchically structured tables and perform search
PostPosted: Thu Mar 29, 2012 7:25 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
you would use @IndexedEmbedded to index-embed the whole hierarchy in the Contact.

The approach is to have a nicely normalized database, but have it all de-normalized in the Lucene index.

http://docs.jboss.org/hibernate/search/4.1/reference/en-US/html_single/#search-mapping-associated

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