.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

Custom Properties in Advanced Search Web Part - a bug??

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


we are trying to configure the advanced search web part and add some custom properties. Those properties are of type managed metadata.

We saw the following sample:


When try to use the web part, for example by add the property "product" and then search "when [product]="valueA",

we get not only results where the item has a property "product=valueA",

but also any item where in its body (full text) there is "valueA".

This behavior doesn't occur when searching non-custom property (for example "author=keren").

Is that a bug or are we missing something in the customization?

thanks a lot!



keren tsur

View Complete Post

More Related Resource Links

Search - How to remove a meta tag ... / custom column is not showing up in Crawled Properties after

Hi I got the following warning after I crawled a site. Info out of Crawl Log: "The content for this address was excluded by the crawler because this item was marked with a no-index meta-tag. To index this item, remove the meta-tag and recrawl." Sound easy but I don't no where I could do it. The other problem is that I try to get a custom column from a custom list showing up in the crawle properties. I am using also a custom scope with the behavior "INCLUDE" ... In MOSS 2007 it was a lot simpler ;-) Thanks Regards MIA    

Searching for custom properties in a default search

Hi all, I have added some custom properties in to Manage User Properties in my User Profile Service Application. The issue I'm having is that I'm unable to obtain search results from these properties. For example, if in the Enterprise Search / People tab I enter "Dave" and click search, then I'll be presented with results of people who's name matches "Dave". If I enter "Information Technology" then I'll get a list of all users who's department is "Information Technology". So far we're okay! But let's go back to the custom property. Let's say it's called "Clients" and it is for storing client names against the staff profiles. If I search for "Microsoft" and a user has Microsoft in their client property then no results are found. I've created the managed properties in the Metadata Property Mappings of my search service application, done full crawls but nothing. If I search for "clients:microsoft" then I get results. So the question is how do I or is it even possible to get custom metadata properties to show up in a default search? Thanks!

Custom advanced search form

Hi all, I've got some requirement which related with the advanced search form. I'll need to make a tree view which listed the site subsites and document library inside each site. For example:  sites A       DocLib 1       DocLib 2       subsites B              DocLib 3              DocLib 4       subsites C              DocLib 5              DocLib 6 Also I want to make the node which is selected as the scope for search. Is there any body can give a clue or pointer how I can make this? Any insight is appreciated.. Thank you Best regards, -- Pingkan --

Custom Advanced Search to search in 1 scope only

I have a custom searchpage, search result, advanced search page and custom scope that configured in SSP. I can set the advanced search to redirect to my custom search result but the result is not from the custom scope (from "All Sites" scope). How do i configure it so that it will search from the custom scope via custom advanced search?

Custom web part properties are not saved in SharePoint 2010 visual web part


I have created my first visual web part in SP2010.  In 2007 version I didn't use user controls so all of my code was in a single file for the most part.  Now I've separated out the code.  Everything works great and I like this a lot better (more like traditional ASP.NET development) with one exception.  In my bootstrap .cs file (I call it that because it does nothing but load the user control file) I put all of my custom web part properties.  Then in my web part code-behind I reference them thru an instance of the containing class.  I must have something incorrectly configured because none of the changes to the properties at runtime are getting updated in the code.  Here's a filtered view of how I have it wired together:

Sample property in the top level .cs file:

private string m_ImagePath = "sites/myapp/images1/branded_image.png";
   WebDisplayName("Relative path to header image"),
   WebDescription("Relative path to header image"),

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;


Advanced Search Web Part in 2010 does not seem to handle scopes properly


I have configured a page in SP2010 with an advanced scope web part.

I have enabled the scope picker from the "advanced search" scope group and adding a new scope to that group in the site collection settings.

The advanced search web part is targetted to a new results page containing the core results web part.

When I perform a search for string test using one of the scopes that I have selected the results page is called as follows.


No results are rendered.

What I don't quite understand is I thought that the querystring should actually be.


Which when entered manually works.

So it sort of seems that the advanced search web part is rendering the wrong querystring!!

The search centre is enterprise template (not fast) and sharepoint server search is configured not fast search.


To Configure Search Box Web Part properties


I need configure the Search Box Web Part properties to add a custom scope HR to it. Are these steps below the right steps?
  1. Navigate to the Search Center site.
  2. In the Search Center, click the Site Actions menu, and then click Edit Page . The Search page opens in Edit mode.
  3. In the Search Box Web Part, expand the Edit drop-down list, and then click Modify Shared Web Part .
  4. In the Search Box tool pane, expand the Scopes Dropdown node.
  5. Expand the Miscellaneous node.

In the Scope Display Group box, type the name of the scope display group "HR" that you want to display in the scopes drop-down list. By default, the value of this property is Search Dropdown .

Please let me know the solution to this issue as soon as possible.


Thanks and Regards,



How to Make Properties Search Work in the Advanced Search page?


I work in SharePoint 2007. I have created "Advanced Search" page. It is the standard advanced search page and is created by choosing "search center" option when you "create site" in site settings.

The top part of this advanced search page has fields to enter search terms. This will search full text of documents. This part works.

Bottom part of the search page includes properties search. I know how to add or change those properties in the list. It is done through XML file which can be found in "Edit Page", "modify the web part", and it is in properties.

I have added a new property in this XML file but it does not appear in the drop-down list in the search page. I know that this property must exist and data has to be populated in at least one record for this property to show up in the drop-down list. This has been done and still the added property does not show up in the drop-down list in the search page.

What else do I need to do to make properties search work?


Thank you very much in advance for your help.

Managed Properties in the Advanced Search page of Sharepoint Server 2007


Hi all,

I want to search a custom field in a SharePoint list by using the Advanced Search page. I followed this post http://interdata.cl/?p=368 and i was able to find all metadata properties without any blank.  For example, I´ve created columns called "Baseline", or "Milestone" and it works properly, but for example, "Document Code" doesn´t works.


The field shows up correctly in the Advanced Search properties, but whenever I do a search trying to specify my custom property I get the error message: "Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information.".

if I look at the Managed property in Central administration, it tells me "Number of objects with this property: more than 350", so the data is mapped correctly to the property.


Thanks in advance,



Advanced Search does not show items from Custom List- why?



I have search working in general for site. However, when I run it only picks up files - not list items. Even List search in top right comes up with blank results.  

I read somewhere that this is switched off due to size of search results.

Can someone tell me how to include List Items in search?



Custom Advanced Search


Does anyone know of a way to debug Custom Advanced Search Webparts like these below? Our search doesn't seem to do anything and I can't figure out a way to debug it since we are using imbedded HTML inside C#.

Our code is like this this snippet:


"<div><table><tr><td width='133'></br></br></br> </td></tr></table></div>"



"<div><table cellpadding='

Advanced Basics: The LINQ Enumerable Class, Part 2


This month Ken digs deeper into the System.Linq.Enumerable class and shows readers how to perform some magic data operations using System.Linq.Enumerable.

Ken Getz

MSDN Magazine September 2008

Advanced Basics: The LINQ Enumerable Class, Part 1.


Presented here is the LINQ Enumerable class, which allows you to manipulate data in any class that implements IEnumerable(Of T).

Ken Getz

MSDN Magazine July 2008

Advanced Basics: Setting Word Document Properties the Office 2007 Way


The last time I wrote this column (March 2006), I shared an application that allows you to update all the Microsoft® Word documents in a folder and its subfolders. Each time the application finds a document in the specified path, it updates the document properties to match those you specified in the application.

Ken Getz

MSDN Magazine June 2006

Advanced Basics: Set Word Document Properties Programmatically


At the beginning of another lovely day of writing courseware in mad pursuit of unrealistic deadlines, I received a frantic call from a business partner. He was at the end of a long consulting project and had several hundred Microsoft® Word documents, all of which required their document properties to be set identically, except the Title property of the document, which was to be based on the document file name, minus the .

Ken Getz

MSDN Magazine March 2006

Windows XP: Escape from DLL Hell with Custom Debugging and Instrumentation Tools and Utilities, Part


Building on his article published in the June issue, which demonstrated several ways to get process and DLL-related information from APIs such as PSAPI, NTDLL, and TOOLHELP32, the author presents some unusual ways to get system-oriented info that you can easily integrate in your own toolkit. There are three tools included as samples: LoadLibrarySpy, which monitors an application and detects which DLLs are really loaded; WindowDump, which retrieves the content and a detailed description of any window; and FileUsage, which redirects console-mode applications to tell you which process is using any opened file.

Christophe Nasarre

MSDN Magazine August 2002

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