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

DNN Search indexer duplicate search results #233

Open
Timo-Breumelhof opened this issue May 15, 2024 · 0 comments
Open

DNN Search indexer duplicate search results #233

Timo-Breumelhof opened this issue May 15, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@Timo-Breumelhof
Copy link
Collaborator

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 Timo-Breumelhof added this to the 05.01.00 milestone May 15, 2024
skamphuis added a commit that referenced this issue May 15, 2024
@Timo-Breumelhof Timo-Breumelhof changed the title DNN Search indexer sometimes duplicas search results DNN Search indexer duplicate search results May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants