如何根据条件在solr中获得应用提升

how to get apply boost in solr based on condition

我是 solr 的新手,我的 solr 中有 2 个字段说 displayName 和 foodType,目前我正在使用以下代码从 angular 查询

angular.element.ajax({
                url: "http://dev2.slim.in:8983/solr/food/select",
                data: {
                    "q": "displayName",
                    "wt": "json",
                    "start":0,
                    "rows":200

                },
                traditional: true,
                cache: true,
                async: true,
                dataType: 'jsonp',
                success: function (data) {
                    //and when we get the query back we
                    //stick the results in the scope
                    $scope.$apply(function () {
                        $scope.foodResults = data.response.docs;
                        console.log("result from solr is  ",$scope.foodResults)

                    });
                },
                jsonp: 'json.wrf'
            });

如果与查询匹配的 displayName 的字段 foodType 为 indian,那么我想将其提升到比其他文档更高的水平,该怎么做???

bq or boost 与 (e)dismax 查询解析器一起使用。

bq=foodType:indian^3