I have a working web app which can do search for User
objects through its Username
. I wonder if I can use Hibernate-Search to do a text search through all of the User object attributes, like its:
- Username, Full Name, Address, etc.
And will output User objects with attributes that matches the search query?
Also is there any thing that is needed to be annotated in the User
class in my application?
User.java:
public class User implements Serializable{
private String username;
private String fullname;
private String address;
// Code omitted
public User() {
}
// Getters & setters omitted
}