다음을 통해 공유


OriginalValue

Applies to: SharePoint Server 2010

Specifies the absolute or relative value from the managed property for the custom refinement filter.

<OriginalValue>…</OriginalValue>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

CustomFilter [Refinement]

Specifies a custom refinement filter.

Remarks

When you specify a relative value, use one of the following formats:

  • InclusiveValue..ExclusiveValue

  • ..Value

  • Value..

Example

The following example provides two custom values for a filter category by using the date valued LastModifiedTime managed property. This category is similar to the Modified Date category already displayed in the Refinement Panel Web Part. However, this example uses absolute dates for the range mapping.

<FilterCategories>
    <Category
        Title="Modified Date"
        Description="When the item was last updated"
        Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"
        MetadataThreshold="5"
        NumberOfFiltersToDisplay="3"
        MaxNumberOfFilters="0"
        SortBy="Custom"
        ShowMoreLink="True"
        MappedProperty="LastModifiedTime"
        MoreLinkText="show more"
        LessLinkText="show fewer" >

        <CustomFilters MappingType="RangeMapping" DataType="Date" ValueReference="Absolute" ShowAllInMore="False">
            <CustomFilter CustomValue="October 26 2009">
                <OriginalValue>10/26/2009..10/27/2009</OriginalValue>
            </CustomFilter>
            <CustomFilter CustomValue="Before October 26 2009">
                <OriginalValue>..10/25/2009</OriginalValue>
            </CustomFilter>
        </CustomFilters>

    </Category>
</FilterCategories>

See Also

Reference

RefinementWebPart

Concepts

Refinement Panel Overview

Refinement Panel XML Schema