I use the Searchable plugin in my Grails application, but I am having trouble displaying it for more than two domain objects when returning valid search results. I have looked through the documentation of the Searchable plugin, but cannot find the answer to my question. Here is a very simple example of the domains that I have:
class Article {
static hasMany = [tags: ArticleTag]
String title
String body
}
class ArticleTag {
Article article
Tag tag
}
class Tag {
String name
}
Ultimately, what I want to do is find the articles by looking at their titles, tags, and related tags. Headings and tags will also be increased.
How can these classes be matched to achieve the desired results?
source
share