I'm having problems with the search I'm trying to implement. I need the user to be able to enter a search query in the web interface and for internal Java search to search in multiple fields. An example of this might be better:
Say that I have a list containing Person objects. Let's say that each object contains two string fields about a person:
FirstName: Jack Surname: Smith FirstName Mary Surname: Jackson
If the user enters "nest", I need a search to match both objects, the first by last name and the second by first name.
I was looking for using MultiFieldQueryParser, but can't set fields properly. Any help on this or pointing to a good tutorial would be appreciated.
source share