Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Custom Search in 7.1Custom Search in 7.1
Previous
 
Next
New Post
8/21/2013 4:36 PM
 
#1 - One example where you'd make IsPrivate=true is if you were to write a

crawler for logs from Event Viewer. You wouldn't want that to be

searchable in general site search. Ideally one would write a new control /

module to search just those by using the SearchAPIs by supplying that

SearchTypeId itself. Default is false, so you are good to go.

#2 Yes you should delete them separatelty by passing the correct UniqueKey

in DeleteSearchDocument API. Just so you know Lucene does not physically

remove the data from Lucne when Delete is issued, it simply flags it that

way. Ideally Host>Compact button should be clicked periodically to reclaim

space.

#3 We don't crawl user details, it's in the road map though. So you'd need

to build a SearchType for Users and index the details. Likewise, another SearchType will be needed for the 3rd party data store.

Basic Search (skin object on top right corner of every page) - I think you can use it as is, it does categorization by itself.

Main Search Page - We don't have a way to display user's bio or thumbnail, however I think you can easily make a copy of the SearchResults module and have your functionality. You need to make sure you make a copy of the WebAPI service as well. The SearchResults module is nothing but JavaScript and a WebAPI backend, you need to tweak both of these. WebAPI is located under DotNetNuke.Web.InternalServices.SearchServiceController, while JS is located under Website\DesktopModules\Admin\SearchResults\dnn.searchResult.js

Answers to other questions:

1. Friendly Display Name for Search Type - This can be set by adding entries in Website\DesktopModules\Admin\SearchResults\App_LocalResources\SearchableModules.resx file you need an entry for Crawler_SearchTypeName.text (e.g. Crawler_custom1.text)

2a. Grouping is strictly done by Url. However, you can have your custom grouping by modifying GetGroupedDetailViews method in the WebApi backend.

2b. That is correct.

3. That's a good question. The framework is extensible and you can certainly create your own module. However, you need make sure you merge the fixes yourself should there be any in future. Given the special grouping you need and additional details about User (bio and image), you are better off creating a copy of the SearchResults module - make sure you give it a different name though.

Ash Prasad
Director of Engineering
DNN Corp.
 
New Post
8/31/2013 7:29 AM
 
Hi Ash,

How are updates done? If i submit the same UniqueKey with updated content is it than updated?
 
New Post
8/31/2013 10:49 AM
 
That's correct, if the UniqueKey already exists in the index then we delete the old SearchDocument first and then add new. I'd the intent is Update, make sure you fill I'm all the properties of the SearchDocument, not just the changed properties. E.g. User changed Title of a post, you still need to fill other details that you had in the original doc, such as body, tags, etc, This is different from SQL, where you can update just one column, Lucene is actually NoSql, where Update is different.

Ash Prasad
Director of Engineering
DNN Corp.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Custom Search in 7.1Custom Search in 7.1


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out