昨天遇到個異常:spa
unexpected docvalues type NONE for field 'sortOrder' (expected=NUMERIC). Use UninvertingReader or index with docvalues. xml
解決了排序
我將schema.xml中對應那個字段的type設置爲了int,而int的類型定義是:ci
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/> rem
竟然能夠排序以及權重打分了~~~it