<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: zend Lucene search part5 search engine results page formatting</title>
	<link>http://ganeshhs.com/zend-framework/zend-lucene-search-part5-search-engine-results-page-formatting</link>
	<description>Thoughts on open source technologies, search engine optimization, website security</description>
	<pubDate>Thu, 09 Sep 2010 12:15:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: vks</title>
		<link>http://ganeshhs.com/zend-framework/zend-lucene-search-part5-search-engine-results-page-formatting#comment-6097</link>
		<dc:creator>vks</dc:creator>
		<pubDate>Tue, 14 Apr 2009 05:35:32 +0000</pubDate>
		<guid>http://ganeshhs.com/zend-framework/zend-lucene-search-part5-search-engine-results-page-formatting#comment-6097</guid>
		<description>You can use regular expressions (preg_match etc...) to find the first occurrence of the required search text.

HTH</description>
		<content:encoded><![CDATA[<p>You can use regular expressions (preg_match etc&#8230;) to find the first occurrence of the required search text.</p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mi@ge (french user)</title>
		<link>http://ganeshhs.com/zend-framework/zend-lucene-search-part5-search-engine-results-page-formatting#comment-6052</link>
		<dc:creator>mi@ge (french user)</dc:creator>
		<pubDate>Thu, 09 Apr 2009 22:57:04 +0000</pubDate>
		<guid>http://ganeshhs.com/zend-framework/zend-lucene-search-part5-search-engine-results-page-formatting#comment-6052</guid>
		<description>Good job, thank you :)</description>
		<content:encoded><![CDATA[<p>Good job, thank you <img src='http://ganeshhs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zaw</title>
		<link>http://ganeshhs.com/zend-framework/zend-lucene-search-part5-search-engine-results-page-formatting#comment-5943</link>
		<dc:creator>zaw</dc:creator>
		<pubDate>Wed, 25 Mar 2009 11:13:03 +0000</pubDate>
		<guid>http://ganeshhs.com/zend-framework/zend-lucene-search-part5-search-engine-results-page-formatting#comment-5943</guid>
		<description>Hello 

$searchResultsContent .= sprintf(”%s”, substr($data[$count][”article_description”], 0, $snapshotTextLength));  

If I set snapshottextlength to 100, the above code will show the first 100 characters of article_description.  

The search keyword may or may not exists within first 100 characters.
I want to show only 100 characters of article description around the search keyword.  It is like google search result.

How can I achieve this ?</description>
		<content:encoded><![CDATA[<p>Hello </p>
<p>$searchResultsContent .= sprintf(”%s”, substr($data[$count][”article_description”], 0, $snapshotTextLength));  </p>
<p>If I set snapshottextlength to 100, the above code will show the first 100 characters of article_description.  </p>
<p>The search keyword may or may not exists within first 100 characters.<br />
I want to show only 100 characters of article description around the search keyword.  It is like google search result.</p>
<p>How can I achieve this ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
