Re: pagination with searchAfter

2022-09-24 Thread Robert Muir
You don't need a server-side cache as the searchAfter value has all the information, it is just your "current position". For example if you are sorting by ID and you return IDs 1,2,3,4,5, the searchAfter value is basically 5. So when you query the next time with that searchAfter=5, it skips over an

pagination with searchAfter

2022-09-23 Thread erel
I’ve never used searchAfter before so looking for some tips and hints. I understand that I need to maintain a server side cache with the relevant ScoreDocs, right? The index is refreshed every couple of minutes. How will that affect the cached ScoreDocs? I don’t mind too much having some inco