How can you search multiple portals at once?

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
5/5/2008 5:06:29 AM
Gravatar
Total Posts 68

How can you search multiple portals at once?

Hi,

Can anyone tell me how I can search several or all of the portals at once?

Using FOLDER NAMES  (not host headers) I have setup a site like http://localhost/mojoportal/ and then under that created http://localhost/mojoportal/site1/ and http://localhost/mojoportal/site2/

I just created some test content in the sub portals. But when I login using LDAP in the main portal and do a search for something I know is in the sub portal content I get no results from them. Only results from the main portal.

I have setup all portals with LDAP authentication so for each portal you need to login seperately. (right?)

What do I do?

HELP! Please!?

5/5/2008 6:51:33 AM
Gravatar
Total Posts 18439

Re: How can you search multiple portals at once?

Hi,

The answer is you cannot. Each site is meant to be completely separate with different users, roles and also different search.

If you expect them to act like one site then you probably should only make one site.

It sounds to me like you really want one site but you want different sections to be visually partitioned so they look like different sites (ie different skins), but have the same users and have the same search index.

Hope it helps,

Joe

5/5/2008 6:55:43 AM
Gravatar
Total Posts 18439

Re: How can you search multiple portals at once?

Also in the case that you do want different sites. You can only use folder based sites starting from the root, see the documentation. ie http://localhost, http://localhost/site2, http://localhostsite3. Not http://locahost/mojoportaal/site1

Joe

5/5/2008 10:51:02 PM
Gravatar
Total Posts 68

Re: How can you search multiple portals at once?

Well, yes I am looking to create several sub sites on the intranet. For example, the Library site would be a sub site with it's own admin guy running it so I guess then the logins would be different from the main portal. Is there any other way to accomplish this?

They dont neccessarily have to look different from the main portal but I want people to be able to manage their own sites. If I just create pages in the main portal then how can I make sure the admin guys managing those pages/sites wont go messing around and accidentally delete stuff or change settings that affect the whole portal?

So there is no fererated search that will search all sub sites/folders? That's sad. I mean if there is the main intranet at intranet.mydomain.org and the sub site intranet.mydomain.org/Library then you mean to say that when I search the main portal then the sub folders dont get searched?

Ok, if that is the case then can I build a search that does? Has anybody out there done one?

If not then this is gonna be a big issue for us.

Thanks again.

5/6/2008 7:06:49 AM
Gravatar
Total Posts 18439

Re: How can you search multiple portals at once?

Hi,

You can easily partition a single site so that departments can edit only their own node of the tree using roles. You would basically create the first top level page for each department and a a role(s) for each department. You would then set the role to have edit and create child page permissions on the top level node. Now users in that role can edit the page and create additional pages below that page. This solution bypasses the need for cross site search altogether.

What you need to understand about the search index in mojoportal is its not like google. google crawls content and indexes it for search and they have no security considerations to deal with, if its crawlable then its searchable by any user. In mojoPortal, the search index is mainatained as content is created and updated and the roles that can view the indexed content are stored and kept in sync in the search index itself. When a user searches within a mojoportal site, he only sees search results for content that he has permission to view based on his roles in the site and the roles allowed to view the content. Now if all of your content is meant to be publicly viewable then maybe this feature is not as important to you but its there because mojoportal does support role based security. For example if you create a page and set the permissions so that only admins can view it, the page doesn't even appear in the menu unless you are signed in as an admin and any content on that page will not appear in the search results unless you are an admin doing the searching. Now I'm only talking about view permission in relation to search, a user can have view permission but not edit permission and still can search and view the content.

Is it possible to implement a custom search page that would search across sites? Yes its possible to implement it (this would require coding in c#), though each site hs its own index so you would need to run the search against each sites index and combine the results. But you would only know the user's security context within the current site so filtering results from the other sites based on roles would be a problem. You could ignore the problem and not filter it if you are not concerned about senstive data being seen in the search results. When the user clicks a link in search results to see the content, if the link goes to a different site, his ability to view it will be governed by that site when he gets there. If its on a public page that anyone can view it will work, if not he may be prompted to login or if he is already logged in but doesn't have permission he may get an access denied message. There is a role setting for "All Users" which means the content is public to anyone regardless of role so you could filter for this even across sites since it really doesn't correspond to a role but indicates no role is required to view the content.

Another option is to become a sponsor of mojoportal and hire me to implement support for a configuration that meets your needs more easily. For example it would be possible to build a configuration so that mojoportal could be configured to use a single set of users/roles across sites in an installation and a common search index. In a sense this is changing the definition of a "site" to some extent. Currently sites are meant to be completely indpependent but it would be possible to make it an option to have a related set of sites. At the end of the day the result would not look much different than what you can do now by using a single site and visually partitioning it and assigning roles.

Hope it helps,

Joe

5/6/2008 7:27:17 AM
Gravatar
Total Posts 18439

Re: How can you search multiple portals at once?

ps, the new skin that I blogged about here lends itself well to the single site approach. You could use top level tabs to be the "site" level (ie simulating the idea of different sites in a single site), and the next level tabs to be the pages within each "site". So you click the top tab for Library and now the main menu (next group of tabs) would show the pages within the library site (which is really just a tree of pages).

Best,

Joe

5/7/2008 4:02:18 AM
Gravatar
Total Posts 68

Re: How can you search multiple portals at once?

Thanks a lot Joe. That explanation was fantastic! Just what I needed. I now can imagine doing just what I wanted using the roles instead of the sites to govern the users sites. Cool! As for hiring you, I am afraid I am working for a non-profit institute so they dont want to spend any money on the intranet which is why I have been hunting for Open Source platforms. I do hope that mojoPortal will be around for a very long time coz I am basing the intranet on it and I hope to make use of the updates/upgrade that come along during the next few years. I have already started building the site now with the architecure that we have developed. It's quite easy to work with mojoPortal and now I am fascinated in creating my own content modules. Anyway, thanks again for your valuable help.

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