Good way to implement "Next hit"


(Jérémie BORDIER) #1

Hi,

What would be the best way to implement a more or less consistent
"Next hit" feature ?

Use case would be to display a hit details page, and be able to go
straight to the next document without going back on the search page.
If possible, the next hit request would still be consistent even if
new documents were indexed in the meantime.

Any non hacky suggestion ?

Thanks,
Jérémie


(Benjamin Devèze) #2

Hi,

maybe a search request for N hits with preference param set to session
id and maybe a date<=first_request_time.
Then if the user hit next you display next result. When user reaches
Nth result you do the same request with preference
and date condition to fetch N new result etc.

On Mon, Jun 4, 2012 at 2:37 PM, Jérémie BORDIER
jeremie.bordier@gmail.com wrote:

Hi,

What would be the best way to implement a more or less consistent
"Next hit" feature ?

Use case would be to display a hit details page, and be able to go
straight to the next document without going back on the search page.
If possible, the next hit request would still be consistent even if
new documents were indexed in the meantime.

Any non hacky suggestion ?

Thanks,
Jérémie

--
Benjamin DEVEZE


(Jérémie BORDIER) #3

Thanks for your suggestion Benjamin, that's more or less what I had in
mind.. I'll keep the last search hit ids in session and fetch the
previous / next batches if required.

Cheers,
Jérémie

On Mon, Jun 4, 2012 at 5:26 PM, Benjamin Devèze
benjamin.deveze@gmail.com wrote:

Hi,

maybe a search request for N hits with preference param set to session
id and maybe a date<=first_request_time.
Then if the user hit next you display next result. When user reaches
Nth result you do the same request with preference
and date condition to fetch N new result etc.

On Mon, Jun 4, 2012 at 2:37 PM, Jérémie BORDIER
jeremie.bordier@gmail.com wrote:

Hi,

What would be the best way to implement a more or less consistent
"Next hit" feature ?

Use case would be to display a hit details page, and be able to go
straight to the next document without going back on the search page.
If possible, the next hit request would still be consistent even if
new documents were indexed in the meantime.

Any non hacky suggestion ?

Thanks,
Jérémie

--
Benjamin DEVEZE

--
Jérémie 'ahFeel' BORDIER


(system) #4