1

I'm trying using the Point In Time API for pagination implementation and I got the exception message below while using an expired pit id:

pplication exception:  ResponseError: search_phase_execution_exception
    Root causes:
        search_context_missing_exception: No search context found for id [129]

It always happens if some users open my web page and try scroll the list after a long time, for example, he/she leaves the tablet and comes back after two hours.

My question is what shall I do while the pit id is expired? If the only thing I can do is that showing an error message on my web page?

LCB
  • 971
  • 9
  • 22

1 Answers1

1

you would need to track where the user was with this request and then make a new one from that page, Elasticsearch cannot handle this for you though

warkolm
  • 1,933
  • 1
  • 4
  • 12
  • If I make a new PIT for that page in a infinite scrolling pagination, duplicate items may appear in the full list, right? – LCB Feb 17 '23 at 08:46