solr搜索查询中facet.field = {!ex = fk3} brands_en_string的含义是什么?

时间:2017-05-11 07:21:35

标签: solr

我无法理解 facet.field = {!ex = fk3} brands_en_string 中的 fk3(fk18,fk13 ....)。我提到了apache solr doc,这里用一些例子说明 ex 用法。

Q = mainquery&安培; FQ =状态:公共&安培; FQ = DOCTYPE {标签= DT!}:{!EX = DT} PDF&安培;小面=真安培facet.field = DOCTYPE

注意:此处使用标记关键字创建 dt ,但 fk3 未在我的搜索查询中创建任何位置。它是否正常工作?< / p>

查询:

Q =((inStockFlag_boolean:真)+ OR +(ean_string:(男性%5E101.0))+ OR +(CODE_STRING:(男性%5E91.0))+ OR +(name_text_en:(男性%5E100.0 + OR +男人*%5E50.0 + OR +男性%7E%5E25.0))+ OR +(manufacturerName_text:(男性%5E80.0 + OR +男人*%5E40.0 + OR +男性%7E%5E20.0) )+ OR +(keywords_text_en:(男性%5E40.0 + OR +男人*%5E20.0 + OR +男性%7E%5E10.0))+ OR +(searchKeywords_text_en_mv:(男性%5E16.0))+ OR +(categoryName_text_en_mv (男性%5E20.0 + OR +男人*%5E10.0 + OR +男性%7E%5E5.0))+ OR +(description_text_en:(男性%5E11.0))+ OR +(variantSkuList_string_mv:(男性%5E91 0.0))+ OR +(styleCode_string:(男性%5E6.0))+ OR +(boostInventoryWithDCImprovedsearch_boolean:(真%5E50.0)))+ AND NOT ++ +(priceValue_inr_double:0)及拼写检查=真安培; spellcheck.dictionary = EN&放大器; spellcheck.collat​​e =真放; spellcheck.q =男子放; FQ =(((采用catalogId: “sslProductCatalog”)+和+(catalogVersion:在线)))及启动= 0&安培;行数= 25安培;小=真放,小点域= size_en_string&安培{EX = FK8!}; {!EX = fk18} facet.field = swatchColors_string_mv&安培; facet.field = allPromotions_string_mv&安培{EX = FK12!}; {!EX = fk14} facet.field = S tyle_en_string&安培; facet.field = price_inr_string&安培{EX = fk11!}; {!EX = fk13} facet.field = shopBySize_string_mv&安培; facet.field = categoryPath_string_mv&安培; {!EX = FK1} facet.field = giftAgeGroup_string&安培; facet.field = brandAutosuggestRefine_string&安培; facet.field = allCategories_string_mv和放大器; {!EX = fk16} facet.field = brand_string_mv和放大器; facet.field = genderAutoSuggestionImprovedSearch_string_mv&放{EX = FK6!}; facet.field = myallCategories_string_mv和放大器; facet.field = giftTo_string_mv&放{EX = FK7!};一面。字段= {EX = FK5!} boostInventoryWithDCImprovedsearch_boolean&安培; facet.field = occasion_string_mv&安培{EX = Fk0设置!}; {!EX = FK3} facet.field = brands_en_string&安培; facet.field = genderInBrandsAutoSuggestionImprovedSearch_string_mv&安培{EX = FK9!}; facet.field = {!EX = FK15} category_string_mv&安培;排序=得分+降序%2CinStockFlag_boolean +降序%2Cscore +降序&安培; facet.mincount = 1&安培; facet.limit = 500安培; facet.sort =计数

1 个答案:

答案 0 :(得分:1)

如果没有ex中提到的标记的过滤器,则它没有做任何有用的事情。

功能是在创建构面计数时排除过滤器,即获取计数,因为ex中提到的过滤器尚未应用。

这对于包含一整套文档计数的构面很有用,即使用户选择了其中一个方面:

[ ] Cars (329)
[ ] Real estate (42)
[x] Misc (1337)