-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
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
Labels
No labels