This project is read-only.

Size and Modified facet

Mar 17, 2008 at 5:54 PM
I would like to have a facet showing something like

Last modified
  • Today
  • This week
  • This month
  • 3 moths
  • This year
and
File size
  • Small
  • Medium
  • Large
where I can specify threshold.

I have tried using calculated columns in my document library, but unfortunately it is not possible to use Today to do the calculations.

I guess I have to extend MOSS Faceted Search to support this. Something like.
<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>

Other ideas anyone?
Thanks
Mar 20, 2008 at 5:22 PM
Please propose as a feature in Issues.

SchauDK wrote:
I would like to have a facet showing something like

Last modified
  • Today
  • This week
  • This month
  • 3 moths
  • This year
and
File size
  • Small
  • Medium
  • Large
where I can specify threshold.

I have tried using calculated columns in my document library, but unfortunately it is not possible to use Today to do the calculations.

I guess I have to extend MOSS Faceted Search to support this. Something like.
<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>

Other ideas anyone?
Thanks