*
The moose likes Groovy and the fly likes Searchable plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Searchable plugin" Watch "Searchable plugin" New topic
Author

Searchable plugin

Maharaj thak
Greenhorn

Joined: Jul 29, 2010
Posts: 27
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Searchable plugin