SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: CompassSearchHelper/pagination queston

This question is answered.


Permlink Replies: 20 - Pages: 2 [ 1 2 | Next ] - Last Post: Dec 3, 2011 4:35 AM Last Post By: longchamp
rs

Posts: 6
Registered: 6/17/09
CompassSearchHelper/pagination queston
Posted: Jun 17, 2009 6:25 AM
 
  Click to reply to this thread Reply
Hi,

How does CompassSearchHelper do pagination? Let's say the query returns 1000 hits and the page size is 10. When I request page X, will the CompassSearchHelper re-execute the query and then scroll to the X*10,X*10+9 ? Does it store the whole 1000 hits inside? Can I put CompassSearchHelper in session (i have clustering, so it will get serialized...)

I am trying to figure out what is better:
1) get all hits and then store them as a collection in my session and do the pagination myself (for each page by simply picking up the ones in the correct interval)
2) use CompassSearchHelper

Thank you.
RS
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: CompassSearchHelper/pagination queston
Posted: Jun 17, 2009 12:31 PM   in response to: rs in response to: rs
Helpful
  Click to reply to this thread Reply
The CompassSearchHelper returns CompassSearchResults, in it, you have the hits for the page you choose, and all the pages that you have as the results. CompassSearchResults is not serializable, but I don't see a reason why you need to store it in the session. When someone click on the next page, simple execute the query again using CompassSearchHelper, with a the new page number (you can pass it as request parameter), and do the cycle again.
rs

Posts: 6
Registered: 6/17/09
Re: CompassSearchHelper/pagination queston
Posted: Jun 17, 2009 3:59 PM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
Thank you.

Clarification question: what is the rough level of efficiencies achieved with CompassSearchHelper - if the hit yields 1000 matches, and I use RSEM, and request page X, will it still internally instantiate 1000 resources, or only those resources that are needed for the specified page X?

To put it another way, what is generally more expensive:
1) re-executing the query (in case I use pagination with CompassSearchHelper) and getting resources just for the page X?
2) doing query once, instantiating all matched 1000 resources, and remembering them all in my own session-level container to do the pagination myself?

Thank you.
RS.

Edited by: rs on Jun 17, 2009 4:00 PM
rs

Posts: 6
Registered: 6/17/09
Re: CompassSearchHelper/pagination queston
Posted: Jun 18, 2009 5:43 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
Shay, can you please comment?
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: CompassSearchHelper/pagination queston
Posted: Jun 19, 2009 2:51 AM   in response to: rs in response to: rs
Correct
  Click to reply to this thread Reply
rs wrote:

To put it another way, what is generally more expensive:
1) re-executing the query (in case I use pagination with CompassSearchHelper) and getting resources just for the page X?
2) doing query once, instantiating all matched 1000 resources, and remembering them all in my own session-level container to do the pagination myself?

You should execute the query each time for each page, that is the recommended way and probably the best way since you don't want to create 1000 resources when most of the times your users will not get to page 100.
louisvuittonbox

Posts: 411
Registered: 8/23/11
Re: CompassSearchHelper/pagination queston
Posted: Aug 23, 2011 10:33 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
Looking for a new ghd lisseur? Now, you can make your hair to be curl or straight with styler ghd, which is a suitable styling tool, you are able to use it to change your hairstyle which you like in a entirely very less period of time. This useful product was created and designed by the Farouk Systems, and today lisser ghd are loved by more and more young girls and graceful ladies. There are many ghd hair straighteners around the whole world nowadays, and GHD Outlet online store may be the best choice for you, if you want to buy discount Ghd IV salon styler.As a professional ghd France online seller, we provide Ghd Iv Styler,Ghd Iv Salon Styler,Ghd Iv,Ghd Salon Styler,ghd iv mini styler,ghd straighteners sale,ghd gold styler and so on at lower price, you can find different designs, colors of GHD IV Styler are listed in our livraison gratuite. When you find your ideal GHD IV Styler, you can order them soon, and we will send our products to you witnin a week, no tax sale, fast free shipping. Hope you enjoy your shopping here.
hmq123

Posts: 449
Registered: 8/22/11
christian louboutin
Posted: Aug 24, 2011 10:38 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
How christian louboutin should I heard cheap louboutin shoes that, about your right discount christian louboutin shoes and wrong? How Christian Louboutin Pumps should I heard, was able to Christian Louboutin Ankle Boots smile? How should I heard, you good, for her not to let the http://www.louboutinsshoes2u.com/ tears?
hmq123

Posts: 449
Registered: 8/22/11
Louboutins Shoes Sale
Posted: Aug 24, 2011 10:40 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
Fresh Louboutins Shoes Sale sweet smile like the Christian Louboutin Shoes wine you drink, the more Cheap Christian Louboutin mellow Christian Louboutin Glitter Pumps life, elegant lingering smile Cheap Louboutin Booties like read the poem, the more http://www.louboutinsshoes4sale.com/ romantic life.
hmq123

Posts: 449
Registered: 8/22/11
Discount Christian Louboutin Shoes
Posted: Aug 24, 2011 10:42 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
A smile Discount Christian Louboutin Shoes is healthy, the smile Christian Louboutin Shoes is success, but only Christian Louboutin sale smile and life, and life Cheap Wedding Shoes road to the colorful, just Christian Louboutin Ankle Boots won't give his life with http://www.cheap-christianlouboutinpumps.com/ regrets.
hmq123

Posts: 449
Registered: 8/22/11
Cheap Louboutins
Posted: Aug 24, 2011 10:44 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
A smile is the most Cheap Louboutins moving people expression, Christian Louboutin Shoes life is good and silent Christian Louboutin Discount language, only smile Christian Louboutin Wedding life, the Louboutin Open-toe Booties mood will be relaxed and http://www.cheaplouboutins-shop.com/ cheerful.
hmq123

Posts: 449
Registered: 8/22/11
christian louboutin sale
Posted: Aug 24, 2011 10:46 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
In middle christian louboutin sale age, experience christian louboutin shoes rains and winds, have discount louboutin sale seen the rainbow. Through Christian Louboutin Peep Toe Pumps pain, also get the Christian Louboutin Sandal Booties joy. Experienced setbacks, and bear witness to the http://www.discountlouboutins-sale.com/ success.
hmq123

Posts: 449
Registered: 8/22/11
New Moncler Jackets
Posted: Aug 24, 2011 10:49 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
Self-confidence New Moncler Jackets is not conceit, it is not proud, New Moncler Coats is important, Moncler Online Store is the spiritual pillar of the Cheap Moncler Men Jackets behavior of the Moncler Jackets Women self, self motivation is the incentive to overcome difficulties reach the goal of http://www.moncler-officialwebsite.com/ energy.
UGGS

Posts: 27
Registered: 9/25/11
Re: CompassSearchHelper/pagination queston
Posted: Sep 25, 2011 8:59 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
F,UYJHAustralian Uggs For Cheap invoke images of handmade and comfy footwear that assist you maintain your feet cozy during chilly winters. And why just winters, these sheepskin boot varieties are perfect for summers also. The Ugg boots are essentially sheepskin boots from Australia which are very well-liked the world over for their style quotient too.
Justing Kemp

Posts: 6
Registered: 8/1/11
Re: Cheap Louboutins
Posted: Sep 26, 2011 5:05 AM   in response to: hmq123 in response to: hmq123
 
  Click to reply to this thread Reply
Thanks for your Information......
macmakeup12

Posts: 174
Registered: 9/21/11
linhuang
Posted: Sep 29, 2011 8:32 PM   in response to: rs in response to: rs
 
  Click to reply to this thread Reply
To buy Discount GHD Straighteners women's true religion jeans sale Armani jeans cheap true religion jeans is to make a statement that you understand fashion at its finest. But what many cheap true religion jeans on sale consumers don't know when shopping for women's GHD IV Styling Set Hair Straighteners Armani jeans is that there are imposters on the market -- cheap MEN'S JEANS impostors. These cheap makes are of inferior quality that wear out faster than the real article. Read on for some hints on identifying fake Armani WOMEN'S JEANS jeans.New Armani jeans will always Men's Bootcut come Men's Flare with a COA (certificate of authenticity). It will be attached to the jeans (usually) by a belt loop. The COA will be Tory Burch Caroline encased in Men's Skinny blue plastic and attached with thick, firm blue string and a blue security piece. Fake garments can also have these items, but the Men's Straight Leg string will likely be thin and lacking Women's Skirts&Shorts sturdiness.The certificate Tory Burch Boots will opi nail polish be watermarked Tory Burch New Arrival with the Cheap Ghd Hair words, "Giorgio Armani". To check the authenticity OPI France of this watermark, you Women's Bootcut must hold the certificate up to a light Tory Burch Outlet before these word will appear. Fake Armani jeans will simply have these words printed on the Tory Burch Flats certificate making them OPI France visible to the naked OPI DS eye under any light Tory Burch Sandals when viewed at any angle. This is a Tory Burch Shoes tell-tale sign that the jeans OPI Texas are not authentic.Along OPI Sunbelievable the bottom of the certificate will be tiny particles of colored Tory Burch Flats paper that 2010 New ghd iv green envy compose the words, "Giorgio Tory Burch Handbags Armani". These Tory Burch Flats Sale paper particles were 2010 New ghd Blue Serenity IV Styler embedded discount opi nail polish into the Tory Burch Flip Flops certificate during the OPI Katy Perry production process making it impossible to Hair Straighteners Sale reproduce. These OPI All Shook Up particles also Tory Burch Heels create an embossed feel on the letters, similar Ghd Hair Straighteners Sale to opi nail polish wholesale braille. Fake Armani jeans opi nail polish cheap may be missing this or GHD New IV Styler lacking the embossed 2010 New GHD Red Lust IV Styler feel of the letters.
http://american-idol-stars.com/blog/linhuang123 http://blog.sohu.com/people/!MzcxOTQyNTUwQHFxLmNvbQ==/ http://zhuofei.blog.forexstar.com.cn/ http://blog.sina.com.cn/u/2261594297 http://linhuang123.fotopages.com/ http://linbinghuang1234.blog http://linhuang.parenting.gr/ http://linhuang123.beeplog.com/ http://linhuang123.mylivepage.com/blog/index/ http://linhuang2.blogtrue.com/ http://linhuang6.manablog.jp/ http://www.blogstoday.co.uk/bloghome.aspx?username=linhuang1234 http://17517834.blog.hexun.com/ http://linhuang123.over-blog.com/ http://test2.blackpeeps.co.uk/pg/blog/linhuang123 http://vidi.co.il/profile_blogs/linhuang123/ http://www.adultblogs.com/users/linhuang123/ http://linhuang123.blogoak.com/ http://www.blogusers.com/sme_blog.php?u=a123456&action=view_cat&cat=5023 http://www.blurty.com/users/linhuang123/ http://linhuang123.createblog.com/blog/ http://www.darksiders.net/user/linhuang123/blogs http://www.equestrianblogging.com/blogs/linhuang1234 http://www.freedatingsiteahead.co.uk/blogs.php?action=show_member_blog&ownerID=5067 http://www.graphicdesigncommunity.com/blogs.php?action=show_member_blog&ownerID=62249 http://www.holatu.com/userlinhuang123/blogs http://linhuang123.insanejournal.com/ http://www.kaka365.com/blog/blog.php?uid=6486 http://www.landyconnect.co.uk/profile/linhuang123 http://www.lj.ivanovo.ru/users/linhuang123/ http://www.linhuang123.19dog.com/ http://www.safetyissues.com/community/blogs/posts/linhuang123 http://www.thoughts.com/linhuang123 http://blog.cnfol.com/linhuang123 http://linhuang123.podbean.com http://linhuang123.allmyblog.com/ http://chenjiech.inube.com/ http://chenjieuu.bloggd.org/ http://gvrl.com/blogsearchresults.asp?basicsearch=chenjieuu http://www.muslimduniya.com/member/view_blog.php?profile_id=1219 http://groupeiservices.info/blogs/posts/linhuang123 http://my.carttube.com/blogs/posts/linhuang123 http://osi.parsons.edu/archive/osi2007/?q=blog/10349 http://saswingers.org/user/6929 http://freckbook.com/m/avatar/ http://social.wowjen.com/linhuang123/ http://polovinka.bg/member/view_blog.php?profile_id=245326 http://videochatpals.com/blogs/posts/linhuang123 http://www.aime.org.au/community/pg/blog/chenxin http://www.bambinidisatana.com/network/blogs/writestory/ http://www.carandcycleclub.com/index.php?do=/public/user/blogs/name_linhuang1234/ http://www.centralflsocial.com/blogs/posts/linhuang123 http://www.berzerk.com/users/linhuang123 http://www.creativesocial.net/pg/blog/owner/linhuang123 http://www.filipinopeople.com/linhuang123 http://www.lovemuhammad.com/pg/blog/linhuang123 http://www.lw-works.com/user/31716 http://www.me-too.com.au/elgg/pg/blog/chenxin http://www.myfunline.com/member/view_blog.php?profile_id=2894 http://www.myspate.com/blogs_view.php?id=5746 http://www.newar.com.np/blog.php?user=linhuang123 http://www.panaspace.com/user/linhuang123/blogs http://www.phillymusic.org/blogs.php?action=show_member_blog&ownerID=23521 http://www.spanishmusic.biz/user/linhuang123/blogs http://www.projectwonderfultalk.com/forum/createtopic.php?method=newtopic&forum=2 http://chenjieuu.blogbus.com/ http://videochatpals.com/blogs/posts/chenjieuu http://www.crimetime.co.uk/community/user_blog.php/chenjieuu http://blog.zol.com.cn/chenjieuu/ http://www.cxzyz.com/dvbbs71/boke.asp?chenjieuu.showchannel.0.1494.html
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums