solr QueryElevationComponent中的字段特定搜索

时间:2016-02-18 14:17:32

标签: solr

是否可以在solr evalation组件中进行特定于字段的搜索?

现在我使用以下格式来获得结果。在这里我特意在简单的字段中搜索

http://test.com/multicore_3.6.1_10/product/select?q=simple:test&fl=id,product_id,title

所以我得到了正确的结果。

但是现在我想在搜索结果中增加一个文档。所以我使用了QueryElevationComponent并添加了elevate.xml。如果我使用以下查询,我会得到正确的结果。

http://test.com/multicore_3.6.1_10/product/elevate?q=test&fl=id,product_id,title

但这不是我要找的。我想在特定字段内搜索(字段名称是简单)。这可能。

1 个答案:

答案 0 :(得分:1)

据我所知,可以通过更改queryparser(dismax / edismax)和指定fieldname

来完成

DEFTYPE = dismax&安培; QF =字段名

修改QueryElevationComponent类。

相关问题