DotNetNuclear
  • About
    • Contact
  • Products
    • Intensity Slider
    • MVP Template
    • Support
  • Learning

DNNCon Session: Customizing Your DNN Search Results
Article Rating

By  Scott Wilkinson

Posted Nov 08, 2014 01:26

Tweet

Comments 0

Introduction

Learn how to create customized search results that leverage DNN's lucene index data. At last year's DNNCon, Ash Prasad presented a great session about the newly redesigned search engine in DNN 7.1 and above. He discussed the search architecture, lucene concepts, and the new ModuleSearchBase class for allowing developers to inject data into the index. This year, I want to take the next step of showing developers how to create custom search results that can query the lucene data in very specific ways to present the results exactly the way you, or your client, needs them.

Custom Search Results Module

The Custom Search Results module was built using the Module Creator and uses the Handlebars javascript template framework. Download the zip file (DotNetNuclear_HandlebarsCustomResults.zip) in the Related Files section. Follow these instructions to install:

Instructions:

  1. Login as Host
  2. Create a page
  3. On the admin ribbon, select Modules > Create Module
  4. Drop an instance of the Module Creator module onto the page
  5. Enter the following settings:
    • Owner Name: DotNetNuclear
    • Module Name: CustomSearch
    • Language: C#
    • Template: Module - User Control
    • Control Name: View
  6. You should now have a working and registered module in the /DesktopModules/DotNetNuclear/CustomSearch folder. Replace the files in this folder with the ones in the DotNetNuclear_HandlebarsCustomResults.zip file.

Client-centric Module w/ Search

This module shows off several techniques: knockout/WebAPI front end, ModuleSearchBase implementation, and Lucene search. Follow the instructions to install:

  1. Download the DotNetNuclear.SearchContent.zip file from the Related Files section below
  2. Unzip the project folder (DotNetNuclear.SearchContent) under the \DesktopModules folder
  3. Open Visual Studio 2012 or 2013 as an Administrator and open the project
  4. Build project in Release mode
  5. Install the \install\*_Install package in Host > Extensions
  6. Create a test page and drop an instance of the module on the page

Prerequisite Training for this session

This is a more advanced topic in module development. Some topics like WebAPI services development, Knockoutjs, ModuleSearchBase, in addition to basic module development are assumed when reviewing this material. If you are not familiar with some of these topics, no problem! I have lots of training videos here and on DNNHero.com to get you up to speed.

Essential DNN Module Development
  • Environment and Template Setup
  • Module Development Basics - Views and Navigation
  • Data Access Techniques in DNN Modules
WebAPI Services and Knockoutjs
  • Client-Centric Module Development
  • Advanced DotNetNuke Rich Client Modules - Knockoutjs, jQuery and Services Framework
  • Cascading Country / State Dropdowns: A Study in DotNetNuke 7 WebAPI Services and Ajax
Other tutorials
  • DNN 7.2 Module Creator
  • Advanced DotNetNuke DNN Search Integration

Related Files

  • DotNetNuclear.SearchContent (1.65 MB)
  • DotNetNuclear_HandlebarsCustomResults (28.4 KB)
  • DNNCon_CustomizeSearch (680 KB)

Rate this


Post Comment

Name (required)

Email (required)

CAPTCHA image
Enter the code shown above:

0 Comments

There are currently no comments, be the first to post one.
Did this help you? Give back... Give $5 so we can continue creating these articles Why?
25 Latest Articles Current Articles | Archives | Search
  • © 2018 DotNetNuclear LLC
  • Terms Of Use |
  • Privacy Statement |
  • Login
  • DNN Software
  • YouTube
  • Twitter
  • LinkedIn
  • Facebook
  • Stack Overflow