lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl <>
Subject Re: Best way to anchor solr searches?
Date Sat, 03 Sep 2011 21:57:48 GMT
If I understand correctly, you SORT on login_time desc.
Perhaps your biggest problem is that for each user logging in, they jump to page 1, so this
issue is very visible.
A simple way to fix this is to add a filter when you page, e.g. fq=login_time:[* TO <time-of-first-page-query>],
effectively freezing the time window you're viewing. Of course, if a user which is on page
2 when you're watching page 1, he will then fall out of your radar when you go to page 2.
However, it's probably not likely that a user who just recently logged in will log in again
very soon…

Freezing the index is harder. Lucene has something called commit-point which - if kept constant
for all queries will give you the same index version. But Solr does not expose this as a feature,
so you'd have to roll your own caching someway. Perhaps increasing queryResultWindowSize will

Jan Høydahl, search solution architect
Cominvent AS -
Solr Training -

On 25. aug. 2011, at 02:01, arian487 wrote:

> If I'm searching for users based on last login time, and I search once, then
> go to the second page with a new offset, I could potentially see the same
> users on page 2 if the index has changed.  What is the best way to anchor it
> so I avoid this?  
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

View raw message