Skip to content

Conversation

pory-gone
Copy link
Contributor

Description

fix #2528

Set k parameter to decodedCursor.offset + LIMIT to stop neural embedding to return the same top results

Screenshots

Additional Context

The solution was inspired by @Scroogey-SN's comment on the GitHub issue pointing to OpenSearch hybrid search pagination documentation. The fix aligns the related resolver's neural query behavior with the working search resolver implementation. This ensures consistent pagination across both search functionalities

Checklist

Are your changes backward compatible? Please answer below:

For example, a change is not backward compatible if you removed a GraphQL field or dropped a database column.

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

Did you introduce any new environment variables? If so, call them out explicitly here:

Did you use AI for this? If so, how much did it assist you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

related posts pagination returns duplicate results
1 participant