solr:使用函数创建过滤器查询 [英] solr: Create filter query with a function

查看:206
本文介绍了solr:使用函数创建过滤器查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的solr查询返回的其中一个值是一个计算值(使用solr 4.0)。该函数是

One of the values returned by my solr query is a calculated value (using solr 4.0). The function is

sum(product(2,preis12_0_3),preis34_0_3)

现在我想过滤由函数返回的值的结果集,但是出现此错误:

Now I would like to filter the resultset on the values returned by the function, but I get this error:

undefined field text

是否可以过滤在一个函数?

Is it possible to filter on a function? Any pointers in the right direction appreciated.

推荐答案

过滤器查询支持 FunctionRangeQParserPlugin

过滤查询示例:fq = {!frange l = 0 u = 2.2} sum(user_ranking,editor_ranking)

未定义的字段文本 - >将在schema.xml中定义字段的情况

undefined field text -> Would be the case for the field not being defined in the schema.xml

这篇关于solr:使用函数创建过滤器查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆