Hello Team, I have lakhs of contactRecords in my DB with firstname and lastname. I want to do Hibernate search operation using dsl or lucene query (what ever is the easiest way) so that i should be able to fire a query "~ like *givenFirstName* AND ~like *givenLastName* ". Can any one suggest me the code. I could do case insensitive and get all the records starting with givenfirstname using lucene query. The problem iam facing is to keep * before name. lucene is throwing me exception if i try to keep * before name. Also i heard if i use wild card search using dsl i cannot use any analyzer . As a part of my requirement i have got to do accent based search also,where i need to use some analyzer.
In one sentence how can i do case insensitive contains search on multiple fields by keeping AND operation.
Please help me out on this regard.
|