You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am migrating from version 3.43.6 to 4.0.0-rc.10 and it is giving me an unusual error
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "The msearch request must be terminated by a newline [\n]"
}
],
"type": "illegal_argument_exception",
"reason": "The msearch request must be terminated by a newline [\n]"
},
"status": 400
}
To Reproduce
importReactfrom"react";import{ReactiveBase,SearchBox}from"@appbaseio/reactivesearch";functionList(){return(<ReactiveBaseurl="https://my-elastic.com"app="products"credentials="aaa:bbb"transformRequest={(props)=>({
...props,url: props.url.replace("_reactivesearch","_msearch")})}><SearchBoxcomponentId="searchbox"dataField={[{field: "products.code.keyword",weight: 20}]}placeholder="Search for books or authors"/></ReactiveBase>);}exportdefaultList;
The text was updated successfully, but these errors were encountered:
@jorgeju4rez While you're replacing the _reactivesearch part in the URL, the body is still for the ReactiveSearch API. Basically, starting v4, it's required for you to use the ReactiveSearch API service (cloud or self-hosted) to connect to Elasticsearch instead of making a direct _msearch call.
Affected Projects: React
Library Version: 4.0.0-rc.10
Describe the bug
I am migrating from version 3.43.6 to 4.0.0-rc.10 and it is giving me an unusual error
To Reproduce
The text was updated successfully, but these errors were encountered: