appbaseio / appbaseio/reactivesearch

ReactiveComponent type

Abierto
#2,213 2 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
JavaScript
Estrellas
4.9k
Forks
478
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.