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.  [ 1 post ] 
Author Message
 Post subject: hibernate search results details
PostPosted: Tue Nov 29, 2011 7:46 am 
Newbie

Joined: Wed Nov 16, 2011 8:07 am
Posts: 3
Hi everybody,

So I have successfully managed to integrate Hibernate Search in my application and everything works as expected. I just have a simple question ... Hibernate Search will search for the given text only in the selected fields. As a result I get a list of Objects. Is there a way to know in which field of the object the string was found?

In case the question is not clear enough here is a small example:
Object Student
fields: name. forename, street, houseno., city, hobbies

Let's say have 2 Students:
1(test, Billy, Apple Street, 5, Arizona, football)
2(Wealthy, Kid, Street, 8, Washington, test)

Now the search after 'test' will return both Objects as results.
How can I see in which field of the object 'test' was found?
So for object 1 I need name and for object 2 hobbies.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.