[Tracker] Get search result from specified offset?
- From: "Mikkel Kamstrup Erlandsen" <mikkel kamstrup gmail com>
- To: "Tracker List" <tracker-list gnome org>
- Subject: [Tracker] Get search result from specified offset?
- Date: Mon, 31 Jul 2006 22:07:17 +0200
Say I want to add paged search results to Barracuda, showing 100 per hits per page. How would I do this optimally?
My first intuition tells me that I should do to like this (symbolically speaking) tracker_query(String query, int offset, int numHits), with numHits=100 and offset=0 for the first page, offset=100 for the second page etc. This is not possible with the current tracker api though.
I'm a bit hesitant to beg for an api addition since with these kind of examples we might end up with a really cluttered api if we add everything that comes to mind.
Right now I hard code 512 hits as a max. I could page these with 100 hits/page but I often have >512 hits for my test queries. When I hit page 5 i could re-query with 1024 hits, but I'm hesitant to do so....
Any thoughts?
Cheers,
Mikkel
BTW: CVS seems to be working fine for me (with limited testing though).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]