Skip to content

Default index was not set #646

@vovikdrg

Description

@vovikdrg

I need to delete items by query

 public bool Delete(string index, Guid id)
        {
            IDeleteResponse result = _client.DeleteByQuery<object>(dq => dq
                .Index(index)
                .AllTypes()
                .Query(q => q
                    .Filtered(descriptor =>
                    descriptor.Filter(
                        filterDescriptor =>
                            filterDescriptor.Not(descriptor1 => descriptor1.Term("indexProcessId", id.ToString())))))
                );

            return result.OK;
        }

As you see i am setting index in query, and i dont have any default index set on connection then i got exeption that now default index set. but i should not

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