Skip to content

Nest 7.0.0-alpha1 is not taking virtual directory name while executing queries #3749

Closed
@jaspreetchahal

Description

@jaspreetchahal

I have elastic search hosted on IIS with url as "https://somedomain.com/VD1".
I am able to access above url in Postman and perform get put queries on it. Using Nest I am observing that queries get fired against "https://somedomain.com" instead of "https://somedomain.com/VD1".

I am trying to connect using below code
EsNode = new Uri("https://somedomain.com/VD1/");
EsConfig = new ConnectionSettings(EsNode);
EsClient = new ElasticClient(EsConfig);

var resp = EsClient.CreateIndex("profile", c => c
.Map(mp => mp )
.AutoMap())

error shows uri as https://somedomain.com/profle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions