1
我們有像超過32KB的內容,我們無法索引內容如何索引Solr-5.2.1中的大內容?
請參考下面記錄
Rails日誌:
RSolr::Error::Http: RSolr::Error::Http - 400 Bad Request Error: {'responseHeader'=>{'status'=>400,'QTime'=>13},'error'=>{'msg'=>'Exception writing document id Article 872cc4f7-8731-4049-b889-85a040edb543 to the index; possible analysis error.','code'=>400}}
Solr的日誌:
INFO - 2015-11-04 15:00:30.772; [ collection] org.apache.solr.update.processor.LogUpdateProcessor; [collection] webapp=/solr path=/update params={wt=ruby} {} 0 27
ERROR - 2015-11-04 15:00:30.779; [ collection] org.apache.solr.common.SolrException; org.apache.solr.common.SolrException: Exception writing document id Article 872cc4f7-8731-4049-b889-85a040edb543 to the index; possible analysis error.
。 。 。
Caused by: java.lang.IllegalArgumentException: Document contains at least one immense term in field="content_textv" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[60, 112, 62, 83, 109, 97, 108, 108, 32, 97, 110, 100, 32, 77, 101, 100, 105, 117, 109, 32, 83, 99, 97, 108, 101, 32, 69, 110, 116, 101]...'
內容字段類型:
<field name="content_textv" type="strings"/>
....
<fieldType name="strings" class="solr.StrField" multiValued="true" sortMissingLast="true"/>
如何索引大內容是什麼?
你能提供的字段類型定義爲這個'content_textv'和部分樣本數據? – YoungHobbit
content_textv是字符串字段@YoungHobbit – VtrKanna