• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Searchable plugin

 
Maharaj thak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I am using the searchable plugin in my application and here's the code in my controller


def search{

def searchResult=MyDomainClass.search("myquery",[escape:true])

}

I am using the [escape:true] map to get rid of special characters i.e. + - && || ! ( ) { } [ ] ^ " ~ * ? : \.Without the map the query works but not with the map.
Has anyone else tried using it?What else should I do to make the query work?
Any help would b greatly appreciated.

Regards
Mauji Thak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic