appbaseio / appbaseio/reactivesearch

Set script_fields in ReactiveList

オープン
#1,226 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
JavaScript
スター
4.9k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

**Affected Projects**
ReactiveSearch Web 3.0.3

**Is your feature request related to a problem? Please describe.**
I'd like to include scripted values in the results returned on ReactiveList using the script_fields property

**Describe the solution you'd like**
Support script_fields in defaultQuery or another property on the component

**Additional context**
I tried returning script_fields in defaultQuery and it works, but only if you don't have a sort defined. Once you add a sort, it no longer shows up.

```
defaultQuery={() => {
return {
"script_fields": {
"foo": {
"script": {
"id": "my_script_id",
"params": {
"things": this.props.things
}
}
}
}
};
}}
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。