Reactivesearch: Access problem to my Elastic cluster

Created on 22 Feb 2018  路  13Comments  路  Source: appbaseio/reactivesearch

Issue Type:
Bug

Description:
I tried to connect Reactive Search to my Elastic cluster with ReactiveBase components, but the problem is that I have an extra "/" in the url

Screenshots:
capture d ecran 2018-02-22 a 10 49 37 am

Reactivesearch version:
V2

Browser:
all

bug web

All 13 comments

It seems like you're missing app prop here maybe. What have you set ReactiveBase component props here?

app should be the index of your Elasticsearch cluster.

Hello @metagrover, thank you for the replay
There is my config in the ReactiveBase componenents

<ReactiveBase
        url="http://localhost:11000/ads"
        app="autos">
        <CategorySearch
            componentId="searchbox"
            dataField="name"
            categoryField="brand.raw"
            placeholder="Search for cars"
        />
      </ReactiveBase>

oh it seems like a bug in the library 馃槄. We will fix this in the next release. But for quick solution here, you can specify the type prop in ReactiveBase and it should work.

@ymzoughi I can see the extra slash, but does that affect a query in any way? I am able to run /_search against an ES cluster with an extra slash just fine.

@siddharthlatest it works on servers but not others

@ymzoughi Can you elaborate? Not sure I understand.

@siddharthlatest it works with my production cluster, but not with the local one

@ymzoughi What version of Elasticsearch does your local cluster run?

@siddharthlatest ES6

@ymzoughi I am not able to replicate the issue, tried with v6.2.2. If you can share the response or logs from ES, I can tell better. But my hunch is that the extra slash isn't causing the issue.

Update: I am able to replicate the issue when there is an extra slash after the type name.

@metagrover This happens when a type is present in the request and the request URI looks like /app/type//_search... when you access a raw Elasticsearch URI. Most middlewares should be able to correct the URI which explains why it's not happening on appbase.io service and @ymzoughi's production server.

Got it! Thanks for the details. Will fix this shortly 馃憤

Fixed in the latest appbase-js release and should be out in v2.3.0 :tada:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

willopez picture willopez  路  3Comments

vharitonsky picture vharitonsky  路  4Comments

gabzon picture gabzon  路  4Comments

carlopascual picture carlopascual  路  3Comments

mihalo picture mihalo  路  4Comments