<?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; Erik Andreassen Perez</title>
	<atom:link href="http://blog.comperiosearch.com/blog/author/erik/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>Instant Search in SharePoint 2013</title>
		<link>http://blog.comperiosearch.com/blog/2014/05/26/instant-search-in-sharepoint-2013/</link>
		<comments>http://blog.comperiosearch.com/blog/2014/05/26/instant-search-in-sharepoint-2013/#comments</comments>
		<pubDate>Mon, 26 May 2014 07:27:23 +0000</pubDate>
		<dc:creator><![CDATA[Erik Andreassen Perez]]></dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[display templates]]></category>
		<category><![CDATA[instant search]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[SharePoint 2013 Search]]></category>
		<category><![CDATA[ssa]]></category>

		<guid isPermaLink="false">http://blog.comperiosearch.com/?p=2297</guid>
		<description><![CDATA[Have you been thinking about implementing instant search to your SharePoint 2013 project, but not quite sure where to start? In this blog post I will try to explain how you can easily enhance the search experience in SharePoint 2013 in a few simple steps. Instant search is widely known as «the way Google do [...]]]></description>
				<content:encoded><![CDATA[<p>Have you been thinking about implementing instant search to your SharePoint 2013 project, but not quite sure where to start? In this blog post I will try to explain how you can easily enhance the search experience in SharePoint 2013 in a few simple steps.</p>
<p>Instant search is widely known as «the way Google do it» &#8211; in fact they were the ones who started this trend and now everyone are used to it. What if you could give your SharePoint users the same experience they are already familiar with?</p>
<p>To begin with you must have in mind that instant search <strong>will</strong> produce a lot more queries and that your search performance <strong>will</strong> get worse if you have too many users hammering your SSA (Search Service Application). So, yes &#8211; there is a risk. The trade-off is high if you can increase the search experience to your users, but there’s also a risk of damaging the search experience totally if things start to go slow and people end up getting zero-hits.</p>
<p>Anyways, for the proof of concept you don’t need to think about this now :-)</p>
<p>Before moving on please check that you can meet these prerequisites:</p>
<p><strong>Prerequisites</strong></p>
<ul>
<li>Administrator Access to a SharePoint 2013 site</li>
<li>SharePoint Designer 2013 or a way of mapping your site&#8217;s directory</li>
<li>A text editor such as Sublime Text or Notepad++ (doesn&#8217;t really matter, but I recommend an editor with some code highlighting / intellisense)</li>
<li>Basic understanding of the concept regarding DisplayTemplate in SharePoint 2013 (You can read more about it <a href="http://borderingdotnet.blogspot.fi/2013/03/the-anatomy-of-sharepoint-2013-display.html">here</a> and <a href="http://msdn.microsoft.com/en-us/library/office/jj945138(v=office.15).aspx">here</a> :-) )</li>
</ul>
<p>What we are going to do is that we are simply going to create a new DisplayTemplate for the SearchBox Control based on the original DisplayTemplate and edit the OnKeyUpEvent.</p>
<p><strong>Changing the DisplayTemplate</strong></p>
<ol>
<ol>
<li>Open SharePoint Designer 2013 and open your site</li>
<li>Browse to http://SPSite/_catalogs/masterpage/Display Template/Search</li>
<li>Create a copy of the DisplayTemplate named Control_SearchBox.html and name it Control_InstantSearchBox.html and open it and edit the &lt;title&gt;-tag to something else (you’ll need it do identify the template later)</li>
<li> Go to the javascript section in the template and create a function called  doInstantSearch(clientControl, value, event) that only executes the normal query request.</li>
</ol>
</ol>
<p>It should look something like this:<script src="https://gist.github.com/38a2fd89c8d10e15ea70.js?file=InstantSearch_Example_1.js"></script></p>
<ol>
<li>Edit the searchbox-control’s ‘onkeyup’-event by replacing the attribute’s value with: ‘doInstantSearch($getClientControl(this), this.value, event);’ and save your template. Now you can go to your SearchBox web part and change the template to your new one (look for the title you set in step 3.) and test it yourself.</li>
<li>Now you have a one-to-one relationship between each key you press and query that you send to your SSA. However, as you will probably notice, the whole thing feels a little bit slow and not so smooth. This is because you are hammering your SSA and re-rendering your template each time you press a key &#8211; even if it’s not a real character &#8211; not so funny right? Let&#8217;s fix it.</li>
<li>In order to fix this we need to add a character-filter and a timeout to our function. We will get the character from the keyCode and try to match the character using a regular expression. In this example we will operate with a RegEx matching all alphanumeric-characters including special norwegian characters like «æ ø å». If the character matches it we will reset the timeout function and start over with a new 300 ms delay. When we hit a non-alphanumeric character or the delay times out we will execute the search request.</li>
</ol>
<p>This is what we end up with:<br />
<script src="https://gist.github.com/38a2fd89c8d10e15ea70.js?file=InstantSearch_Example_2.js"></script></p>
<p>And now you have an instant search with a 300 ms delay for each legal character that the user enters in the search box.</p>
<p>Try it yourself :)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.comperiosearch.com/blog/2014/05/26/instant-search-in-sharepoint-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comperio @ UiO</title>
		<link>http://blog.comperiosearch.com/blog/2013/09/23/comperio-at-uio/</link>
		<comments>http://blog.comperiosearch.com/blog/2013/09/23/comperio-at-uio/#comments</comments>
		<pubDate>Mon, 23 Sep 2013 12:53:22 +0000</pubDate>
		<dc:creator><![CDATA[Erik Andreassen Perez]]></dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Comperio]]></category>
		<category><![CDATA[Elasticsearch]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[uio]]></category>

		<guid isPermaLink="false">http://blog.comperiosearch.com/?p=1714</guid>
		<description><![CDATA[Comperio is always looking for talented people who are passionate about search technology.  Last week, we visited the Department of Informatics at UiO (University of Oslo) to present how we, as Comperians, provide innovative search solutions. Before the presentation we had a stand and met many computer science students who asked questions about everything from [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Comperio is always looking for talented people who are passionate about search technology.  Last week, we visited the Department of Informatics at UiO (University of Oslo) to present how we, as Comperians, provide innovative search solutions.</strong></p>
<p>Before the presentation we had a stand and met many computer science students who asked questions about everything from a simple “What’s up?”-question to more complex ones like “What algorithms do you use to calculate ranking in a search result?”.</p>
<p><img class="size-full wp-image-1737 aligncenter" src="http://blog.comperiosearch.com/wp-content/uploads/2013/09/stand-at-UiO.jpg" alt="" width="480" height="214" /></p>
<p>Later on, we kept a two-hour session for the students. First, we had a presentation about how search technology works showing different types of search scenarios and how it is to work with search solutions. Also, we had one of our interns from this year, Øyvind Wedøe to present his summer project about how it was to make a 100% <a title="Search driven websites" href="http://blog.comperiosearch.com/blog/2013/08/09/search-driven-websites/">search-driven website</a> (beta.comperio.no). In the second session, we gave the students a short introduction about the powerful open-source search engine, Elasticsearch, along with a technical workshop where we showed the students how to set up an index, feed it with data and create simple queries against it (you can read more about it <strong><a title="Elasticsearch smashtime" href="http://blog.comperiosearch.com/blog/2013/09/23/elasticsearch-smashtime/">here</a></strong>).</p>
<p><a href="http://blog.comperiosearch.com/wp-content/uploads/2013/09/erik-perez-talking-about-elasticsearch.jpg"><img class="aligncenter size-full wp-image-1740" src="http://blog.comperiosearch.com/wp-content/uploads/2013/09/erik-perez-talking-about-elasticsearch.jpg" alt="Erik Perez talking about elasticsearch" width="480" height="314" /></a></p>
<p>After the presentation, we went to a restaurant with the students where we got to know them more and had a good time.</p>
<p style="text-align: center"><a href="http://blog.comperiosearch.com/wp-content/uploads/2013/09/Comperio-and-the-students-at-the-restaurants.jpg"><img class="size-full wp-image-1743 aligncenter" src="http://blog.comperiosearch.com/wp-content/uploads/2013/09/Comperio-and-the-students-at-the-restaurants.jpg" alt="Comperio and the students at the restaurant" width="480" height="339" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.comperiosearch.com/blog/2013/09/23/comperio-at-uio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
