I'm currently looking to see what would be a decent way to implement a
scrolling window in the result set when looking for an item.

Basically, I need to find item X in the result set and return say N items
before and N items after.

< ----- N items -- Item X --- N items ---->

So I was thinking a post filter could do the work, where I'm basically
looking for the id of the document, select it + the N documents after.
This is easy to do, however in the end it cannot work since this doc
selection need to happen post sorting while the post filtering is before
the sorting.

So I might be wrong, but it looks like the only way would be to create a
custom SolrIndexSearcher which will find the offset and create the related
docslice. That slicing part doesn't seem to be well factored that I can
see, so it seems to imply copy/pasting a significant chunk off the code. Am
I looking at the wrong place ?

-- stephane

Reply via email to