0
我有关于搜索插件的一些问题检索插件:的Grails与标准
我有两个域名:
class Ads {
static searchable = true
String fromCity
String toCity
User user
static constraints = {
}
}
class User {
String username
String password
}
,我已经开发了我自己的搜索页面有两个字段(fromCity,toCity)。有类似的东西:
def listResults = searchableService.search("NewYork","Miami")
所以我想知道我可以给我的搜索方法这个标准领域。
def srchResults = searchableService.search(??????)
如果有人能帮我做到这一点,我将非常感激。