Searchindex problem

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/11/2009 6:53:53 AM
Gravatar
Total Posts 9

Searchindex problem

Ì have a problem in my system log for www.voorclientendoorclienten.nl This is part of the error:

2009-04-07 13:13:26,402 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.IO.FileNotFoundException: Could not find file 'E:\inetpub\vhosts\voorclientendoorclienten.nl\httpdocs\Data\Sites\1\index\segments'.
File name: 'E:\inetpub\vhosts\voorclientendoorclienten.nl\httpdocs\Data\Sites\1\index\segments'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

There is no segments folder. When I type something in the search box nothing is found, and I cannot see in my system log if the index was recreated. How can I create the index and where should this file come from? It's a fresh installation, haven't been able to work with a build index yet.

Kind regards, Maarten Strobosch

4/12/2009 6:36:51 AM
Gravatar
Total Posts 18439

Re: Searchindex problem

Hi Maarten,

The problem is is cannot write the index files because it has insufficient write permissions. If the /Data folder is writable so it can create folders and files it will automatically create the index. Its trying to do that but its throwing this error because it does not have enought permissions. Actually "segments" will be a file not a folder.

Hope it helps,

Joe

4/12/2009 7:59:11 AM
Gravatar
Total Posts 9

Re: Searchindex problem

Hi Joe,

it  would be best to answer with a solution I found to this problem, but also to the blank page problem. There was a test.config file in Data/Searchindex so it didn't write the segments file. After I deleted that file everything works ok. Indeed the page shows op and the problem has been resolved. Setting write permissions on /Data and all subdirectories was one of the first things I did while deploying.

One question though about the searchindex building up. I have waited for a day but can't seem to find any page with the use of a keyword. I tried the * but no luck yet. Could it be pages have to be published first before they apear in searchresults?

Maarten

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