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
|