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
#1,818 0 comments 0 reactions 0 assignees View on GitHub

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

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.