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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositorySite SearchSite Search
Previous
 
Next
New Post
2/21/2008 12:36 AM
 

Is there a reason the content in my description doesnt appear to be indexed using the dnn search scheduler?  When I search that data there seems to be nothing that is indexed in my repository module.. can you help me understand how this content is indexed?  I really need it to be accessible from the site search.

 

Thansk

 
New Post
2/21/2008 9:25 PM
 

Can anyone offer help on this one?  Is there a way to get my repository content into the site search.

 
New Post
2/24/2008 10:00 PM
 

Does anyone montior this?  This is seems like a pretty straightforward question... am I phrasing it incorrectly perhaps?

 
New Post
3/5/2008 10:24 AM
 

The DNN search is very weak when it comes to search results, it does not include child portals or repository contents. This open source originated as a hosting solution and is trying to be a content management system in my opinion. I would look for a third party search tool to use instead of the built in DNN search, Venexus Search or Zoom Search. 

Also I think there has been a shift to the marketplace and revenues rather the the supporting community. So the forums are less responsive, money talks and Bu**s**t walks as they say.

Good Luck

 
New Post
3/6/2008 12:07 PM
 

Search in DNN Is implemented in the following manner.

- there is a scheduled task to 're-index' all module content. Check your scheduler to see when and how often it runs. You can also kick off a manual re-index on the Search admin page

- since the search re-indexer cannot know anything about a module's content, it does so by asking each module on your site to provide a collection of 'SearchItems' whcih is then adds to it's own collection to index

- so, each module is responsible for implementing the iSearchable interface and a function named GetSearchItems() which will be called by the dnn re-indexing service

- here is what the GetSearchItems() function looks like for the Repository module...

Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As Services.Search.SearchItemInfoCollection   
  Implements Entities.Modules.ISearchable.GetSearchItems
  oRepositoryBusinessController = New RepositoryBL
  Dim SearchItemCollection As New SearchItemInfoCollection
  Dim RepositoryObjects As ArrayList = GetRepositoryObjects(ModInfo.ModuleID, "", "Name", oRepositoryBusinessController.IS_APPROVED, -1, "", -1)
  Dim SearchItem As SearchItemInfo
  Dim UserId As Integer = Null.NullInteger
  Dim objItem As RepositoryInfo
  Dim strContent As String
  Dim strDescription As String

  For Each objItem In RepositoryObjects
    If IsNumeric(objItem.CreatedByUser) Then
      UserId = Integer.Parse(objItem.CreatedByUser)
    End If
    strContent = System.Web.HttpUtility.HtmlDecode(objItem.Name & " " & objItem.Description)
    strDescription = HtmlUtils.Shorten(HtmlUtils.Clean(System.Web.HttpUtility.HtmlDecode(objItem.Description), False), 100, "...")
    SearchItem = New SearchItemInfo(ModInfo.ModuleTitle & " - " & objItem.Name, strDescription, UserId, objItem.CreatedDate, ModInfo.ModuleID, objItem.ItemId.ToString, strContent, "id=" & objItem.ItemId.ToString)
    SearchItemCollection.Add(SearchItem)
  Next
  Return SearchItemCollection
End Function


So, the function retrieves all of the repository data for the module then iterates through the repository data items. For each record it creates a SearchItemInfo record, then adds it to a  SearchItemCollection which is returned at the end.

The main point here is that the SearchItemInfo.content propery is what is indexed, and in the case of the repository module, what is indexed is the Name field and the Description field.

strContent = System.Web.HttpUtility.HtmlDecode(objItem.Name & " " & objItem.Description)


I hope that helps you understand how the core DNN search works.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositorySite SearchSite Search


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