appbaseio / appbaseio/reactivesearch
ReactiveComponent type
- Vorherrschende Sprache
- JavaScript
- Sterne
- 4.9k
- Forks
- 478
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**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
}
]
}
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.