close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Sep 27, 2012, 1:46:41 PM (14 years ago)
- Author:
-
shunfa
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v5
|
v6
|
|
| 175 | 175 | === 4. 修改Solr設定 === |
| 176 | 176 | * 根據官方文件步驟,無法順利完成"Query",當送出搜尋時,會出現text沒有定義之類的訊息,於是必須修改Solr相關的設定檔 |
| 177 | | ==== 1.修改相關xml設定欄位 ==== |
| | 177 | ==== 1.修改schema.xml欄位 ==== |
| 178 | 178 | {{{ |
| 179 | 179 | $ cd [$SOLR_HOME]/example/solr/conf |
| … |
… |
|
| 186 | 186 | # 80: <field name="content" type="text" stored="true" indexed="true"/> |
| 187 | 187 | }}} |
| | 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還需作細部調整。 |