简体   繁体   中英

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

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 to 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']
)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM