Frome-To Ranges

May 12, 2009 at 1:38 AM

Hi, does anyone know how to add the From-To Ranges for DateTime and Integer for version 3.0?

Thanks so much

 

Coordinator
May 12, 2009 at 3:05 AM

Add DataType attribute to the <Column /> element with value DateTime or Int

May 12, 2009 at 3:09 AM
Edited May 12, 2009 at 4:45 AM

Thanks for your reply.

I tried adding these to the Columns but it doesn't work. Can you please provide details on the syntax that we should use in the mapping? Thanks so much.

<Column Name="LastModifiedTime" OrderBy="Hits" TotalResults="5" DisplayName="Modified" *Type="Date"* >
<Mapping *OffsetFrom="24" Type="Hours"* DisplayName="Today" />
<Mapping *OffsetFrom="48" Type="Hours"* DisplayName="Yesterday" />
<Mapping *OffsetFrom="7" Type="Days"* DisplayName="This week" />
<Mapping *OffsetFrom="30" Type="Days"* DisplayName="This month" />
</Column>

<Column Name="Size" OrderBy="None" TotalResults="5" DisplayName="Size" *Type="Number"*>
<Mapping *To="100000"* DisplayName="Small" />
<Mapping *From="100000" To="1000000"* DisplayName="Medium" />
<Mapping *From="1000000"* DisplayName="Large" />
</Column>´

http://facetedsearch.codeplex.com/WorkItem/View.aspx?WorkItemId=4116

Coordinator
May 12, 2009 at 12:49 PM

<Mapping /> won't work with any data type but string. Dates and integers have butiltin logic for navigation.

May 12, 2009 at 10:12 PM
Edited May 12, 2009 at 11:38 PM

Does that mean we will not be able to make any changes to the columns which have date and int data types? Currently, the Size column shows like this: 1,000,000 << 2,000,000 (31), I just wonder if there is a way to display it like 1MB << 2MB.

Also can we remove the Language facet?

I couldn't find the source code for version 3.0. Is it available somewhere?

Many thanks.

Coordinator
May 13, 2009 at 1:38 PM

Currently not. I will be gathering suggestions for future builds though. Please post as such if you have any.

May 13, 2009 at 10:04 PM

I see. Thanks a lot for your help. It is a great product, thanks for all your hard work.