Where are two domains
class State {
String name
static searchable = {
only: 'name'
}
}
class Region {
State state
String name
static searchable = {
state component: true
only: 'name'
}
}
I want to find only regions by region name or all regions of state by state name. States should not be in search result.
How I have to change the code?
PS
I know how to find objects by gorm. I wrote just simple example of code. I need lucene for featured search
Region by region name In SearchableService
Find all region of state by state In searchableService
Hopefully this work.If not, please paste your code in the service.