Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Searching WSS sites from the portal

  Asked By: Mindy    Date: Nov 04    Category: Sharepoint    Views: 967

I want my users to be able to search WSS sites from the portal. These
sites can be both the top level site in the collection as well as
subsites under it. I want to set it up such that it returns results
from the site and all sites below it in the hierarchy. I tried
different ways to achieve this without any luck.

Approach 1)
I created content source for the parent and the child site by choosing
Content type : Web page/Web site and keyed in the location of the WSS
site. I created search scopes to limit the search to the content
source. When I search for something by choosing the child search
scope, I not only get results from the child but also from the parent.

I then changed the rules to:

http://portal/sites/parent/child/* include
http://portal/* exclude

It started working as anticipated for the child, but the parent was
broken. It returne "No results".

Approach 2)
Unable to get it work with (1), I switched to the Advanced Search mode
and created indices. I created one index for the child and one for the
parent. I then changed the rules accordingly
for child:
http://portal/sites/parent/child/* include,
http://portal/* exclude,

and for parent:
http://portal/sites/parent/* include,
http://portal/* exclude

Search returned no results when child scope was selected.

Approach 3)
After googling for a while, I stumbled across this


and tried to implement it.

a. I added Content sources for child and the parent, this time the
Content type: Sharepoint Portal Server Site Directory was choosen. I
assigned different Source Groups for parent and child.

b. I went to "Manage Crawls of Site Directory" and for the Parent site
entry (that already existed), I selected for the Crawling
behavior "Crawl site in <Parent source group> in Non_Portal_Content".
I then added an entry for the child (not sure if this can be done) and
selected for the crawling behavior "Crawl site in <Child source group"
in Non_Portal_Content".

c. I then created Search scopes to point to the respective source

I then tested if search would work. Then again, it did not return
results when the child scope was selected.

The requirement seems pretty simple to me. I do not understand why
it's so complicated to implement it.



22 Answers Found

Answer #1    Answered By: Megan Martin     Answered On: Nov 04

Can I ask a question -- are these subsites their own top  level WSS site  in a
managed path or are they under the sites  directory?

What I have is both. For my separate WSS top level  sites, I created  a
managed path, with (I think) explicit inclusion (the only option that
worked). Then I created a search  scope for that site and added  it to all

Works for me.

Could it be that you are adding the file to search for then not waiting for
the indesex to be rebuilt before testing?

Answer #2    Answered By: Donta Kirkland     Answered On: Nov 04

I havent created  any managed paths so I think they are under the sites  directory. I have the hierarchy  like this:

--- child  1
------ Grandchild
--- Child 2
Parent 2
--- Child
where Parent is the top  level site.

crawl  everytime I make a change and sometimes even reset the index  before testing.

Answer #3    Answered By: Cade Velazquez     Answered On: Nov 04

but do you rebuild the indexes in sql server?

Answer #4    Answered By: Ariana Christensen     Answered On: Nov 04

Yep, I tried that too - no luck.

Basically, I want to set  it up such that search  returns results  from
the site  (top level  or a subsite) and all sites  below it in the
hierarchy. Is this even possible?

Answer #5    Answered By: Gopal Jamakhandi     Answered On: Nov 04

Yes, my portal  searches yield results  from the portal and its sub sites  all
the time.

I guess I am just not smart enough to tell you why they do not in your case.

Answer #6    Answered By: Kyla Eckert     Answered On: Nov 04

SPS search  can accomplish this, depending on how your content  sources
and indexes are set  up. WSS search will only search the current site.

Answer #7    Answered By: Joshuah Huber     Answered On: Nov 04

Can you please elaborate on how to accomplish this using SPS search?

I tested the approach  (3) below. Am I missing something?

Answer #8    Answered By: Ciara Collier     Answered On: Nov 04

You're making this way too difficult. Just place the root site  in the
Manage Sites to be Crawled list and use the Sites Directory content
source to crawl  the site collection.

Answer #9    Answered By: Keenan Whitehead     Answered On: Nov 04

This is exactly what I did (Approach 3 below). Works as
intended for the Parent scope. Now I need to search  the child  and
its subsites, what content  type (Website/Webpage or Sharepoint Sites
Directory) should I choose when creating a content source?

Answer #10    Answered By: Damon Garner     Answered On: Nov 04

Sites under a managed path are TLS in a new site  collection because the
managed path creates a new virtual root at which thousands of new site
collections can be created  without a new virtual server  in IIS.

Answer #11    Answered By: Dameon Dejesus     Answered On: Nov 04

Define TLS???????????????????????????

Answer #12    Answered By: Tejaswani Barve     Answered On: Nov 04

Top Level Site.........................

Answer #13    Answered By: Harshita Padwal     Answered On: Nov 04

Like I said, *don't* create a new content  source. Just place the root
site in the Manage sites  to be Crawled list. Even a new site  created
inside a managed path is a root site, so ensure that is placed in this
list and all the sites in that site collection  will be indexed.

Answer #14    Answered By: Jennifer Jones     Answered On: Nov 04

I am sorry I don't understand. I have this:


I do have the parent  listed in the Manage sites  to be crawled list.

and I have created  a search  scope for the child  (to be able to
search child and grandchild but NOT the Parent). Now, what content
source should I point  this search scope  to? (If i point it to the
parent, it searches parent too)

Answer #15    Answered By: Annie Norris     Answered On: Nov 04

You don’t need to worry about scopes  when using the sites  directory content  source. Remove your scopes and let the sites directory  content source  do it’s work. Are you in a shared services environment with child  portals? This makes it more difficult to do successfully if you’re working  in a child portal  in a shared services environment.

Answer #16    Answered By: Chadd Hahn     Answered On: Nov 04

No, I am not in a shared services environment.

If I don't create a child search  scope, how do I let users  search
only the child  without returning results  from the parent?

Answer #17    Answered By: Laura Walker     Answered On: Nov 04

IF that's really your business need, then you should create a content
source to *each* site, not each *site collection* and scope  them
accordingly. Frankly, that will get way out of hand pretty quick and
will likely overwhelm your scope list.

So, if you have 100 sites, then you'll need 100 content  sources, and 100
search scopes, regardless of the site  collection structure. Search
scopes must be created  at the content source  level, so you can't create
a content source for (let's say) 10 sites  and then create a scope for
each individual site. That functionality doesn't exist in SPS03.

Answer #18    Answered By: Titus Sweet     Answered On: Nov 04

The client wants scopes  only for the TLSs and the 2nd level sites  in
the hierarchy  totalling to only about 10 content  sources and 10
search scopes.

I have no problem creating content sources  for the TLSs (works if i
choose either the web  page content type  or the site  directory
content type) but the 2nd level  sites dont seem to be working.

Any idea how I could create content sources for the 2nd level sites?
If I use the web page/web site content type and specify a URL
similiar to this:


the parent  scope stops to work.

I am wondering if this is even possible.

Answer #19    Answered By: Jagdish Joshi     Answered On: Nov 04

I've never tried this, so perhaps it isn't possible. I don't have any
additional advise for you beyond what I've written. You may need to
call PSS about this.

Answer #20    Answered By: Christop Mcfadden     Answered On: Nov 04

An unrelated question. If a user who is searching  does
not have permissions to the documents/lists etc, do they still show
up in the search  results?

Answer #21    Answered By: Victoria Bell     Answered On: Nov 04

No. All search  results are security trimmed.

Answer #22    Answered By: Cassidy Sharpe     Answered On: Nov 04

No - the result set  is clipped/trimmed for security based on the user
entering the query.

Didn't find what you were looking for? Find more on Searching WSS sites from the portal Or get search suggestion and latest updates.