Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curation overrides causing duplicate results #1740

Closed
smlparry opened this issue May 20, 2024 · 2 comments
Closed

Curation overrides causing duplicate results #1740

smlparry opened this issue May 20, 2024 · 2 comments

Comments

@smlparry
Copy link

Description

Hi there, firstly thank you so much for Typesense, incredibly useful and much easier to use than elasticsearch etc

I am however hitting one issue with curation overrides. I'm getting duplicate items returned, see below

Screenshot 2024-05-20 at 5 57 50 pm

I am wondering, is this expected behaviour? Is there a way that I can return only unique results?

I could of course filter these once I get the result back from the server, but this will mess with pagination

I have combed the docs, but I don't seem to be able to find a setting where I can do this, nor does it even refer to this issue which makes me think I'm doing something wrong?

Steps to reproduce

  1. Create a curation, and include 1 pinned item
  2. Trigger a search such that the curation is applied
  3. Notice that the item appears at the top of the search, and in the search results

Expected Behavior

I would expect the curated results to be filtered from the remaining search

Actual Behavior

I am getting duplicate results, as curated hits, and then also appearing in the remaining search results

Screenshot 2024-05-20 at 5 57 50 pm

Metadata

Typesense Version: 0.25.1

OS: Docker / Mac

@jasonbosco
Copy link
Member

Could you upgrade to v26.0 to see if you can still replicate the issue there?

@smlparry
Copy link
Author

Apologies @jasonbosco it does look like upgrading to 26.0 fixes the issue.

Thanks mate, closing

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

No branches or pull requests

2 participants