appbaseio / appbaseio/reactivesearch

Feature: Show warning when there is a mapping mismatch

Open
#341 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
4.9k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.