-->
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: Full-text search on data split across records
PostPosted: Wed Apr 25, 2012 2:15 am 
Newbie

Joined: Mon Jan 26, 2009 8:52 pm
Posts: 2
Hi, I am new to Hibernate Search and was wondering if below usecase is possible.

We have a table that stores transactional messages (xml). Since message sizes can be huge at times, we split messages into multiple records, each record having the same identifier but different sequence number.

So given this usecase, is it possible for Hibernate Search to aggregate these records together while performing the search as they share the same identifier? This will be required due to our chunking approach, as a word of importance can be split into multiple records (For example: "hello world" can be chunked as "hello w" and "orld" records. And we need to match these records if search text is "world").

Thanks.


Top
 Profile  
 
 Post subject: Re: Full-text search on data split across records
PostPosted: Wed Apr 25, 2012 11:43 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
it depends on your mapping. Hibernate Search expects unique entities to be indexed, but it would be fine for example if you have a "Record 1" entity having a relation to all it's "chunk 1 for record 1" and "chunk 2 for record 1".

In such a case, just index the "Record 1" which represents the aggregation of your message (and has a reference to all records chunks), and have it index all chunks as a single collection.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Full-text search on data split across records
PostPosted: Thu Apr 26, 2012 3:20 am 
Newbie

Joined: Mon Jan 26, 2009 8:52 pm
Posts: 2
Thanks Sanne, will check this one out.


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.