.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

return only parent folder name during search

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint
Guys I have a question about Sharepoint Search so here goes lets say I have a document library where I have root folders and sub folders. Now here's the catch what if when I searched I only wanted to be able to return the root folder names during the search thus leaving out all sub folders and content thats held in those folders. So for example the root folder name is Microsoft it has a sub folder named Windows 7 and the Windows 7 sub folder contains various pdf docs but when I search in the document library I want to only return the Microsoft root folder that's all I want returned. I have a business unit that stores looks of there information in a document library and they would prefer the search to work that way. Also I'm doing research on how to customize this by using meta data

View Complete Post

More Related Resource Links

Full Text Search Return no Result while "Like" does

Someone pls look at the picture and help me I tried Restart the serviceI tried restart the server But the number of row affected is still zero :(

Users can delete the parent folder even when they don't have delete permission on subfolders

I'm trying to use a document library to manage project documents. I created a folder for each project, and under the project folder, there are two subfolders with special permissions for confidential documents. I give normal users the Contribute permission of the project folders so they can add/remove new subfolders under the projecct folder. However, with this configuration the normal users can delete the whole project folder in the web interface, even they don't have delete permission for the two subfolders. Is there a way to prevent this? Regards, James Liang

Return true or false from Popup window to Parent window


Hello everybody.

I am trying to return true or false from popup window to the parent window.

Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message.

But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?

Please help me.

Thank you.

People Picker fails to search or resolve and return an error message.



I got an error while trying to access the people picker from some specific locations. I'm experiencing those problems ONLY in the cental administration and also there, just on a few places. For example if I try to change the authorization settings of any service application there is a different people picker pop up than, for example, if I want to change the admins of any service application. Any other people picker window outside the central administration works for me.

So it seems to me, that there are two different types of people picker windows. The one which is not working for me also appears in the metadata service application which is the reason I can't use this service as I'm not able to define an owner of a keyset.

In the error log I found the following message: "Ausnahme im Forderungsanbieter 'Alle Benutzer' beim Aufruf von 'SPClaimProvider.FillHierarchy()': Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt." It basically says: An exception occurred in 'all users' claim provider when calling 'SPClaimProvider.FillHierarchy()': The object reference was not set on a object instance. This is event-id 8307 which you can find here: http://technet.microsoft.com/en-us/library/ff535778.aspx

Search by file Name in advanced search does not return any results

Hi there ,when i search by file name it doesn't return any results . search by other columns return result.

how search.asmx service is related to TEMP folder



In our application search.asmx web service call fails with this error message “Server was unable to process request. --> Could not find a part of the path 'C:\Users\useraccount\AppData\Local\Temp\iiz6nwo4.tmp'”.

How is this web service related to TEMP folder? Can this dependency be removed or changed to any other location?




Getting parent folder of a document library within EventReceiver


Hello everbody,

I am trying to create an EventReceiver which gives me the parent folder for currently added documents. For this reason I created an ASPX Page which I display through a "Page Viewer Web Part" on my Sharepoint. Within this Page I can create new folders in my Document Library. This is working fine. My problem is that I want to create an EventReceiver. The event is firing and I can debug it, but my properties object seems to be missing something. I am not able to get the name of the parent folder.

Is this because I am displaying my site through a "Page Viewer Web Part"? But that would be strange because I am able to write into my document list.

public override void ItemAdding(SPItemEventProperties properties)


            using (SPWeb web = properties.OpenWeb())


                string url = properties.BeforeUrl.ToString();

                url = url.Substring(0, url.LastIndexOf("/"));   URL is ""


1) Should I i

keyword search doesn't return any results



Can anybody please help me with the whole issue of keywords definition?

Here is what I've got and do:

Sharepoint 2010 server and FAST Search server for Sharepoint 2010

I create site collection "A" using FAST Search center template

I enable SharePoint Server Enterprise Site Collection Features

In FAST Search Keywords section I define a keyword "M

How to return matching keywords from sharepoint search web service


I'm writing an ISV page that is embedded in an iFrame within Microsoft Dynamics CRM 4.0 and it searchs both CRM and Sharepoint for matching candidates. Skills are stored in CRM entities and then Sharepoint Document libraries are searched for matching keywords in document resumes. I then merge the results together. However in the results I would like to show which skills (in crm) and keywords (in sharepoint) matched.

I have been playing arround with the Sharepoint Search Service Tool trying to find a way. The closest I can get is the Managed Search Property "Hit Highlighted Summary", but that won't gurantee every matching keyword to be returned when 5+ keywords are searched. I could search each keyword invidually and post process but that is very inefficient.

Is there a way to accomplish what i'm trying to do? (meta data about the search results about matching keywords?)

Thanks in advance,



created new user search doesn't return results


I created a new users by adding them to an AD group that is already in the site and has contribute access.  The user has the ability to login, add content, and everything the goes with contributing, but cannot search for content on the site.

The other users have no issue and when they search for something; for instance the location of something in the document library "new york" they receive results; however this user doesn't.  I also do not see the new user in the "All People" list.

Moss 2007 | SQL 2005 | 1 WFE

Any help is appreciate, thanks,

WSS 2.0 Search Failing to return results


I have a client with WSS 2.0 server with SQL 2005 that used to work until one fateful day in July when their relative decided to update the servers and work on them.

When searching for documents nothing is returned.  The mssearch service is started but I see three events logged to the SQL server regularly and whenever search is restarted.

The errors are:

vent Type:    Error
Event Source:    Microsoft Search
Event Category:    Gatherer
Event ID:    3028
Date:        11/3/2010
Time:        6:06:48 AM
User:        N/A
Computer:    SQL
The Gatherer object in project <SQLServer SQL0001200005> cannot be initialized. Error: 0 - The operation completed successfully.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 Event Type:    Error
Event Source:    Microsoft Search
Event Category:    Gatherer
Event ID:    3028
Date:        11/3/2010
Time:    &n

Search results does not return pdf documents


Hello Everyone,


I am building a custom search results page in which i am using FullTextSqlQuery for rendering the search results. I have installed IFilter of Adobe to render the pdf content into my search. i have gone thru the following links to do that.


Sharepoint Shared Documents webpart "go to parent folder" button missing



I'm trying to find a way to move to parent folder inside Shared Documents webpart .

In this tutorial it's only mentioned the SharePoint-wide UP button, but is there a way to move to parent folder (of the document library, of course) inside the non-maximized Shared Documents webpart?

Thank you

Search is currently configured not to return more than 50 results for any query. You asked for resul


Hi All,


I was working on MOSS 2007 OOTB search no customisation.

Customisation of look and feel using XSLT.

My issue is i need to show only top 5o records on searchresults page each page should contain 10 items, i configured according to that in search core results webpart properties, but if i go to 5th page it is showing "next page" symbol if i click on it shows an error message:

"Search is currently configured not to return more than 50 results for any query. You asked for results starting from 51"

I shouldnt show next symbol @ 5th page ...how can i overcome this issue.



how to exclude folders(and items within this folder) under document library in search result?

I have a library with a particular content type. I also have a folder _thumbs within it. I do not want the search to retrieve the items that are within this folder (or the folder for that matter). Any ideas on how this can be achieved?
Sharepoint Dummy

"The Temp folder is on a drive that is full or is inaccessible." when Search service started



I have installed  WSS 3.0 SP2 on Windows 2008 x64.

All is ok, except the search service.

When it start there are any error :

Application / Windows SharePoint Services 3 Search /2430 /  The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder.   (0x80070660)

Application / VSS / Volume Shadow Copy Service error: Unexpected error calling routine RegOpenKeyExW(-2147483646,SYSTEM\CurrentControlSet\Services\VSS\Diag,...).  hr = 0x80070005, Access is denied.

And when the service index the content (error message are translated, then :

Application / Windows SharePoint Services 3 Search / 2436 / Filter process have been interrupt (0x80040db4)
Application / Windows SharePoint Services 3 Search / 2424 / Start update is impossible because content source aren't available.


I have check the temp folder of the service account (C:\Users\<service account name>\AppData\Local\Temp) and they look fine. (service account / system / administrators = full control)


The "Windows SharePoint Services Security Account Requirements" document is helpless.


If I add service account to local administrators group, I have no more issue.


GridView Parent Child View with JQuery Effects

I was just checked how to add some more cool effects to the GridView control using JQuery. In this post I will display parent-child data in the GridView control with some help of the wonderful JQuery library.

Let's first populate the GridView control.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend