Search not working

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/6/2008 3:44:18 AM
Gravatar
Total Posts 40

Search not working

Hi,

There seems to be an issue with the search functionality in the latest release. I'm running on shared hosting under medium trust using SQL Server as my DB. The lucene paramete in the web.config file is definitely right (I've copy and pasted from the setup page to be sure), but when I perform a search no results are returned and the message that the index is being built is shown. I've performed a number of searches but keep getting the message and no results. When I look in data/sites/1/index the folder is empty, any ideas anyone?

Thanks
Matt

8/6/2008 6:55:01 AM
Gravatar
Total Posts 18439

Re: Search not working

Hi Matt,

I'm able to create a medium trust environment on a local dev machine by adding this to system.web section of  Web.config:

<trust level="Medium" originUrl="" />

In my testing the search index is built fine so I'm not convinced this is a medium trust issue though it does follow a previous medium trust issue I worked through with you. The previous problem is solved and something else is going on now.

Please clear your mojoportal log, then do a search, then scan the log for any errors or messages and let me know what you see.

If this is a new site the most likely problem is it can't write to the /Data/Sites/1/index directory

I would check the permissions on Data and its subfolders again.

Best,

Joe

8/7/2008 8:41:04 AM
Gravatar
Total Posts 40

Re: Search not working

Hi Joe, well all seems ok to me but as the rest of the site is now functioning properly I'm focusing on getting my sites up and running first then I'll come back to this in the future. I'm not sure what permissions I'll be able to look as as I'm on shared hosting and the aspnet user has read-write access to all folders automatically but I'll go into it in some more detail and post my findings. If no-one else has had this problem either then I guess it must be an environmantal issue.

The log isn't getting written either so I don't have anything to look at there, however I'll go back to this in a few days time and try and work out whats going wrong.

Thanks,
Matt

8/7/2008 8:45:31 AM
Gravatar
Total Posts 18439

Re: Search not working

The log not being written confirms it as a permission problem.

Best,

Joe

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