appbaseio / appbaseio/reactivesearch

ReactiveComponent type

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

Description

**Affected Projects**
React

**Library Version:** x.y.z
4.0.0-rc.10

**Describe the bug**
The React Component returns the empty value matches with the default value of type: "term", if I change it to "search" by postman it returns the expected result. Is there a way to change this?

**To Reproduce**
```js
POST http://localhost:8000/catalogodev/_reactivesearch
```
```js
{
"settings": {
"recordAnalytics": true,
"enableQueryRules": true,
"emptyQuery": true,
"suggestionAnalytics": true
},
"query": [
{
"id": "products",
"type": "term",
"dataField": [
"reactive_component_field"
],
"execute": true,
"react": {
"and": "products__internal"
},
"defaultQuery": {
"query": {
# query
}
]
}

```

**Expected behavior**
```js
{
"settings": {
"recordAnalytics": true,
"enableQueryRules": true,
"emptyQuery": true,
"suggestionAnalytics": true
},
"query": [
{
"id": "products",
"type": "search",
"dataField": [
"reactive_component_field"
],
"execute": true,
"react": {
"and": "products__internal"
},
"defaultQuery": {
# query
}
]
}

```

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.