[英]solr: Create filter query with a function
One of the values returned by my solr query is a calculated value (using solr 4.0). 我的solr查询返回的值之一是计算值(使用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.
任何正确方向的指针都会受到赞赏。
Filter query do support function queries with FunctionRangeQParserPlugin 过滤查询支持使用FunctionRangeQParserPlugin进行函数查询
eg Filter query example: fq={!frange l=0 u=2.2}sum(user_ranking,editor_ranking)
例如,
Filter query example: fq={!frange l=0 u=2.2}sum(user_ranking,editor_ranking)
undefined field text -> Would be the case for the field not being defined in the schema.xml undefined field text - >未在schema.xml中定义的字段
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.