Changes between Version 5 and Version 6 of shunfa/2012/0911


Ignore:
Timestamp:
Sep 27, 2012, 1:46:41 PM (12 years ago)
Author:
shunfa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • shunfa/2012/0911

    v5 v6  
    175175=== 4. 修改Solr設定 ===
    176176 * 根據官方文件步驟,無法順利完成"Query",當送出搜尋時,會出現text沒有定義之類的訊息,於是必須修改Solr相關的設定檔
    177 ==== 1.修改相關xml設定欄位 ====
     177==== 1.修改schema.xml欄位 ====
    178178{{{
    179179$ cd [$SOLR_HOME]/example/solr/conf
     
    186186# 80: <field name="content" type="text" stored="true" indexed="true"/>
    187187}}}
     188
     189==== 2.修改solrconfig.xml欄位 ====
     190{{{
     191$ cd [$SOLR_HOME]/example/solr/conf
     192$ vim solrconfig.xml
     193}}}
     194 * 修改如下:
     195{{{
     196#!text
     197把所有的<str name="df">text</str>改成<str name="df">content</str>
     198}}}
     199 * 說明:由於目前的配置是nutch針對solr前一版本所撰寫,新版的配置預設以由text改成content(詳情可見schema.xml中的defaultSearchField項目)
     200 * 完成此一步驟後,你的solr應該可以正常Query,只是相關的UI還需作細部調整。