Geeks With Blogs

News
About Me:
I am a Female SharePoint Developer (a platinum unicorn). I have been working with SharePoint since I attended the Portal University in 2005. I hold a BA in Computer Science from the University of Missouri - Kansas City. I love playing Rockband, organizing user group meetings, working with code, attending events as a speaker or organizer, and having bizarre conversations about geek things with cool people. If you have any comments or questions fill out the contact form and I will try my best to help.



The Guide of a MOSSLover Becky Isserman's Blog
I am by no means a search guru, but at work they have tasked me with creating custom search scopes.  What they want is the ability to search a bunch of document libraries of a specific name in bunch of office sites.  John Ferringer gave me this awesome link: http://blogs.microsoft.co.il/blogs/adir_ron/archive/2007/05/10/Search-Hacks-_2300_1-_2D00_-Define-Scopes-by-MOSS-Metadata.aspx.  I figured that I could somehow use it to create custom scopes for the document libraries.  I started playing around and figured out that I could use the main site that the office sites sit under to create a scope to only search documents.  I started out by creating a scope called "Office Documents", then I created two rules: one rule where the Scope Rule Type = Web Address and Web Address = "Insert Main Address" and Behavior=Require and another rule where Scope=Property Query and Property Query = (drop down) contentclass=STS_ListItem_DocumentLibrary and Behavior=Required.  For that query I get a search for all documents underneath that site.  Now I want to narrow the properties down to search specific document libraries, such as resumes...I cannot figure out what the custom property is for the document library name.  I believe that I could use the Property Query and somehow choose in the drop down whatever the name of the property for the document library title, then I could type in the name of the document library.  After that I want to figure out how you could choose this scope, then narrow it down by specific office sites.  If anyone has any ideas you are more then welcome to submit them.  If not, I will continue to play around with scoping, because I have not really played around with it much in 2007, only 2003.  If I have time I am going to post more on my findings, however due to the book needing to get done around September or so I will be putting that above anything. Posted on Monday, July 7, 2008 3:47 PM MOSS | Back to top


Comments on this post: My Attempts at Creating Custom Search Scopes

# re: My Attempts at Creating Custom Search Scopes
Requesting Gravatar...
Are you using any metadata?

-John
Left by John Ross on Jul 08, 2008 8:40 AM

# re: My Attempts at Creating Custom Search Scopes
Requesting Gravatar...
Unless you count the document library name as metadata that is a negative. It's a little weird that they have a SiteName property, but not a DocLibraryName or LibraryName or ListName.
Left by MOSSLover on Jul 08, 2008 10:12 AM

# re: My Attempts at Creating Custom Search Scopes
Requesting Gravatar...
If all these docs are using a similar content type you could probably use that. Otherwise you might have a tough time unless you use some metadata. That's probably going to be your path of least resistance.

-John
Left by John Ross on Jul 08, 2008 3:02 PM

# re: My Attempts at Creating Custom Search Scopes
Requesting Gravatar...
Yeah trying to push using metadata. Maybe we could have an office field or something. I think we should just allow the admins for that office to update the resumes on the profile and just dump them into one document library maybe. Thanks for the comments man. Keep up the blogging. You have some good stuff.
Left by MOSSLover on Jul 08, 2008 3:15 PM

# re: My Attempts at Creating Custom Search Scopes
Requesting Gravatar...
Kinda fell off the face of the earth there for a while -- wife and I had a baby and all. Thanks for the kind words on the blog. Been trying to kick things up a notch lately and get some more traffic. Real life keeps getting in the way :-) I've got some good stuff in the works with some people you've heard of so keep your eyes peeled.

-John
Left by John Ross on Jul 14, 2008 1:47 PM

Your comment:
 (will show your gravatar)


Copyright © MOSSLover | Powered by: GeeksWithBlogs.net