-->
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: How to perform case insensitive *searchTerm* search
PostPosted: Mon May 09, 2011 6:56 am 
Newbie

Joined: Sat May 07, 2011 10:14 pm
Posts: 9
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.


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.