首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何用StreamFactory构建流表达式

如何用StreamFactory构建流表达式
EN

Stack Overflow用户
提问于 2019-06-20 03:12:23
回答 1查看 88关注 0票数 0

我正在尝试为solr流构建let表达式,但它给出的错误提示是: java.io.IOException:无效的流表达式col(samples,score) -函数'col‘未知(未映射到有效的TupleStream)

StreamFactory = new StreamFactory().withDefaultZkHost(zookeeper)
        .withFunctionName("search", CloudSolrStream.class) 
        .withFunctionName("select", SelectStream.class)
        .withFunctionName("merge", MergeStream.class) 
        .withFunctionName("sort", SortStream.class) 
        .withFunctionName("tuple", TupStream.class) 
        .withFunctionName("rollup", RollupStream.class) 
        .withFunctionName("hashJoin", HashJoinStream.class)
        .withFunctionName("count", CountMetric.class) 
        .withFunctionName("facet", FacetStream.class) 
        .withFunctionName("sum", SumMetric.class) 
        .withFunctionName("unique", UniqueStream.class) 
        .withFunctionName("significantTerms", SignificantTermsStream.class)
        .withFunctionName("stats", StatsStream.class)
        .withFunctionName("innerJoin", InnerJoinStream.class) 
        .withFunctionName("issnMerge", IssnMergeStream.class) 
        .withFunctionName("intersect", IntersectStream.class)
        .withFunctionName("boostByEra", BoostBooksByEraExpression.class)
        .withFunctionName("determineRRec", DetermineRepresentativeRecord.class)
        .withFunctionName("plist", ParallelListStream.class)
        .withFunctionName("let", LetStream.class);

我的表达式如下:

let(samples=search(wc_art,qt="/select",q="al:next qt= al:generation",fq="_delete:false",fq="_namespace:default",fl="score,numdocs(),id",rows=10,fq="{!lucene q.op=OR}pa:(medline)",defType=edismax,q.op=AND,sort="score desc"),responses=col(样本,score),summary=describe(responses))

EN

回答 1

Stack Overflow用户

发布于 2019-06-21 03:30:56

col函数是在Solr7中添加的,因此如果您的Solr安装版本比该版本旧,则该函数将不可用。升级到更新的版本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56674410

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档