2014-02-19 59 views
0

我正在查看dismax解析器的solrconfig.xml,並發現了一些值,如sku,manu和cat。這些是什麼?什麼是SOLR中的qf參數中的manu,sku和cat?

<requestHandler name="dismax" class="solr.SearchHandler" > 
     <lst name="defaults"> 
     <str name="defType">dismax</str> 
     <str name="echoParams">explicit</str> 
     <float name="tie">0.01</float> 
     <str name="qf"> 
      text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 
     </str> 
     <str name="pf"> 
      text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9 
     </str> 
     <str name="bf"> 
      popularity^0.5 recip(price,1,1000,1000)^0.3 
     </str> 
     <str name="fl"> 
      id,name,price,score 
     </str> 
     <str name="mm"> 
      2&lt;-1 5&lt;-2 6&lt;90% 
     </str> 
     <int name="ps">100</int> 
     <str name="q.alt">*:*</str> 
     <!-- example highlighter config, enable per-query with hl=true --> 
     <str name="hl.fl">text features name</str> 
     <!-- for this field, we want no fragmenting, just highlighting --> 
     <str name="f.name.hl.fragsize">0</str> 
     <!-- instructs Solr to return the field itself if no query terms are 
       found --> 
     <str name="f.name.hl.alternateField">name</str> 
     <str name="f.text.hl.fragmenter">regex</str> <!-- defined below --> 
     </lst> 
     </requestHandler> 

回答

0

這些是被搜索的領域:SKU(庫存單位),製造商和類別。

+0

我不明白=(什麼是庫存單位,製造商和類別? –

0

您可能正在查看作爲SAMPLE提供的solrconfig.xml,以便與docs一起在exampledocs /目錄中進行索引。

這些是示例文檔(和模式)包含的字段名稱。這就像solr的示例安裝。