appbaseio / appbaseio/reactivesearch

Feature: Show warning when there is a mapping mismatch

未關閉
#341 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
JavaScript
星號
4.9k
分支
478
PR 合併指標
30 天內沒有已合併 PR

描述

**Issue Type:**

Enhancement

**Platform:**

Both

**Description:**

A common error most new users to the library make is setting an analyzed field as a `sortBy` or `sortOptions` prop, or a `dataField` prop in an aggregations based component.

We can show a warning message to the users in the console of something to the effect:

```
Warning: of expects a dataField / sortBy / sortOptions prop value of type `Keyword` or Numeric or Date. However, the passed field value is of type `Text`.
```

**Reactivesearch version:** x.y.z

2.5.1

**Anything else:**

Related discussion: #31

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。