<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://gotdrupal.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>GotDrupal.com | Drupal Tutorial Site - searching</title>
 <link>http://gotdrupal.com/taxonomy/term/49/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>How To: Add focused Drupal search to your site</title>
 <link>http://gotdrupal.com/videos/focused-drupal-search</link>
 <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;When it comes to search, Drupal seems to do &lt;span class=&quot;caps&quot;&gt;OK&lt;/span&gt; by itself. However, there are a number of supporting modules which will make your Drupal&#039;s default search even better. These include &lt;strong&gt;Porter-Stemmer&lt;/strong&gt; (english only), &lt;strong&gt;Search 404&lt;/strong&gt;, &lt;strong&gt;Search by Page&lt;/strong&gt;, &lt;strong&gt;Similar By Terms&lt;/strong&gt; and &lt;a href=&quot;http://drupal.org/project/modules?filters=tid:105&amp;amp;solrsort=sort_title%20asc&quot; title=&quot;Search related modules on Drupal.org&quot;&gt;many others&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&#039;re seekign to help an advanced user out, then modules like &lt;strong&gt;Search config&lt;/strong&gt; can help with that. But what about the user who won&#039;t dare go into the hidden area of &#039;Advanced Search&#039;? This is where the power is -&amp;nbsp;right?&lt;/p&gt;
&lt;p&gt;It sure is. This is where you tell Drupal what content types and categories you want to limit the search to. This is where a user, simply looking for a job on your site, which lists information about jobs, news, blogs and other items, can focus their&amp;nbsp;results.&lt;/p&gt;
&lt;p&gt;So, why don&#039;t you stop expecting the user to figure this out, and just make it happen for them! That&#039;s what this video is all about. Using the default Drupal search box and forcing it to focus on specific content types or categories. You control what Drupal searches for and you control where it shows&amp;nbsp;up!&lt;/p&gt;
&lt;p&gt;Search Related&amp;nbsp;Modules&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/porterstemmer&quot; title=&quot;Drupal Module page for Porter-Stemmer&quot;&gt;Porter-Stemmer&lt;/a&gt; [&lt;a href=&quot;http://drupal.org/project/issues/porterstemmer&quot; title=&quot;Issues for Porter-Stemmer&quot;&gt;issues&lt;/a&gt;] - [&lt;a href=&quot;http://drupal.org/project/usage/porterstemmer&quot; title=&quot;Usage for Porter-Stemmer&quot;&gt;usage&lt;/a&gt;]&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/search404&quot; title=&quot;Drupal Module page for Search 404&quot;&gt;Search 404&lt;/a&gt; [&lt;a href=&quot;http://drupal.org/project/issues/search404&quot; title=&quot;Issues for Search 404&quot;&gt;issues&lt;/a&gt;] - [&lt;a href=&quot;http://drupal.org/project/usage/search404&quot; title=&quot;Usage for Search 404&quot;&gt;usage&lt;/a&gt;]&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/search_by_page&quot; title=&quot;Drupal Module page for Search by Page&quot;&gt;Search by Page&lt;/a&gt; [&lt;a href=&quot;http://drupal.org/project/issues/search_by_page&quot; title=&quot;Issues for Search by Page&quot;&gt;issues&lt;/a&gt;] - [&lt;a href=&quot;http://drupal.org/project/usage/search_by_page&quot; title=&quot;Usage for Search by Page&quot;&gt;usage&lt;/a&gt;]&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/similarterms&quot; title=&quot;Drupal Module page for Similar By Terms&quot;&gt;Similar By Terms&lt;/a&gt; [&lt;a href=&quot;http://drupal.org/project/issues/similarterms&quot; title=&quot;Issues for Similar By Terms&quot;&gt;issues&lt;/a&gt;] - [&lt;a href=&quot;http://drupal.org/project/usage/similarterms&quot; title=&quot;Usage for Similar By Terms&quot;&gt;usage&lt;/a&gt;]&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/search_config&quot; title=&quot;Drupal Module page for Search config&quot;&gt;Search config&lt;/a&gt; [&lt;a href=&quot;http://drupal.org/project/issues/search_config&quot; title=&quot;Issues for Search config&quot;&gt;issues&lt;/a&gt;] - [&lt;a href=&quot;http://drupal.org/project/usage/search_config&quot; title=&quot;Usage for Search config&quot;&gt;usage&lt;/a&gt;]&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/faceted_search&quot; title=&quot;Drupal Module page for Faceted Search&quot;&gt;Faceted Search&lt;/a&gt; [&lt;a href=&quot;http://drupal.org/project/issues/faceted_search&quot; title=&quot;Issues for Faceted Search&quot;&gt;issues&lt;/a&gt;] - [&lt;a href=&quot;http://drupal.org/project/usage/faceted_search&quot; title=&quot;Usage for Faceted Search&quot;&gt;usage&lt;/a&gt;]&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Apache Solr project is what is used on Drupal.org. You know, where you get the cool &lt;a href=&quot;http://en.wikipedia.org/wiki/Faceted_search&quot; title=&quot;Wikipedia article about Faceted Search&quot;&gt;faceted&lt;/a&gt; results from a search&amp;nbsp;request.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/Solr&quot; title=&quot;Drupal Module page for Apache&quot;&gt;Apache&lt;/a&gt; [&lt;a href=&quot;http://drupal.org/project/issues/Solr&quot; title=&quot;Issues for Apache&quot;&gt;issues&lt;/a&gt;] - [&lt;a href=&quot;http://drupal.org/project/usage/Solr&quot; title=&quot;Usage for Apache&quot;&gt;usage&lt;/a&gt;]&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Of course, if you haven&#039;t heard about it already, the &lt;a href=&quot;http://acquia.com/products-services/acquia-search&quot; title=&quot;Web page about Acquia Search&quot;&gt;Acquia Search&lt;/a&gt; service make it quite easy to take advantage of the Apache Solr&amp;nbsp;coolness.&lt;/p&gt;
&lt;p&gt;Here&#039;s the code.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// All of the following code goes within template.php&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * Using one of the preprocess hooks in template.php, you create a&lt;br /&gt; * variable which calls drupal_get_form on the function which creates&lt;br /&gt; * the search form&lt;br /&gt; */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;span class=&quot;caps&quot;&gt;THEME&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;span class=&quot;caps&quot;&gt;NAME&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;HERE_preprocess_node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$vars&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hook&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$vars&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;focused_search&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;drupal_get_form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&lt;span class=&quot;caps&quot;&gt;THEME&lt;/span&gt;-&lt;span class=&quot;caps&quot;&gt;NAME&lt;/span&gt;-HERE_focused_search_form&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;/*&lt;br /&gt; * This function will create a search form which adds a validation&lt;br /&gt; * handler which you use to append any custom search criteria&lt;br /&gt; * Note to self: Context module could be used here?&lt;br /&gt; */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;span class=&quot;caps&quot;&gt;THEME&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;span class=&quot;caps&quot;&gt;NAME&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;HERE_focused_search_form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form_state&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$keys &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Render the form to search a focused content type&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;module_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;search&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;search_form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form_state&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;/&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;drupal_get_path_alias&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;q&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;])); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Use existing search form code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#validate&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;search_form_validate&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&lt;span class=&quot;caps&quot;&gt;THEME&lt;/span&gt;-&lt;span class=&quot;caps&quot;&gt;NAME&lt;/span&gt;-HERE_focused_search_validate&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#submit&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;search_form_submit&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;/*&lt;br /&gt; * The validation handler added within the search form is where you make&lt;br /&gt; * any adjustments to the search handled by Drupal. You can use any&lt;br /&gt; * critera you wish, including the path or other variables available&lt;br /&gt; * within Drupal.&lt;br /&gt; */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;span class=&quot;caps&quot;&gt;THEME&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;span class=&quot;caps&quot;&gt;NAME&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;HERE_focused_search_validate&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form_state&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Using an array to determine which content type to search based on path from search form&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content_type &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;array_search&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#action&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;vendor_item&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;/vendors&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;job_item&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;/jobs/sites&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content_type &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= empty(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content_type&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) ? &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content_type&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Initialize using any existing basic search keywords.&lt;br /&gt;&amp;nbsp; // taken from node.module node_search_validate() function&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$keys &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form_state&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;values&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;processed_keys&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$keys &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;search_query_insert&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$keys&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;type&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content_type&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// additional seach criteria added here&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;form_set_value&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;basic&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;inline&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;processed_keys&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;trim&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$keys&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;), &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form_state&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;div class=&quot;field field-type-nodereference field-field-media-reference&quot;&gt;
      &lt;div class=&quot;field-label&quot;&gt;Related videos:&amp;nbsp;&lt;/div&gt;
    &lt;div class=&quot;field-items&quot;&gt;
            &lt;div class=&quot;field-item odd&quot;&gt;
                    &lt;a href=&quot;/videos/drupal-search-using-acquia-solr-service&quot;&gt;How To: Drupal Search using Acquia&amp;#039;s Solr Service&lt;/a&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;
&lt;!-- google_ad_section_end --&gt;</description>
 <enclosure url="http://media.gotdrupal.com/matt/howto/d6/Drupal-Focused-Search_d6.mov" length="21510458" type="video/quicktime" />
 <comments>http://gotdrupal.com/videos/focused-drupal-search#comments</comments>
 <category domain="http://gotdrupal.com/category/skill-level/advanced">Advanced</category>
 <category domain="http://gotdrupal.com/category/tags/searching">searching</category>
 <pubDate>Thu, 02 Jul 2009 01:03:04 +0000</pubDate>
 <dc:creator>Matt Petrowsky</dc:creator>
 <guid isPermaLink="false">58 at http://gotdrupal.com</guid>
</item>
<item>
 <title>How To: Drupal Search using Acquia&#039;s Solr Service</title>
 <link>http://gotdrupal.com/videos/drupal-search-using-acquia-solr-service</link>
 <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;Is there any other activity more popular on the Internet than searching? Probably not. In fact, I&#039;d be willing to double-down on that wager (I&#039;m on the side of searching being the most popular if it wasn&#039;t&amp;nbsp;obvious).&lt;/p&gt;
&lt;p&gt;What&#039;s that number one site on the nets? Oh yeah, it&#039;s Google - and they do&amp;nbsp;search.&lt;/p&gt;
&lt;p&gt;So, this simply means one thing. Your focus on Drupal search should be close to number one. The default search in Drupal works okay, and just a bit beyond, if you&#039;re searching for &quot;cool&quot; and &quot;cool&quot; stuff exists. However, searching for &quot;cool&quot; doesn&#039;t cut it when &quot;coolness&quot; is the title for all your cool nodes. Your users pretty much have to hit the right words spot&amp;nbsp;on.&lt;/p&gt;
&lt;p&gt;You can enhance Drupal&#039;s default search with modules such as &lt;a href=&quot;http://drupal.org/project/porterstemmer&quot; title=&quot;Module page on Drupal.org for Porter Stemmer&quot;&gt;Porter-Stemmer&lt;/a&gt; (which I suggest using as your fallback search) which breaks a word like &quot;coolness&quot; down into its stem words - ala&amp;nbsp;&quot;cool&quot;.&lt;/p&gt;
&lt;p&gt;But you simply can&#039;t beat the &lt;a href=&quot;http://drupal.org/project/apachesolr&quot; title=&quot;Module page on Drupal.org for Apache Solr&quot;&gt;Apache Solr Module&lt;/a&gt; in terms of allowing users to narrow down exactly what they might be looking&amp;nbsp;for.&lt;/p&gt;
&lt;p&gt;The big problem to using this module is setting up your own &lt;a href=&quot;http://lucene.apache.org/solr/&quot; title=&quot;Solr page on the Apache Lucene site&quot;&gt;Apache Solr&lt;/a&gt; instance and running a Java-based &lt;a href=&quot;http://lucene.apache.org/&quot; title=&quot;Apache Lucene Web Site&quot;&gt;Lucene&lt;/a&gt;&amp;nbsp;server.&lt;/p&gt;
&lt;p&gt;The solution to this problem is the &lt;a href=&quot;http://acquia.com/products-services/acquia-search&quot; title=&quot;Acquia Search product page at Acquia.com&quot;&gt;Acquia Search&lt;/a&gt; service provided via the &lt;a href=&quot;http://acquia.com/products-services/acquia-network&quot; title=&quot;Acquia Network product page at Acquia.com&quot;&gt;Acquia Network&lt;/a&gt;. After a quick 30 minute setup, I had the GotDrupal.com web site singing the glory of &lt;a href=&quot;http://en.wikipedia.org/wiki/Faceted_search&quot; title=&quot;Faceted search on Wikipedia.org&quot;&gt;faceted searching&lt;/a&gt;. This video will provide you with all the great details about using the Acquia Search service and setting up the Apache Solr module within&amp;nbsp;Drupal.&lt;/p&gt;
&lt;p&gt;Many thanks to &lt;a href=&quot;http://drupal.org/user/5449&quot; title=&quot;User page on Drupal.org for Robert Douglas&quot;&gt;Robert Douglas&lt;/a&gt; and any one else who has been leading the charge for such a powerful searching enhancement to Drupal! This video is dedicated to you&amp;nbsp;guys!&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;</description>
 <enclosure url="http://media.gotdrupal.com/matt/acquia/d6/AcquiaSearch_d6.mov" length="34591738" type="video/quicktime" />
 <comments>http://gotdrupal.com/videos/drupal-search-using-acquia-solr-service#comments</comments>
 <category domain="http://gotdrupal.com/category/tags/apache-solr">apache solr</category>
 <category domain="http://gotdrupal.com/category/skill-level/intermediate">Intermediate</category>
 <category domain="http://gotdrupal.com/category/tags/searching">searching</category>
 <pubDate>Sat, 14 Mar 2009 04:33:58 +0000</pubDate>
 <dc:creator>Matt Petrowsky</dc:creator>
 <guid isPermaLink="false">43 at http://gotdrupal.com</guid>
</item>
</channel>
</rss>

