Skip to content

DeleteByQuery not working for same query used in Search #1146

@PoOoZaQ

Description

@PoOoZaQ

Hey there,
Possibly i'm not writing the correct code, but I have a query I use to get docs using Search, and the same query doesn't work for DeleteByQuery.

Works:

var results = client.Search<JObject>(s => s.Query(q => q.Terms("string.ProgramId", ids))

Doesn't work:

var response = client.DeleteByQuery<string>(s => s.Query(q => q.Terms("string.ProgramId", ids)));
  • ids is List

The error i'm getting is:

Could not dispatch IElasticClient.DeleteByQuery() into any of the following paths:

  • /{index}/_query
  • /{index}/{type}/_query

Any ideas on what I'm doing wrong?

Thanks!

Metadata

Metadata

Assignees

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