How to: Add a column in search results page
- Add a column in document library(exp. tjcolumn)
- Add an item in this document library and fill in the column value
- Go to search settings in SSP
- Go to content sources
- Crawl the content
- Go to metadata properties
- Create a new metadata property
- Add mapping(tjprop) to column(it should be like ows_tjcolumn(text))
- Crawl the content
- Go to search site
- Go to core results webpart, modify web part properties
- Go to results query options -> selected columns
- Add a column here(exp. <column name="tjprop" />)
- Go to data view properties -> xsl editor
- Check for the below portion and add the column as mentioned in highlighted part, save and exit
<xsl:call-template name="DisplaySize">
<xsl:with-param name="size" select="size" />
</xsl:call-template>
<xsl:call-template name="DisplayString">
<xsl:with-param name="str" select="author" />
</xsl:call-template>----------------------
<xsl:call-template name="DisplayString">
<xsl:with-param name="str" select="tjprop" />
</xsl:call-template>
------------------------
<xsl:call-template name="DisplayString">
<xsl:with-param name="str" select="write" />
</xsl:call-template>
<xsl:call-template name="DisplayCollapsingStatusLink">
<xsl:with-param name="status" select="collapsingstatus"/>
<xsl:with-param name="urlEncoded" select="urlEncoded"/>
<xsl:with-param name="id" select="concat('CSR_CS_',$id)"/>
</xsl:call-template>