#community-help

Duplication Issue in Document Return

TLDR Carl asked why the same document was returned twice, showing missing values in some properties. Kishore Nallan suggested checking the indexing method and use of curation overrides. Carl opted to provide a query for in-depth troubleshooting.

Powered by Struct AI
Sep 07, 2021 (26 months ago)
Carl
Photo of md5-b4b5ae6f21ade3ef3d7824c4b63090c3
Carl
07:41 AM
Hey 🙂 What would cause results to bring back the same document twice? The returned documents have the same id . One document looks compete but the other is missing values in some of the properties. Any suggestions on where I can begin to investigate the cause?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
07:42 AM
:thinking_face: Are you sending the "id" field as part of the document while indexing or is it auto generated by Typesense?
Carl
Photo of md5-b4b5ae6f21ade3ef3d7824c4b63090c3
Carl
07:42 AM
We send the ID as part of the document
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
07:43 AM
Do you have any overrides defined?
07:43
Kishore Nallan
07:43 AM
Even with that, it should not be repeating. We will need access to the dataset either via a reproduceable sample set or to your data, if that is public data that can be accessed.
Carl
Photo of md5-b4b5ae6f21ade3ef3d7824c4b63090c3
Carl
07:44 AM
I'm unsure what you mean by that. We're only setting up a collection with a bunch of facet fields
07:44
Carl
07:44 AM
I'll PM you with a query you can perform
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
07:44 AM
Carl
Photo of md5-b4b5ae6f21ade3ef3d7824c4b63090c3
Carl
07:46 AM
Ah okay, no. We're not that fancy yet 😄