MOSS 2007 Search Center. Altering Scope of a Search - sharepoint

I'm creating a new Sharepoint Site Collection and as a subsite I have a Search Center.
After creating a new Content Search (File Share), I can search this using the Dropdown from the Home Page.
Searching "sharepoint" with Scope "All" : returns 4 items
Searching "sharepoint" with Scope "ISOs and Tools" : returns 2 items
Now I'm trying to configure the Search Center to use this search scope. But everytime I make a search, the results are returned as I had selected the scope "All", that means, 4 items!
How can I configure the Search to go on a specific scope?
Thanks in advance!

If you mean that the default search page in the search center always searches the 'all' scope - well, it does!
If you edit the page you should be able to edit the properties of the search box. In those properties you can append to the search query 'Scope:' and the name of your scope. This scope will show up in your results page's search box, though.
Alternatively, create a new results page. In the search core results web part you can set the scope you're using for the results - it is a miscellaneous property.
You'll then need to edit your search center's home page to point the search box there to your new results page, and to do likewise on the new results page itself.
See http://andrewwburns.com/2009/02/20/search-a-single-list-and-dont-use-the-osssearchresultsaspx-page/

Make sure you have reset/recrawled your content through the shared services admin.
Make sure you are restricting your Scope to the proper content source by adding a "ContentSource" rule in the SiteCollection's search settings
Make sure you have updated your scopes in shared services.

Related

Get listitems from Current Site

I am trying to create a Page Layout, that should have a lookup field. Lookup field should always get populated with a list's items.
This list will exist in all subsites, so whereever I create this page, list should get populated with listitems from current site.
I tried using site column lookup field, but it always point to list under top site and not the current site.
Any suggestion on how to make it work or better alternative? Thanks!
Let me know if I can provide more info.
The most straightforward solution I can think of is using a cross site lookup column and creating a seperate fields for each subsite. However, you will need to create and use different Page Layouts for each subsite.
You can use http://sp2010filteredlookup.codeplex.com/ for cross site lookups.
Solution 1 - Use http://sp2010filteredlookup.codeplex.com/
Use filtered lookup solution. So let's say you have your custom Page Layout and custom Page Content Type.
Every time you create new subsite, you should remember go to Pages list settings and edit Page Content Type by adding cross site lookup (with the same field "internal name").
So you still have one Page Layout (and one Content Type). But for each Pages library instance, Content Type contains diff fields (but with the same Internal Name). It will allow you run CAML queries and other things needed without any problems.
Solution 2 - develop custom sharepoint field type.
In edit mode, control will render "dropdown list" and populate data from list instance that is on current subsite. In the field settings you can have relative list url.
Solution 3 - hidden text field / js snippet solution
Page Content Type can contain hidden text field (it can contains selected field value in json format for example). Develop js snippet that will handle all the logic (rendering in edit/view mode, saving etc) and put it on Page Layout (aspx).
I would suggest to use solution #1 or #2.

Search Box Webpart - Default to a custom search scope

I've two search box webparts in a same page targeted to different audiences. I want to configure the search boxes to seach a specific search scopes which I've created.
Any ideas how to do that?
Typically the search box points to the page with the desired search results web part. That is a problem if you want both search boxes to point to the same page. You might look at using web part connections and have 2 pairs of web parts - search box and results "A" and "B" where the "A" pair uses a connection to define the link. Then the result part "A" would select the desired scope and/or audience and so forth.
I've created a custom search control which redirects to the search page. I've passed all the necessary details such as keyword, scope etc in the URL.

Help with filtered views across multiple pages! SHAREPOINT 2010

I'm rather new to this SharePoint stuff so be easy with me :)
What I am trying to do is have one complete list with all documents (Shared Documents), each assigned a certain DocumentType (managed metadata), and then show only some of these files depending on each web page within sharepoint you look at. Now i know about key filters, but don't I have to set these each time i want to filter? I basically want a filtered view on metadata for each page all related to Shared Documents
Thanks in advance
:)
Navigate the site containing list or library.
Press "SiteAction"->"View all site content" and choose your list or library.
In the ribbon choose "List"->"Create View"-> "Custom view in SP Designer".Create your personal view.
After it, you can go to "List"-> Current view" and choose your view.

How can I search through a single sharepoint List in a site collection using Search Scope?

I have added a Web Address rule to a Search Scope and set the Folder url to the following for searching through a single list in site collection :-
http://svrmosstest3/sites/asmtportal/Lists/SearchList
And added this scope to the search dropdown, this search is working fine and will return results from that list only, but it returns one extra item which is an entry for the list itself which is :-
http://svrmosstest3/sites/asmtportal/Lists/SearchList/AllItems.aspx
because this will always fall under the Rule URL.
Is there any other method to create a search scope that will search only through the items of a Single Sharepoint List in a site collection ??
Please tell me ,.. if there are any sharepoint experts ??
You will most likely need to add a crawl rule to exclude that one page from being added to the index (which will then prevent it from being included in your search scope).

Document Library Crawl

I set up a new scope and passed in the URL for a specific document libary that I created that hold 2 word documents.
For some reason when I start a full crawl, it does not see the 2 word documents.
The word documents have meta data and I've created Managed Properties that map the crawled properties.
I am trying to utilize the Advanced Search webpart to be able to search from this scope. When I enter a search term such as the filename of the word document, no results are returned.
Any ideas?
You need to enable the document library to be searchable. Enable it through the document libraries properties.
Edit
See Harnessing Properties in SharePoint Search
To get to the Document Library Advanced Settings page, from within a given library, select the Document Library Settings menu item from the Settings dropdown, and then select the Advanced settings hyperlink under the General Settings header. Somewhere in there, you should see something like the following image. Make sure that the radio button is set to Yes. Source
(source: bamboosolutions.com)
What account is the crawler running as? Maybe that account doesn't have read permission on the list, so it can't index it.
Can you find information from the same documents in other document libraries, when using the default search scope?
Can you find information from this document library using the default search scope?
Are you trying to create a custom search results page, or just scope?
One thing to try is to check the search crawl log to see if there were any errors when it was searching the library.

Resources