<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Search Nuggets &#187; summary</title>
	<atom:link href="http://blog.comperiosearch.com/blog/tag/summary/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.comperiosearch.com</link>
	<description>A blog about Search as THE solution</description>
	<lastBuildDate>Mon, 13 Jun 2016 08:59:45 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Increasing the summary length in FS4SP</title>
		<link>http://blog.comperiosearch.com/blog/2010/11/30/increasing-the-summary-length-in-fs4sp/</link>
		<comments>http://blog.comperiosearch.com/blog/2010/11/30/increasing-the-summary-length-in-fs4sp/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 10:47:31 +0000</pubDate>
		<dc:creator><![CDATA[Mikael Svenson]]></dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[enterprise search]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[fs4sp]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[summary]]></category>

		<guid isPermaLink="false">http://nuggets.comperiosearch.com/2010/11/increasing-the-summary-length-in-fs4sp/</guid>
		<description><![CDATA[In the settings for the Core Result Web Part you have the possibility to set the length of your hit summary. The default is 185 characters, and the upper limit seems to be somewhere around 400 when running against FAST Search Server 2010 for SharePoint. As an example I have indexed a page on our [...]]]></description>
				<content:encoded><![CDATA[<p>In the settings for the Core Result Web Part you have the possibility to set the length of your hit summary. The default is 185 characters, and the upper limit seems to be somewhere around 400 when running against FAST Search Server 2010 for SharePoint.</p>
<p><a href="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image_thumb.png" border="0" alt="image" width="253" height="528" /></a></p>
<p>As an example I have indexed a page on our company website. This is a paragraph from the original text which is 730 characters long.</p>
<p style="font-style: italic; font-size: 0.7em;">FAST provides organizations with a scalable, high-performance enterprise search and information access platform designed to give instant access to information that is secure, relevant, accurate, and timely. With <span style="background-color: #ffff00;">FAST</span> and its Contextual <span style="background-color: #ffff00;">Insight</span> capability, it is possible to detect the context and intent of the query, search for terms and phrases, and return requested entities that appear in the context of the matching text. You will get both the contextual results with extreme precision and the contextual, dynamic navigation for further investigation of related information. Advanced linguistics and relevancy management features further improve and simplify your users’ search experience, enabling truly user-centric search.</p>
<p>A search on the term “FAST insight” yields this 160 character summary with the default settings:</p>
<p><a href="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image_thumb1.png" border="0" alt="image" width="606" height="94" /></a></p>
<p>By checking “Limit Characters In Summary” and setting the character count to 400</p>
<p><a href="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image_thumb2.png" border="0" alt="image" width="227" height="69" /></a></p>
<p>we get this output of 370 characters:</p>
<p><a href="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image_thumb3.png" border="0" alt="image" width="607" height="117" /></a></p>
<p>Certainly a much better read than the first one. But still the sentences are quite short, and fewer but more complete sentences would be better in my opinion.</p>
<p>The first step is to change the logic on how FAST generates summaries. Open up</p>
<p style="font-family: courier new,courier; font-size: 0.8em;">C:\FASTSearch\etc\config_data\RTSearch\webcluster\fsearch.addon</p>
<p>in a text editor and add the following lines:</p>
<p style="font-family: courier new,courier; font-size: 0.8em;"># Length of the generated summary in bytes. This is a hint to Juniper.<br />
# The result may be slightly longer or shorter depending on the structure<br />
# of the available document text and the submitted query.<br />
juniper.dynsum.length 2048</p>
<p># The number of (possibly partial) set of keywords matching the query<br />
# to try to include in the summary. The larger this value compared is<br />
# set relative to the length parameter, the more dense the keywords<br />
# may appear in the summary.<br />
juniper.dynsum.max_matches 3</p>
<p># The maximal number of bytes of context to prepend and append to each<br />
# of the selected query keyword hits. This parameter defines the max<br />
# size a summary would become if there are few keyword hits (max_matches<br />
# set low or document contained few matches of the keywords.<br />
juniper.dynsum.surround_max 512</p>
<p># The size of the sliding window used to determine if<br />
# multiple query terms occur together. The larger the value, the more<br />
# likely the system will find (and present in dynamic summary) complete<br />
# matches containing all the search terms. The downside is a potential<br />
# performance overhead of keeping candidates for matches longer during<br />
# matching, and consequently updating more candidates that eventually<br />
# gets thrown<br />
juniper.matcher.winsize 600</p>
<p>This changes the default behavior on how summaries are generated. These parameters were found in the old FAST ESP, but has for some reason been left out in FS4SP. These values are all hints as to how the summary should be generated.</p>
<p>Apply the same settings to</p>
<p style="font-family: courier new,courier; font-size: 0.8em;">C:\FASTSearch\META\config\profiles\default\templates\bliss\FsearchAddonWriter\fsearch.addon.tmpl</p>
<p>Next execute the following commands from the  FAST Powershell prompt</p>
<p style="font-family: courier new,courier; font-size: 0.8em;">nctrl stop configserver search-1</p>
<p style="font-family: courier new,courier; font-size: 0.8em;">nctrl start configserver search-1</p>
<p>Then we up the character limit in the web part to 2000 and we get this summary of 1500 characters:</p>
<p><a href="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.comperiosearch.com/wp-content/uploads/2010/11/image_thumb4.png" border="0" alt="image" width="625" height="274" /></a></p>
<p>If we apply our own summary logic and pick out the sentence with the most hits, we could end up with a summary of just the highlighted sentence, which gives more context than the original summaries. This logic could either be embedded in the XSLT (preferably via a callback to make the code cleaner) or you could override the web part and modify the summary before it’s being output to the XSLT.</p>
<p>(This post is cross-posted at <a href="http://techmikael.blogspot.com/2010/11/increasing-summary-length-in-fs4sp.html">http://techmikael.blogspot.com/2010/11/increasing-summary-length-in-fs4sp.html</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.comperiosearch.com/blog/2010/11/30/increasing-the-summary-length-in-fs4sp/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
