OpenContent
OpenContent copied to clipboard
Fixes #263 Add DNN Search Tag Option
Example:
"templates": {
"template": {
"type": "multiple",
"title": "List",
"main": {
"template": "template.hbs",
"dnnsearch": true,
"dnnSearchTitle": "{{Title}}",
"dnnSearchDescription": "Article: {{#if Summary}}{{Summary}}{{else}}{{truncateWords Text 20}}{{/if}}",
"dnnSearchText": "{{convertHtmlToText Text}}",
"dnnSearchTags": "Tag1,Tag2,Tag3",
"clientSideData": false
},
From the lucene index after the SearchCrawler has run
{
"TotalHits": 3,
"Results": [
{
"DisplayModifiedTime": "11 minutes ago",
"Snippet": "European goldfinch",
"AuthorName": null,
"Score": 0.0861446261,
"DisplayScore": "",
"SearchContext": {},
"Title": "European goldfinch",
"Description": "Article: Learn about the European goldfinch 2",
"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-SEO/0701-DNN-Search-Integration/id/149",
"ModifiedTimeUtc": "2025-02-12T16:19:43.267",
"IsActive": true,
"Permissions": null,
"Tags": [
"tag1",
"tag2",
"tag3"
],
"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"
},
fixes #236