With introduction of new server-side api, its very easy to perform CRUD operation on assets. For searching assets, Searcher helper class provides methods to include various options which is very easier to implement.
Note: For using Searcher, global indexes for the assettype should be enabled.
Following is simple illustration of searching product assets of particular locale (en_US) in FirstSiteII, it can also search on product name, order by date and shows 10 results per page.
Click here to download this sample groovy class.
Need help? Click here.
Many Thanks.. It helps alot :)
ReplyDeleteHow to implement same on 11.1.8
ReplyDeletehttp://fatwirecode.blogspot.in/2015/07/implementing-pagination-on-search.html
Delete