<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/en/taxonomy/term/153/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>search</title>
    <link>http://joetsuihk.com/en/taxonomy/term/153/all</link>
    <description></description>
    <language>en</language>
     <atom:link href="http://joetsuihk.com/en/taxonomy/term/153/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>分開 apachesolr 和 apachesolr_search</title>
    <link>http://joetsuihk.com/en/%E5%88%86%E9%96%8B_apachesolr_%E5%92%8C_apachesolrsearch</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;下一個進階的 solr blog 已經寫了大半, 但發覺有必要分開一篇&lt;br /&gt;
先談談 apachesolr 和 apachesolr_search 的分別&lt;/p&gt;
&lt;p&gt;apachesolr 是一個接口模組, 是連接 Drupal 和 SolrPhpClient 的接口&lt;br /&gt;
而 SolrPhpClient 是 PHP 和 solr 的接口&lt;br /&gt;
但 solr 是 java base 的, 而且其實有一個易用的 web service query 接口: /solr/&lt;strong&gt;CORE0&lt;/strong&gt;/admin/form.jsp&lt;br /&gt;&lt;img src=&quot;http://www.joetsuihk.com/files/apachesolr-and-search-modul.png&quot; width=&quot;100%&quot; /&gt;&lt;/p&gt;
&lt;p&gt;所以, 嚴格來說, 假如你要自己硬幹, 是可以不使用以上的接口的&lt;br /&gt;
但當然無需要就不必重做輪子了&lt;/p&gt;
&lt;p&gt;apachesolr 的功能包括提供方便的函數,&lt;br /&gt;
以調用正在處理的 query, query 的參數, 它的回傳 response, response 的列數目等等&lt;br /&gt;
也會送出 cck 的欄位的資料到 solr &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/development&quot;&gt;Development&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/apachesolr&quot;&gt;apache solr&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/search&quot;&gt;search&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/apachesolrsearch&quot;&gt;apachesolr_search&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Mon, 05 Dec 2011 12:02:50 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">265 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>[2012-12-21] 續 apache solr (二)</title>
    <link>http://joetsuihk.com/en/20121221_%E7%BA%8C_apache_solr_%E4%BA%8C</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;我測試的 apachesolr module 是 6.x-2.0-beta3&lt;/p&gt;
&lt;p&gt;我發覺站內的內容並不是即時更新到 solr 的 index 之內的&lt;br /&gt;
應該是有以下的步驟:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;新建/修改的 node 會在 Drupal 內部先整理好, 再一次送到 solr, 可選立即送, 而admin page 有一個數字顯示目前未被送出之 node 的數目&lt;/li&gt;
&lt;li&gt;Solr 收到更新名單, 但仍需要時間建立 index, 已建立的數字可以在 admin page 看到, 但 index 的更新不可以手動發動, 要等, 或者重啟 solr&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;暫時未看到有 &lt;a href=&quot;http://drupaltaiwan.org/forum/20101214/4759&quot; target=&quot;_blank&quot;&gt;patch core&lt;/a&gt; 的需要, 但我只測試英文內容, 不知道有否關連&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/drupal&quot;&gt;Drupal&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/drupal6x&quot;&gt;Drupal 6.x&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/apachesolr&quot;&gt;apache solr&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/search&quot;&gt;search&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-add-this field-type-addthis field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a class=&quot;addthis_button &quot; addthis:title=&quot;[2012-12-21] 續 apache solr (二) - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/20121221_%E7%BA%8C_apache_solr_%E4%BA%8C&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/sm-share-en.gif&quot; alt=&quot;Share page with AddThis&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Tue, 21 Dec 2010 16:37:20 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">200 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>[2010-12-14] 初探 apache solr on Drupal</title>
    <link>http://joetsuihk.com/en/20101214_%E5%88%9D%E6%8E%A2_apache_solr_drupal</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;使用過 Drupal 內建的 search 的話&lt;br /&gt;
便會發覺這個功能是&lt;a href=&quot;http://www.google.com.hk/search?hl=zh-TW&amp;amp;q=%E9%9B%9E%E8%82%8B+%E5%85%B8%E6%95%85&amp;amp;aq=4&amp;amp;aqi=g7g-m2&amp;amp;aql=&amp;amp;oq=%E9%9B%9E%E8%82%8B+&amp;amp;gs_rfai=&quot; target=&quot;_blank&quot;&gt;雞肋&lt;/a&gt;&lt;br /&gt;
的確是一個基於 &lt;a href=&quot;http://en.wikipedia.org/wiki/Tree_(data_structure)&quot; target=&quot;_blank&quot;&gt;tree&lt;/a&gt; 而不是 &quot;SQL like&quot; 的搜尋, 也是全文檢索&lt;br /&gt;
但就沒有辦法對搜尋結果加以 filter (&lt;a href=&quot;http://en.wikipedia.org/wiki/Faceted_search&quot; target=&quot;_blank&quot;&gt;faceted search&lt;/a&gt;)&lt;br /&gt;
也不可以用日期或者其他方式排序&lt;br /&gt;
Drupal 的開發者們都發覺言個問題&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/drupal&quot;&gt;Drupal&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/apachesolr&quot;&gt;apache solr&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/search&quot;&gt;search&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/integration&quot;&gt;integration&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/thirdparty&quot;&gt;third party&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-add-this field-type-addthis field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a class=&quot;addthis_button &quot; addthis:title=&quot;[2010-12-14] 初探 apache solr on Drupal - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/20101214_%E5%88%9D%E6%8E%A2_apache_solr_drupal&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/sm-share-en.gif&quot; alt=&quot;Share page with AddThis&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Tue, 14 Dec 2010 14:47:02 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">199 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
