如何使用StreamFactory构建流表达式

时间:2019-06-19 19:12:22

标签: solr solrj solrcloud

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

<div class="col-md-4">
        <ng-container *ngFor="let item of assetFormatOptions | wfsort">
           <ng-container *ngTemplateOutlet="itemContainer; context:{item:item}"></ng-container>
        </ng-container>


<!--trying to access variable above-->
        <div *ngIf="submitted && assetFormat.errors && (assetFormat.touched || submitted && !assetFormat.valid)" class="alert alert--danger">
            <span class="error">This field is required.  
                <span class="icon-chevron-up"></span>
           </span>
        </div>
    </div>

 <ng-template #itemContainer let-item="item" *ngIf="!item['isHidden']">
                <div class="form-group form-group--inline">
                    <label class="radio">


<!--Created variable called assetFormat for validation purposes-->
                        <input type="radio" #assetFormat="ngModel" name="DE:Asset Format" value="{{item.value}}" ngModel required>
                        <span class="radio__input"></span>
                        <span class="radio__label hidden-xs">{{item.label}}</span>
                    </label>
                </div>
            </ng-template>

我的表情如下:

let(samples = search(wc_art,qt =“ / select”,q =“ al:next AND 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“),响应= col(samples,score),summary = describe(responses))

1 个答案:

答案 0 :(得分:0)

col函数中添加了Solr 7,因此,如果您的Solr安装年代早于该函数,则该函数将不可用。升级到最新版本。