Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Searchable plugin  RSS feed

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!