django-haystack / django-haystack/django-haystack
More like this pagination is causing the data to be empty after the second page, causing an error.
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.7k
- Forks
- 1.3k
- Avg merge
- 3h 18m
- Merged PRs (30d)
- 3
Description
- [✅ ] Tested with the latest Haystack release
- [✅ ] Tested with the current Haystack master branch
Expected behaviour
I want to use pagination in More like this.
Actual behaviour
The first page retrieves data successfully, but the second and subsequent pages are empty.
error

Configuration
- Operating system version: windows11
- Search engine version: ElasticSearch 5.6.16 (Also 7.14.2)
- Python version: 3.10
- Django version: 3.2.8
- Haystack version: 3.0 (I also tried the latest version, but it was impossible. 3.0 because I use drf-haystack.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce More Like This pagination with the reported Django, Python, and Elasticsearch versions, checking the first page and then the second and subsequent pages. Inspect the pagination path used by django-haystack and compare the returned data at each page. Done means later pages return data consistently without triggering the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, elasticsearch, python
- Domain
- backend, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100