This should result in 1 result but I get 2 items, but only one of the hits returns correct object when running
var originalType = searchHit.OriginalObjectGetter.Invoke() as IProductVariant;
Debugging I can see that the two hits have 2 different search hit Ids (EPiServer.Find.UnifiedSearch.UnifiedSearchHit}.Id):
CatalogContent_2e5284c8-902a-4770-a7d1-9eec56cfcd9b_no and CatalogContent_a12bdcd8-f61a-43a5-9edc-36b8b604d919_no
The original object GUIDs (EPiServer.Find.UnifiedSearch.UnifiedSearchHit.Document.OriginalObjectType.GUID) are the same: 65285790-5efc-3066-9f17-69e8998c267c}
Issue resolved: there was an issue with the index, it contained some duplicate entries. Cleared it, re-indexed and then search was working as expected.
I am getting duplicate results when using UnifiedSearch. The query looks like this
This should result in 1 result but I get 2 items, but only one of the hits returns correct object when running
Debugging I can see that the two hits have 2 different search hit Ids (EPiServer.Find.UnifiedSearch.UnifiedSearchHit}.Id):
CatalogContent_2e5284c8-902a-4770-a7d1-9eec56cfcd9b_no and
CatalogContent_a12bdcd8-f61a-43a5-9edc-36b8b604d919_no
The original object GUIDs (EPiServer.Find.UnifiedSearch.UnifiedSearchHit.Document.OriginalObjectType.GUID) are the same: 65285790-5efc-3066-9f17-69e8998c267c}
Any clues to why this happens?