开发者

How to set the size of search result in Grails Searchable plugin

开发者 https://www.devze.com 2023-03-02 16:12 出处:网络
For my application I am using Grails Searchable plugin. By default the search result size is 10 results per page. How can I can increase the search result size because I want 开发者_如何学Cto show all

For my application I am using Grails Searchable plugin. By default the search result size is 10 results per page. How can I can increase the search result size because I want 开发者_如何学Cto show all the results on one page instead of doing paginating stuff. Please advise me, Appreciate it.


have a look at: http://grails.org/Searchable+Plugin+-+Methods+-+search

you have to use the result option 'every'.

// get all articles containing the term 'test'
def articles = Article.search(
    "test",
    [result: 'every']
)
0

精彩评论

暂无评论...
验证码 换一张
取 消