multi-site search finds other site's info.

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.
1/10/2009 9:11:36 AM
Gravatar
Total Posts 112

multi-site search finds other site's info.

Hi Joe;

I did a search in one-site in a multi-site installation and mojoPortal returned links to another-site. When I click on any of the other-site links (of course) the link fails. I wonder if there is a way I can avoid returning other-site search results?

Metta,
Dale E. Moore

1/10/2009 9:35:46 AM
Gravatar
Total Posts 18409

Re: multi-site search finds other site's info.

You don't mention much details about your installation, version of mojoportal, Medium Trust? folder or host based sites? related sites mode?

The only situation where I can envision this happenng is in medium trust because you have to specify the index folder in Web.config or user.config like this format:

<add key="Lucene.Net.lockdir" value="D:\__projects\mojoportal\joe\Web\Data\Sites\1\index" />

so in medium trust it may not work correctly as it may use the same index files for all sites. In this case there is nothing I can think of to solve it other than to disable search and remove the search link from the skin. This is only a theory based on your statments.

In full trust I cannot produce this problem on my machine, I have not tried to produce it in medium trust.

In general this should not happen because each site has a separate seach index under /Data/Sites/[SiteID]/index, so I would look into whether files are being written there for all your sites or not.

Hope it helps,

Joe

1/14/2009 10:54:20 AM
Gravatar
Total Posts 112

Re: multi-site search finds other site's info.

Hi Joe;

Installation details:

Version 2.2.7.9 MSSQL.
Full Trust (per http://www.mojoportal.com/mediumtrust.aspx)
Folder based sites.
Not related sites mode.

I just did a search in http://FUU.MooreWorks.Net for "moore" and it returned hits for pages in http://CMS.MooreWorks.Net. CMS is site 1 in a multi-site mojoPortal installation; FUU is site 10 in the same installation.

/Data/Sites/1/index has files dated and timed this morning.
/Data/Sites/10/index has files dated and timed 4 days ago.

Searching for "video" in FUU only finds the FUU references; in CMS only finds the CMS references.

Scratching my head looking foolish,
Dale E. Moore

1/14/2009 11:00:00 AM
Gravatar
Total Posts 18409

Re: multi-site search finds other site's info.

I would try rebuilding the search index in site 10 by deleting the index files and doing a search then wait 5 minutes or so for it to build the index. Then try searching for moore and see if it still gets results from site 1.

See if the problem persists after that.

Hope it helps,

Joe

1/14/2009 12:17:13 PM
Gravatar
Total Posts 112

Re: multi-site search finds other site's info.

I deleted 1/index and 10/index contents, and searches in site 10 still return site 1 items.

I waited 10 minutes, and 1/index has files but 10/index has no files. I repeated the search with the same erronious results, waited another 10 minutes and still no files in 10/index.

1/14/2009 12:38:23 PM
Gravatar
Total Posts 18409

Re: multi-site search finds other site's info.

So the problem seems to be that site 10 is using the index from /Sites/1/index.

Are you sure you don't have something like this in Web.config or user.config

<add key="Lucene.Net.lockdir" value="C:\__dev\mojoportal\joe\Web\Data\Sites\1\index" />

obviously I don't mean the same path, but if you have this setting it may force all sites to use the /Sites/1/index

This setting is typically needed for medium trust but is not needed for full trust.

Hope it helps,

Joe

 

1/14/2009 12:51:58 PM
Gravatar
Total Posts 112

Re: multi-site search finds other site's info.

The content that belongs here is too complex to display securely.
You must sign in to post in the forums. This thread is closed to new posts.