.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

Refinement Panel Customization with Managed Property

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :SharePoint
Hi, I've customized the refinement panel with a Managed Property I've created myself. The refinement panel takes into account this managed property and disply it well. However, if this Managed Property is multi-valued, then each entry in the refinement panel does not split the multi valued column into different values and display a single value like : Enter Choice #1;Enter Choice #2;Enter Choice #3; and of course in that case the refinement does not work. I did the same thing in MOSS 2007 with the codeplex faceted search web part release 2.5 and it was working fine. Upgrading to release 3.0 however seems to produce the same issue as in SharePoint 2010. Any help would be greatly appreciated. Hervé

View Complete Post

More Related Resource Links

DateTime custom managed property search fails with " Your query is malformed. Please rephrase your q

I've created a front end search page in Silverlight 4 for SharePoint Search.  Currently we are using WSS 3.0 + Search Server Express 2008 (v  The page interacts with the MOSS version of the search web service at:   <site collection>/_vti_bin/search.asmx The reason for this approach is the unique way the requirements specify the look and behavior of the results.  The built-in Search Center page or web parts will not satisfy these requirements. We are going into production but I still cannot figure out how to search against my custom managed properties that are of Type DateTime.  If I cannot get this to work, it is a showstopper. I've tried numerous variations on the SQL Syntax and cannot get it to work.  I know the error is in the date portion of the WHERE clause since I can remove it and searches work fine. Here is a working query: SELECT Size, Rank, Path, Title, Description, Write, RequestSubmittedDate, DocumentType, RequestPromisedDate, ProblemDescription, DatePublished, RequestOwner, RequestingDepartment, DocumentAuthor, ProjectNumber, ProjectDescription, RequestStatus FROM scope() WHERE CONTAINS ('"nmr"') ORDER BY "Rank" DESC yet if I try to use a date literal in the WHERE clause as in the following query modification, I get the "malformed"

SharePoint 2010 Refinement Panel - Show more link issue

Hi,  I have deployed a Refinement Panel on my search result page. And I have modified the Filter Category Definition to get some Managed Metadata columns. Below are the xml changes: <?xml version="1.0" encoding="utf-8" ?> <FilterCategories>   <Category    Title="Category"    Description="Managed metadata of the documents"    Type="Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator"    MetadataThreshold="3"    NumberOfFiltersToDisplay="3"    MaxNumberOfFilters="20"    ShowMoreLink="True"    MappedProperty="ows_MetadataFacetInfo"    MoreLinkText="show more"    LessLinkText="show fewer" />   <Category    Title="Modified Date"    Description="When the item was last updated"    Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"    MetadataThreshold="5"    NumberOfFiltersToDisplay="6"    MaxNumberOfFilters="0"    SortBy="Custom"    ShowMoreLink="

how to get the css property updated along with update panel

I am using a update panel in my webpage. I am having a treeview in it . The css property of the Treeview before updating is different from after. Hw is it hapeening pls help i want to chagne it to the same css propertty as before its urgent 

2 refinement panel webparts behaving the same despite different settings

Finally! And the syntax should be Operatingx0020System (without the "_"), Now i have strange different case - i placed 2 refinement panel webparts at the page - one with my customizations and the second is the default one, and somehow the second behave exactly like the customized! although no customizations there...

Sorting search results by custom managed property


I am customizing the XSLT for the core results webpart to give the user the option to sort search results by a certain managed property. There are several managed properties that I am listing on the search results page, and when the user clicks one, it should sort the results by that property.

In MOSS 2007, you could use the "v=property" parameter in the URL to define the sort order, but this doesn't seem to work anymore in SharePoint 2010. Are there any ideas on how to accomplish this?

Taxonomy Field Picker in Custom Webpart Property Panel.


Hi Guys,

How can i Use Taxonomy Field Picker like in Content Query Webpart Property Panel in Custom Webpart.



Thanks Ron

Category definition in refinement panel


I am using a refinement panel in SharePoint 2010


 I want to display two columns from type "managed metadata"

I add the following xml code to the "Filter Category Definition " property at the beginning of the <FilterCategories>

Web Part property of type "Managed Metadata"


I want to build a custom web part where the user filters the results by selecting a term from a managed metadata property. I want this property to appear in that "Edit Web Part" property panel.

I know if I want to expose a simple string property, I just add the following attributes:




WebDescription("Select the category to filter your results.")]

public string Filter{





How do you do the same thing...but with a managed metadata datatype?

(Not to confuse the question...but the managed metadata datatype I want to show is defined as a Site Column. How can I expose that to a web part property?)


Any help would be appreciated.


Unable to use Managed Property mapped to Choice Dropdown list column in MOSS 2007


I have a choice list column containing dropdown values. I crawled the content source and created Managed Property to map it.

Also Configured Advanced Search webpart to display the property. But when I pick the property and perform search with values then no results are returned.

Can any one can help me out.?

Thanks in Advance.!

Customizing the refinement panel - ContentSource/SiteName



I'm trying to add a category based on the "ContentSource" property but this does not seem to work. To test this I copied the following line:

<Category  Title="Site"  Description="Which site this document is from"  Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"  MetadataThreshold

TextBox MaxLength Property not enforced for Tablet PC Input Panel using Writing Pad


I have developed a sizeable Wpf application to target the XP Tablet PC 2005, running on a UMPC. However I have hit a serious issue with the TextBox MaxLength property when using the Tablet Input panel to input hand writing recognition to my application.


When using keyboard or Input Panel text input, the MaxLength property is enforced as you might expect. However if the writing pad is used and the MaxLength is exceeded an Exception of type 'System.ExecutionEngineException' is thrown, and the application terminates.


Code Snippet

<TextBox Name="textBox1" MaxLength="25" />



I have built a simple test application to demonstrate that the problem is not isolated to my particular application.


I would be grateful i

Sharepoint 2010 FAST Template Web Parts Documentation (refinement panel)

I am trying to create a prototype for a sharepoint 2010 site for my team and I am working with the FAST Template (out of the box). I am implementing the "Search" Web parts that Include: Refinement Panel, Related Queries, Search Action Links but all of them ask for a refinement schema. I am looking for documentation on this on the MSDN site and I cannot find nothing that really is helping me out. For example, this is the Refinement Panel Caption property for the "Refinement Panel" web part:

<?xml version="1.0" encoding="utf-8"?>
  <Category    Title="Result Type"    Description="The file extension of the item"    Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"    MetadataThreshold="5"    NumberOfFiltersToDisplay="4"    MaxNumberOfFilters="0"    SortBy="Frequency"    SortDirection="Descending"    SortByForMoreFilters="Name"    SortDirectionForMoreFilters="Ascending"     ShowMoreLink="True"    MappedProperty="FileExtension"    MoreLinkText="show more"    LessLinkText="show fewer">
    <CustomFilters MappingType="ValueMapping" DataType="String" ValueReference="Absol

Sharepoint Designer 2010 Corrupting Refinement Panel


I wonder if anyone has seen this...

Using Sharepoint Designer 2010, try to customize the refinement panel in a search results page to show a managed property.

a. with an existing or new refinement panel added to the results page, right click and modify the webpart's "Filter Category Definition" [In my case I simply changed the title of the first category]

b. uncheck the 'use default configuration'

c. Save the page and call it up in a browser.

The refinement panel shows a garbage string of 1000 characters.

The above works OK if the page is edited via a browser, but not using Sharepoint Designer 2010.

Anyone seen this?

Thank you!

Mike Bennett

Best Bets for Managed Property Searches


Has anyone been able to set up a best bet for a managed property search yet? I've been trying to no avail.


Use Case:

We use SharePoint as our corporate employee directory. When you look someone up and click on their name, you go to their profile page. From the profile page, when you click on the Office name that the employee reports to, you get a list of all employees who report to that same office. We also maintain an application that provides informaiton about each one of our Offices. I'd like to set up a best bet so that when you search employees by the managed Office property (either manually or from profile page), you get a best bet of a link to that Offices page.


Judging by the fact that I only found one other post with the term "best bets", I assume I'm going to hear crickets, but I thought I'd give it a try here.



WPF / Silverlight tutorial: Visibility property and binding

Visibility property is a very powerful and yet often overlooked property available in both WPF and Silverlight. It enables you to set Visibility of certain UIElement objects to different states like: Visible, Collapsed and Hidden (not supported by Silverlight). This tutorial shows you how to use it and how to bind to Visibility property

abstract away the source of the connection string using a class with a static property.

ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.

The element of a web.config file is a place to store connection strings, server names, file paths, and other miscellaneous settings needed by an application to perform work. The items inside appSettings are items that need to be configurable depending upon the environment, for instance, any database connection strings will change as you move your application from a testing and staging server into production.

Let's abstract away the source of the connection string using a class with a static property.

Get pixel format, raw format, property id list and property items image in VB.net - C#.net.

n this simple article you will learn that how we can get pixel format, raw format, property id list and property items image in VB and C#.net.

Get Pixel Format:

Image consists of pixels to get the format of the pixel we have a property named pixel format. This property returns an enumeration of pixel format. This enumeration tells the pixel format.

To demonstrate make a window application. Drag one button and a picture box on form.

Now write the following code on Button click event:
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