I wrote and erased the title of this post about 60 times before I settled on the above. There is so much tweaking you can do to MOSS's results, that a broad enough title didn't do enough justice to MOSS search's flexibility.
So, here is a restrictive title, but a rather cool but specific trick you can do with MOSS 2007 search.
Under shared services, go to search settings. Under there you would see "Metadata property mappings". Under there, you would see a number of "Managed Properties" already setup for you. You could add your own if you wanted to by clicking on the "New Managed Property" button above.
These Managed properties can be used in search scopes - and that is a very very powerful concept. Say for instance, if you wanted to search over all the "Word documents" on your local sharepoint sites - how would you do that?
Well, it's pretty simple.
- As you can see, there is already a Managed Property called "FileExtension". If there wasn't - you could create your own.
- Next, click on that Managed Property, and there is a checkbox at the bottom that says - "Allow this property to be used in scopes" <-- Check that bad boy.
- Go back to search scopes, and create a new search scope called "Word Documents".
- Add the following rule to "Word documents" -
- Great, now run a full crawl on the "Local SharePoint Sites" content source (or whatever content source you are using).
- Update the search scopes
- Make this new search scope available for searching on your site.
- And, If you just shook your head at the last 3 steps, I have covered them at numerous places on my blog.
- Now issue a search on "Word Documents" -
- WALLA !! You just created a search engine to search over word documents only. Now check this out - throw in an iFilter for PDF, and index a fileshare location, and whachu got? Ju got yourself a search engine for PDF files that live on \\DesignerFolks\GuysWhoWontMoveTheirShitIntoSharePoint\*.pdf. This is pretty powerful stuff IMO.
Go ahead and play with other managed properties, and new managed properties that you can slice and dice your content in searching for. For one, you can now slice and dice your data based on content types (No really you can !). Go try it out ! :-)
This gets ESPECIALLY powerful with BDC search. BDC will let you create new crawled properties, and you can then map them to managed properties, and slice and dice LOB data in any form you want - through a search engine.
Pretty powerful stuff IMO.
On
5/17/2007 8:35:57 AM
Mark Bonafe
said ..
oooooh! I'm all a tingle with excitement...
|
On
5/17/2007 11:14:06 AM
Sahil Malik
said ..
LOL Mark - you're scarin' me ! :)
|
On
5/18/2007 10:39:51 PM
Rob Garrett
said ..
Awesome post dude, fell off chair laughing about the designer guys ;)
|
On
5/19/2007 2:07:45 PM
Sahil Malik
said ..
LOL, must be a common pain point then :)
|
On
8/22/2007 2:19:19 AM
Dhakshina Moorthy
said ..
Hi, it was a great blog.
Could you please let me know how to search for Datetime and Number columns in a list.
Thanks and appreciated.
|
On
2/27/2008 10:46:36 PM
Dave
said ..
Thanks, Great Help!!!!
|
On
3/26/2008 8:26:06 AM
Kuldeep Kadyan
said ..
Hi Dhakshina Moorthy,
For date you can set Managed Property called "StartDate" and "EndDate" yes in Metadata Property Mappings.
And For number you have to add your own property in Metadata Property Mappings.
Kuldeep Kadyan
|
On
5/7/2008 10:30:53 AM
Pedro
said ..
And if I want to exclude empty cases of a managed property? I put "NULL", "EMPTY", "" or nothing in the second field ?
|
On
6/27/2008 11:37:37 AM
Ying
said ..
I got lost in Step 7: Make this new search scope available for searching on your site.
How to do that?
Thank you.
|
On
7/16/2008 6:20:38 PM
james
said ..
great post!
how do i set up the search for people?
|
On
11/3/2008 1:12:26 AM
REET MULCHANDANI
said ..
Hi
I want to remove the modifiedBy and created By and Modified date from default search results
How is it possible without customisation of .NET???
|
On
12/15/2008 1:03:39 PM
tuang
said ..
Hi, i cannot find the crawled properties after crawling the content source. Can you tell me why? Thanks
|
On
6/3/2009 4:52:23 AM
Shahzad
said ..
Dear how can i exclude empty / null fields through these search scopes. plz help.
|
On
8/4/2009 8:40:34 AM
dave.dolan
said ..
Can you perhaps elaborate a bit, I too am wondering how one specifies a managed property restriction so that empty or null values are excluded... I can't find anything in the docs about it, only how to do it with the API query methods using the full text syntax
("PropertyValue > ''", strange.) Is it even possible here? I think that creating a global scope farm wide returning results of only certain items that contain some value (though no value in particular) of a managed property would be very relevant... No further insight here? Perhaps you might point us to some documentation (since I see I'm not the first to ask.)
|
On
12/10/2009 10:25:31 AM
Jen
said ..
Hello, I hope and pray you can give me the answer I cannot find before I lose all of my hair...Do you know how to make list items such as an agenda from a meeting workspace show up in Search results? I can get the agenda itself to show but then the user has to click that and manually search thru all the past meeting agenda's to find a specific topic...this is a reoccurring meeting site by the way...so, is there a way to have full text search in Meeting site lists? Thanks so much if you can provide an answer
|
On
6/22/2010 10:26:34 AM
Himani
said ..
Hi, I have been working with sharepoint 2010. I have created three new managed properties based on my custom crawled properties (site columns). I can see that they have been indexed. However when I try to search data based on these managed props, I don't get any results. I have tried using API as well as advanced search webpart; searching a keyword in managed prop. doesn't return any result.
In APi, I am trying to use keyword query class, when I query for a keyword I get results and values for managed properties like 'Title' and 'Path' but the column value for these managed properties remains empty/null.
|
On
10/18/2010 3:27:40 PM
Ikram
said ..
Hi,
Many thanks for this artical.
Furthermore, I have implemented the SSP search in my MOSS Collaboration site. The problem is the document libraries have not been included in the search. means, when i use to search a document which exists in a document library. The search ends with no record fouund. I have http://collaboration_root_site/sites/collection_site_1/test_doc_lib/ at this path many doc have been uploaded.
Is there any solution? Please help.
Thanks,
|