Search Functionality doesnt work properly

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/21/2007 8:06:56 AM
Gravatar
Total Posts 11

Search Functionality doesnt work properly

HI,

I am using Mojo Portal for my organisation but we are not able to track the search functionality as it doesnt work properly. I have gone through all your forums regarding the same but came up with no solution for my own code.

The code is throwing an error in IndexReader.cs

Here code asks for some file named "segments" at the path "data/sites/1/index/"

Do I puposly need t create that file or is it AutoGenerated?

If it is Auto generated then whihc settings do i need to do here ? 

Please help.

Thanks & Regards..

Gayatri

4/21/2007 8:28:05 AM
Gravatar
Total Posts 18439

Re: Search Functionality doesnt work properly

The index folder and its contents will be created the first time you do a search as long as the Data folder is writable by the asp.net worker process. I mustt have permission to create this folder and write files to it.
On a default installation of Win 2003 server the user that needs permission is the IIS_WPG user whereas on xp its aspnet_machine name.

Since this error is happening in your custom code my guess is your custom code is trying to access the index before it has been created. Try doing a search first, then verify if the index files got created, if so then try your custom code after that.

Another things to be aware of if you are working from a Subversion repository you do not want to include the index folder in svn because it will add a hidden folder named .svn in the index folder and this will cause the search to not work.

Hope it helps,

Joe
4/21/2007 8:40:30 AM
Gravatar
Total Posts 18439

Re: Search Functionality doesnt work properly

To be a little more specific, the index folder will be created at Data/Sites/[SiteID]/index

A common configuration problem is that often when users give the IIS_WPG user permission on the Data folder, the permission doesn't propagate down through child folders and files correctly. This happens especially on Win 2003, so you have to click the Advanced button in the permission dialog and check the box that says "Replace permission entries on all child objects..." as shown in the screenshot on this page:
http://www.mojoportal.com/iiswebsetup.aspx

Hope it helps,

Joe
4/21/2007 8:59:52 AM
Gravatar
Total Posts 11

Re: Search Functionality doesnt work properly

Hello Sir,

I am using the original code that is provided by mojo portal & have no cutomized code incorporated yet. I am using the WinXP as my OS & have follwed all your insrtuctions given bt still the err is not  getting resolved.

Gayatri 

4/21/2007 9:22:33 AM
Gravatar
Total Posts 18439

Re: Search Functionality doesnt work properly

Is there any relevant error messages in the Data/currentlog.config file?
4/21/2007 9:24:11 AM
Gravatar
Total Posts 18439

Re: Search Functionality doesnt work properly

The reason I thought you were working with your own code is because you said "but came up with no solution for my own code"

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