我場長期矢量方面:使用docValues計算中這樣定義我的Solr模式上串場
<field name="text_t" type="text_t" indexed="true" multiValued="true" termVectors="true" />
此字段用於搜索,但我們也算過這樣的場面。方面工作正常,但使用相當多的資源,可能是因爲與條件相反的指數必須(重新)倒置。在任何提交之後構建fieldValud-Cache非常慢並且存在嚴重的性能問題。閱讀我認爲的文檔,該docValues應該解決這個問題。但是,如果我添加docValues="true"
到外地的定義,我得到以下錯誤:
Field type text_t{class=org.apache.solr.schema.TextField,analyzer=org.apache.solr.analysis.TokenizerChain,args={class=solr.TextField, positionIncrementGap=100}} does not support doc values
任何暗示如何獲得docValues與具有termVector字符串領域工作?或者如何加速在這樣一個領域的面對?
docValues在TextField上不起作用。你可以在字符串字段上嘗試 – Mysterion