OpenContent icon indicating copy to clipboard operation
OpenContent copied to clipboard

DNN Search indexer duplicate search results

Open Timo-Breumelhof opened this issue 1 year ago • 0 comments

In some cases Open Content inserts Content twice to the DNN Search index.

Here you can see whats in the index on a 2 language, NON ML page with a Multi item Template that's not translated:

Doing search for {"SearchInput":"goldfinch","SearchTags":"","PageSize":"10","PageIndex":"1"}
Your result:

{
  "TotalHits": 3,
  "Results": [
    {
      "DisplayModifiedTime": "19 hours ago",
      "Snippet": "opean goldfinch...opean goldfinch...opean goldfinch or simply the goldfinch is a small passerine bird in the finch family that is native...",
      "AuthorName": null,
      "Score": 3.40701628,
      "DisplayScore": "",
      "SearchContext": {},
      "Title": "European goldfinch",
      "Description": "Article: Learn about the European goldfinch",
      "Body": " The European goldfinch or simply the goldfinch is a small passerine bird in the finch family that is native to Europe, North Africa and western and central Asia. It has been introduced to other areas, including Australia, New Zealand and Uruguay.  Wikipedia  \n",
      "Url": "http://demo.40fingers.net.local/opencontent-demo-templates/en-us/07-DNN-Search/0701-DNN-Search-Integration/id/149",
      "ModifiedTimeUtc": "2024-05-14T12:35:09.343",
      "IsActive": true,
      "Permissions": null,
      "Tags": [],
      "UniqueKey": "1862-149-",
      "RoleId": -1,
      "PortalId": 23,
      "TabId": 4783,
      "ModuleDefId": 146,
      "ModuleId": 1862,
      "AuthorUserId": 0,
      "SearchTypeId": 1,
      "QueryString": null,
      "Keywords": {},
      "NumericKeys": {},
      "CultureCode": ""
    },
    {
      "DisplayModifiedTime": "19 hours ago",
      "Snippet": "opean goldfinch...opean goldfinch...opean goldfinch or simply the goldfinch is a small passerine bird in the finch family that is native...",
      "AuthorName": null,
      "Score": 3.40701628,
      "DisplayScore": "",
      "SearchContext": {},
      "Title": "European goldfinch",
      "Description": "Article: Learn about the European goldfinch",
      "Body": " The European goldfinch or simply the goldfinch is a small passerine bird in the finch family that is native to Europe, North Africa and western and central Asia. It has been introduced to other areas, including Australia, New Zealand and Uruguay.  Wikipedia  \n",
      "Url": "http://demo.40fingers.net.local/opencontent-demo-templates/en-us/07-DNN-Search/0701-DNN-Search-Integration/id/149",
      "ModifiedTimeUtc": "2024-05-14T12:35:09.343",
      "IsActive": true,
      "Permissions": null,
      "Tags": [],
      "UniqueKey": "1862-149-en-US",
      "RoleId": -1,
      "PortalId": 23,
      "TabId": 4783,
      "ModuleDefId": 146,
      "ModuleId": 1862,
      "AuthorUserId": 0,
      "SearchTypeId": 1,
      "QueryString": null,
      "Keywords": {},
      "NumericKeys": {},
      "CultureCode": "en-US"
    },
    {
      "DisplayModifiedTime": "19 hours ago",
      "Snippet": "opean goldfinch...opean goldfinch...opean goldfinch or simply the goldfinch is a small passerine bird in the finch family that is native...",
      "AuthorName": null,
      "Score": 3.40701628,
      "DisplayScore": "",
      "SearchContext": {},
      "Title": "European goldfinch",
      "Description": "Article: Learn about the European goldfinch",
      "Body": " The European goldfinch or simply the goldfinch is a small passerine bird in the finch family that is native to Europe, North Africa and western and central Asia. It has been introduced to other areas, including Australia, New Zealand and Uruguay.  Wikipedia  \n",
      "Url": "http://demo.40fingers.net.local/opencontent-demo-templates/en-us/07-DNN-Search/0701-DNN-Search-Integration/id/149",
      "ModifiedTimeUtc": "2024-05-14T12:35:09.343",
      "IsActive": true,
      "Permissions": null,
      "Tags": [],
      "UniqueKey": "1862-149-nl-NL",
      "RoleId": -1,
      "PortalId": 23,
      "TabId": 4783,
      "ModuleDefId": 146,
      "ModuleId": 1862,
      "AuthorUserId": 0,
      "SearchTypeId": 1,
      "QueryString": null,
      "Keywords": {},
      "NumericKeys": {},
      "CultureCode": "nl-NL"
    }
  ]
}

This is caused by inserting the results for the languages and the neutral language.

Timo-Breumelhof avatar May 15 '24 08:05 Timo-Breumelhof