If you are wondering why you are unable to find any search result for Last Modified By filed in Advanced Search of SharePoint then don’t worry, you are not alone. This is one of the bug which still exist in SharePoint 2007 Server Search engine. I have found a solution posted by Pritam Dhake ina SharePoint forum. I have used this solution and it works like a charm.
Here are the steps to manually hook the Last Modified By field to the creawled field.
- Open Central administration -> Shared Services -> SharedServices (X being the number of the shared services provider for the site you are creating a mapping) – > search settings -> metadata property mappings
- Click “Modifiedby” to edit the properties
- Make sure “Include values from all crawled properties mapped” is selected
- Click “add mapping” and select the “Office” category from the dropdown list.
- look for a property named “OFFICE:8” , click “OK”
- Click “add mapping” and select the “ows_Last_x0020_Modified(text)” from the ALL categories dropdown list, Click “OK”
- Make sure the box is checked “Allow this property to be used in scopes”, click “OK”
- Click on “Crawled Properties” link on the left side of the Shared Services Administration page.
- Click On the “Office” Category.
- The mapped property you just created should be listed in the “Mapped To” column of the Office:8(Text) category.
- Click on the Office:8(Text) category to view the properties.
- In the “name and information” section, you should see the “property Set ID:” value is ‘F29F85E0-4FF9-1068-AB91-08002B27B3D9‘ …This is very important!!!
- In the “Mappings to managed properties” section the managed property you edited in steps 2 – 7 should be listed.
- The box to “Include values for this property in the search index” should be checked.
- Click “OK” to exit this page.
- Open “Shared Services administration” -> “ShareservicesX” -> “Search Settings” -> “Content Sources and crawl schedules”
- Click on “Local Office SharePoint Server sites” to expand the dropdown list and select “Start full crawl”
- When the crawl has completed, navigate to the site collection -> click on the search tab.
- Select “Advanced Search”
- In the properties dropdown list select “Last Modified By“
- Select contains
- Enter a name that you know has added / edited a document
- Click the magnifier to execute the search
- Get back results.
Thanks for that. i thought I was going mad and couldn’t believe that no one else had noticed this before!
However, I’m having the same problem with the “Created By” and “Last Modified Date” properties as well. I’ve solved the Last Modified Date by performing the following but am still stuck with Created By.
Last Modified Date
——————
Have you noticed that in the XSLT for both the Advanced Search and Search Core Results web parts that it refers to something called “Write”??
There is no metdata propety for this but there must be some kind of hidden Office value because although I can’t search on it, the results web part prints values for it just fine.
The LastModifiedTime metadata property includes the following mappings, none of which are indexed – Basic:14(Date and Time), Basic:16(Date and Time), ows_Modified(Date and Time).
I’ve changed my Advanced Search XSLT to use this and can now successfully search by Last Modified Date. But if you do the same in the Core Results web part nothing gets written back – so you have to use Write!
Weirder still is that an advanced search on Last Modified Date will return correct corresponding values to the Write display in the search results.
I’d love it if you could explain this or find a better solution.
Hope this helps someone else.
Paul, if you are still having a problem with created by, add office4(text) to the property and follow what’s mentioned above by Namwar R
(Reference:http://tripwire.net.au/blog/2009/10/sharepoint-advanced-search-properties.html)
Hi FR, thanks for the tip. I managed to get it sorted.
BTW the reference you gave is my own blog post documenting my findings and the solution. 🙂
If you read the comments at the end of that post, you may notice that someone has also offered a solution to the issue with search “Contains”. I haven’t tried it yet but understand there are good performance reason behind MS dropping it from MOSS.
Hi,
In the query string how can I look for files modified before a certain date??
..&datemodified=<10/10/2010
Would this work?