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 ...Search Engine Indexer IssuesSearch Engine Indexer Issues
Previous
 
Next
New Post
6/19/2008 12:18 PM
 

Hi, I'm having some problems getting the standard search engine indexer to work as I'd expect.  The result of the problem I'm having is that when you search for a specific word that I know appears on 8 pages in the site - only two search results are returned.  All pages are made of HTML modules - nothing clever.

I've cleared out the search tables: SearchItemWord, SearchItemWordPosition, SearchWord, re-indexed the site through the admin, tested a search: same problem.

Looking at the database, there are only two links between the word and search items.  e.g. the following query produces 2 results (same as the search results, of course):

SELECT *
FROM SearchItemWord
JOIN SearchWord ON SearchItemWord.SearchWordsID = SearchWord.SearchWordsID
WHERE SearchWord.Word LIKE '%abcd%'

However, the following query returns 8 results:

SELECT *
FROM SearchItem
WHERE
(
  ( Description LIKE '%abcd%' )
  OR
  ( Title LIKE '%abcd%' )
)

If in the above query I limit it to just the title, 5 results are still returned (3 titles actually start with the word).  I've looked through the SearchItem records and all contain the word in the Description field.

So, what's going wrong here?  Is this a bug, or have I done something wrong?  Any help would be appreciated.  It looks like the indexing process hasn't fully completed, or there is some faulty string tokenizing code being used somewhere in the indexer.

Thanks in advance,

- Andy.

 
New Post
6/19/2008 2:00 PM
 

Do you see any exceptions in the DNN event log pertaining to the indexer process? In some cases it helps to purge all the indexing tables by using TRUNCATE TABLE. in order to allow dnn rebuild search index from a clean state.

Also, depending on the database collation (ANSI, Latin, Cyrlic, etc) the text match query such as LIKE will treat strings differently.

 


Affordable DotNetNuke Hosting Affordable DNN Hosting & Support - www.ihostasp.net
Slavic Kozyuk
IHOST, LLC
Call toll-free: 1.800.593.0238
 
New Post
6/20/2008 8:16 AM
 

Andy

Did you try to search by part of word? Or whole word? What version of DNN?

Sergey

 
New Post
6/20/2008 10:48 AM
 

I've just solved the problem when doing some extra tests to answer your questions.  What I failed to do last time when clearing out the database is to remove the SearchItem records - these are also created by the indexer, which I hadn't appreciated.

So, I executed the following query on the database:

DELETE FROM SearchItem;
DELETE FROM SearchItemWord;
DELETE FROM SearchItemWordPosition;
DELETE FROM SearchWord;

I then ran the indexer again and everything is now as I'd expect, all of the words have been correctly indexed.

Still, I consider this to be a bug.  The button says 'Re-Index Content' not 'Update Index'.  So it should delete all the index data and start again, rather than updating what was already in the database / assuming what's in the database to be correct when clearly it might not be.

- Andy.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Search Engine Indexer IssuesSearch Engine Indexer Issues


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