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

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

Custom search to document library to find specific document

Posted By:      Posted Date: October 03, 2010    Points: 0   Category :SharePoint


I have a document library with having multiple folders approx 100 (001 to 100) , each folder is having multiple document ,Every folder in that document library contains 50000 documents , Document library has some fileds like Fname, Lname,Document Type [Look up field] having value(Genral,Average,Advance) . now the problem is to search these documents with using custom search as per requirement

the user wants a webpart where it has 2 textbox [FName and LName] and a dropdown [Document type] and a button , using this the user can enter the first name , last name and selecting document type from the dropdown and finally clicking the search button filters the document library. 

my problem is with that how the value of this search criteria can be passed to the Document library.How these webpart can be connected with custom search or do we have any other way to search.




View Complete Post

More Related Resource Links

Search does not find text in Word document stored in document library on a Report Center site within



We have a document library on a site created off of the Report Center site template. We uploaded a Word 2007 document with the word zebra in the text. Using the search bar at the top of the page we selected This list: Our document library and searched for zebra. We received no results.

We tested the same thing on another site (site template Team site) within the same site collection and search worked fine.

Does the Report Center search function differently then the search functionality on the Team site?

Tamara Bredemus SharePoint Minion...working up to Maven

How can I get search to work for a Custom Document Library with a few third-party field types?

Hi, Using WSS 3.0 with SQL Server 2008 for Workgroups I have created a Custom Document Library (2,462 files - copied from folder into Explorer view and then renamed using Batch Update in web services i.e. "BaseName" field) - basically it uses three fields that are of "Filtered Lookup" (a field type from a third party). The document library is included in the search (i.e. Advanced Settings), but it displays none of the files - bascially not included in search at all with all testing I have done. I created a new Document Library called "Test" and uploaded a document and it is included in the search. Is there any way I can debug this. Is there a log file? Is there something in the Search Database that might help? Your help would be really appreciated as this is my last issue - and its soooo important to the deliverable. Thanks. John.

filter search results to specific document library


Hi all.  I have a sharepoint 2007 subsite, which is a small part of a large corporate sharepoint 2007 system.  I only have admin rights on my chunk.

I would like to limit a search to a specific document library within my subsite, and further would like the search results to return additional non-standard meta-data from this library.

Is this something that I can do without creating a new search scope? 

Creating a custom column with a link to document (other than the name field) in document library



I have a document library with the standard name column linking to the document. However, we'd like to create a custom field and have that link to the document (and edit item menu).

How is this best accomplished?

Thanks in advance!


Unable to create columns in document library after applying custom master page to site

Hi, I have applied a custom master page to a site.There is a document library in it. I am unable to add columns in it or change the default view.Nothing happens when I click on OK butoon after making my changes. However the columns are created/default view is changed when I apply the default master page. Guess I am missing some TagPrefix or sharepoint control on master page.I had solved this problem earlier in this way but don't remeber it now. Can anyone help?

Creating a new document in Document Library from custom menu item (in the ECB)

Hello! I created a custom menu item in the ECB for a document library. I'd like for this to create a new document from this menu item. Additionally, I'd like to create a workflow where the Title of the document from which the menu action originates is inserted into a custom textfield in the new document that is created. Is this possible using SharePoint Designer?

How to search documents from the particular document library using FullTextSqlQuery in sharepoint?

Hi, I want search (wildcard search) the document from the particular document library using FullTextSqlQuery class. Thanks Srikanth Reddy

Targeting search to the certain document library in the Advanced Search Box

Advanced Search box have properties fields. How to add there document libraries. I would like to make search to only 1 document library? How to customize?Kenny_I

Custom document library template at farm level.


Dear all..

I'm trying to create a custom document library template at farm level, as I want to template to be available in all the sites I create.

The thing is that I'm not sure if I'm taking the correct approach. I just need a standard document library with 3 additional columns (Metadata) 2 text fields and one date field. I will then add a document library of this type to a custom site template I've already created. (So instead of list with Type '101' I will use my custom 10055 library.

The way I'm trying to do this is:

1. I make a copy of the FEATURES\DocumentLibrary folder of my installation. So now I have FEATURES\CustomLibrary folder

2. I create an empty SharePoint project in Visual Studio 2010 and map the TEMPLATE folder, and the I add CustomLibrary folder and all the files and subfolders in it.

3. I edit the feature.xml, and add a newly generated GUID

4. I make the modifications I need to the other xml files included in the DocLib and SiteTemplates subfolders. (Type=10055, etc..)

5. I right click on the solution and deploy.


After this, I can't see my custom library when I try to create a new item in my sites. 

One thing I don't understand is why the OOTB DocumentLibrary feature has HIDDEN = true in the feature.xml file. Anyway I've tried both in my custom template, but

Search results are not displaying the results related to a particular document library


While using the search box in a site, the search results are not displaying the results related to a particular document library.

What is the reason for this? How can this be solved?

create a custom "newform.aspx" for document library using sharepoint designer and web services


Hi All,

I need to change the look and feel of "NewForm.aspx" for my Sharepoint 2007 Document Library. But the constraints are

1. I cant use C# coding. No Visual Studio.

2. Not allowed change anything in the farm level. e.g. cant install features/webparts fo this.

3. Can only use JavaScript, JQuerry and Sharepoint Designer 2007.

I came across some suggestions that we can create a custom page in Javascript/JQuery. Which will take all input data and insert new items in list/doc library using some XML services.

Please help me, I dont know if this is really possible. Let me know if any alternative is possible.

WildCard Search using document library column


Hi there ,is there any step by step instructions on how to make search using custom columns with wildcard i mean ability to make user fill fields for column like

Registration code [and the user type something]

ItemName[and type another word]

then finally press search

what i have did for now is

created custom columns for document library

created a scope for this specific document library

created managed property mapped to crawled property of these columns

edited properties xml and added propertyDef and PropertyRef

installed DotNetMafia wildcard webpart and activated feature and added this webpart to page.

then no searchbox appeart ,what am i missing?


Why is Sharepoint 2010 standard search no searching within Document library columns



Environment : SharePoint 2010 Enterprise version, using regular search and NOT Fast Search

Standard search is configured and running succesfully and returns results by searching in documents and columns of lists\ calendars and everything else except for Document librarie's columns may it be text or lookup datatype, any clue?



Outlook "Save as" in document library with all custom column


I want to put my Outlook 2007 email in my sharepoint document library (moss 2007).
To do that, I do "Save As" in Outlook. In "My Network Places" I put the url of my library.
Then, in some cases, my email is saved directly. And in other cases, outlook opens me the form to inform the different meta-data "web file properties" (
that's what I want) . it does not save the field values. It takes the default values of columns. Same required columns
Lire phonétiquement

However, in any case, the metadata are stored in sharepoint.

Do you use this method?
What configuration of my document library must have that outlook I am proposing to fill the metadata? (Docume

Custom Ordering in Document Library


Hi All,

I would like to order the document library folders and files (in those folders) on a custom column. Is that possible? For example, I would like to create a "number" column and sort the items based on that column.

Are there any other alternatives?


Creating a custom search Web Part to Search the Document Libraries only with in a site and its subsi



I am trying to write a code for a custom search which will search only the Document Libraries and Display the results.

I thought of using CAML for this but i am not able to send the search word from a textbox to a CAML query.

this is my code


void ExecuteKeywordQuery(string querytext)



SPSite site = SPContext.Current.Site;


SPWebCollection webs = site.AllWebs;


How to hide/remove "Alert Me" action menu item from Custom List/Document Library?


Hi All,


I am using Sharepoint 2007 (MOSS).

I want to hide/remove "Alert Me" action menu item from Custom List/Document Library for my Sharepoint site.


any help will be appreciated.



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