On 21-May-08, at 2:35 AM, Tim Mahy wrote:
Hi all,
is there a way to let Solr not only return the total number of found
articles, but also the data of the last document when for example
only requesting the first 10 documents ?
we could do this with a seperate query by either letting the second
query fetch 1 row from position = previouscount - 1 or by switching
the sorting and fetch only the first row, but it would be nicer if
we didn't have to do this second query, so is there any solution to
our problem ?
There is no built-in solution; fetching only the 10th result from the
list is a rare requirement.
You could make a custom request handler that accomplishes what you
seek, but it is probably easiest to fetch all 10 docs and ignore docs
1-9.
-Mike