Hello I am reading the standard documentation for grails searcheable plugin at http://grails.org/Searchable+Plugin+-+Mapping+-+Class+Property+Mapping It describes searcheable references and components in that.
In the classic scenario discussed on the page if I have
class News {
static searchable = true
static hasMany = [comments: Comment]
String text
}
and
class Comment {
static searchable = true
String text
}
If I am searching by News.search("a phrase", params)
what do I have to change in this query so that "a phrase" is searched into news as well as comments of news?