What is wrong with my search function?

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/6/2010 2:50:09 PM
Gravatar
Total Posts 137
When enough isn't

What is wrong with my search function?

Hi

I'm not sure where to exactly adress this search problem. Please help, someone.

So far I have not really done anything to setup the search function. But I noticed in my previous version 2-3-3-6 that MojoPortal actually did catch information from my pages which showed up when using the search function.

BUT now I have done two changes. Installed latest version 2-3-4-1 and switched web hotel from Full trust to a Medium trust setup. Everything else workes smoothly, but now absolutely nothing shows up when I do a seach.

I have these settings in user.config:

<add key="EnableSearchResultsHighlighting" value="true"/>
<add key="DisableSearchFeatureFilters" value="false"/>
<add key="SearchUseBackwardCompatibilityMode" value="false"/>
<add key="SearchResultsFragmentSize" value="300"/>
<add key="ShowRebuildSearchIndexButtonToAdmins" value="true"/>
<add key="ShowModuleTitleInSearchResultLink" value="false"/>

There is nothing in my index folder under ../sites/1/index and I have tried to provoke a new indexation pressing the admin-botton. It looks like some kind of job then did run in the background, but still nothing showed up in the index-folder. And yes, there is tons of content on my sites.

One thing more. I'm localized in denmark, so MojoPortal does automatically run some localization as I have kept the automatic localization like this:

<globalization culture="auto:en-US" uiCulture="auto:en-US" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="iso-8859-15"/>
 

Any clue what is wrong.

Lars

4/7/2010 10:01:41 AM
Gravatar
Total Posts 18439

Re: What is wrong with my search function?

Most likely problem is file system permissions prevent it from writing the index.

Are you seeing any related errors in your log?

4/7/2010 2:16:34 PM
Gravatar
Total Posts 137
When enough isn't

Re: What is wrong with my search function?

That could maybe be the case. How do I check that? MojoPortal has full access to the database, but I can't find anywhere to setup access to files.

There are no suspicious things in the log.

Best regards

Lars

4/8/2010 9:35:05 AM
Gravatar
Total Posts 18439

Re: What is wrong with my search function?

File system permissions are managed by the file system not by mojoPortal, in shared hosting your web control panel may have a tool for managing folder and file permissions.

You should see info in the logs about tasks building the search index even if no errors occur. 

Hope it helps,

Joe

4/8/2010 9:50:38 AM
Gravatar
Total Posts 137
When enough isn't

Re: What is wrong with my search function?

Thanks for adressing the issue. I have also contacted my webhotel and they claim all rights should be in place. My log file only shows a message like:

2010-04-07 20:31:52,425 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread

That's it - nothing else happens :( ... first it looks like there are 2 jobs in the queue and then the queue says empty after less than a minute.

Best regards

Lars

 

4/8/2010 10:00:34 AM
Gravatar
Total Posts 18439

Re: What is wrong with my search function?

Hi Lars,

I wonder if you have some files missing from /Setup/ProviderConfig/indexbuilders

If the index builders are configured you should see lots of INFO statements in the log from each indexbuilder

For example the ForumThreadIndexBuilder logs like this:

log.Info("ForumThreadIndexBuilderProvider indexing page - "
                + pageSettings.PageName);

Only other thing I can think of is if your pages are marked as "Is Draft" in page settings it will not index the page content because it is not published.

Hope it helps,

Joe

4/8/2010 10:24:00 AM
Gravatar
Total Posts 137
When enough isn't

Re: What is wrong with my search function?

I justed checked the indexbuilder folder in setup and it contains exactly same files as the downloaded version. I did another copy on top of it and executed a setup. Setup tells everything is ok and I see no changes.

Here are the two momentary jobs in the queue (with danish headers):

Opgave navn I kø Startet Senest opdateret Fremskridt Status
WebTaskManager 08-04-2010 16:14:40 08-04-2010 16:14:40 08-04-2010 16:14:56 50% Running
mojoPortal.Business.WebHelpers.IndexWriterTask, mojoPortal.Business.WebHelpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 08-04-2010 16:14:40 08-04-2010 16:14:41 08-04-2010 16:14:56 0% Running. Indexed item 0 of 1

After this the log file says:

2010-04-08 17:04:18,558 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2010-04-08 17:14:40,797 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread

File permissions in the data folder's properties says read write and execute for everyone. This is also the case for the index folder.

Hope this gives some clues??

Thanks, Lars

4/8/2010 10:27:19 AM
Gravatar
Total Posts 137
When enough isn't

Re: What is wrong with my search function?

Could the problems relate to either running MojoPortal in Denmark (even though auto US localization is used) or to that I run with Artisteer24 styles and layout.

Best regards

Lars

4/9/2010 9:18:43 AM
Gravatar
Total Posts 18439

Re: What is wrong with my search function?

Hi Lars,

I don't think those things could be related. The search index may not work well with some languages, but it should still create the files in the index folder and you should see the indexbuilder statements in the log.

Are you sure you don't have the search index disabled by setting this to true?

<add key="DisableSearchIndex" value="false" />

Note that it is possible that you have settings duplicated in more than one place. It will use user.config settings for appSettings if the setting exists in user.config, and if the setting exists more than once the once closer to the bottom of the file wins.

Hope it helps,

Joe

4/9/2010 8:07:30 PM
Gravatar
Total Posts 137
When enough isn't

Re: What is wrong with my search function?

Hi Joe!

I checked this setting also. And to be sure I copied it into user.config and set it to false there also. No change.

Did you notice in my previous listings that there is a 1 hour time difference between when the indexing job was initiated according to the log (17:14:40) and what is listed in the job queue (16:14:41)? Just a stupid thought, but does maybe some time zone issues cause the job queue to cancel?

There can be two explanations for the 1 hour difference: Denmark is +1 hour against Greenwich? Summertime? Anyway this may just be that the job queue is set to show Greenwich timezone?

Best regards

Lars

4/14/2010 5:28:52 AM
Gravatar
Total Posts 137
When enough isn't

Re: What is wrong with my search function?

Hi again

Some days has passed and I have not been able to find a solution to this missing search index creation. I'm simply running out of ideas and hints. I'm thankful for the efforts from you, though.

For now I have removed the search function from my site. But I do miss it ... sad

So if anyone can think of a solution ... please ....

Best regards
Lars

You must sign in to post in the forums. This thread is closed to new posts.