Closed sdfordham closed 3 years ago
The logic seems fine. Is it always 177 or some other number? Perhaps some properties were removed during your testing.
PAGE_SZ=50
so the 'last' page should have 27 results, but it looks like sometimes this last page is actually the first page so we get 27 + 50 + 50 + 50 results instead of 50 + 50 + 50 + 50 results. Looking at the daft website, this doesnt seem to really matter since they are using infinite scrolling. But I could be missing something here.
I couldn't replicate this. Perhaps explicity setting the sort type may fix it. That's all I can really think of at the moment. It may be a problem with Daft's API 😄
The default sort type is best match so I'm thinking their search algorithm omits results or shows listings first based on what the user last seen.
Related to (#101) the following code:
Usually gives output:
but annoyingly sometimes: