Getting bad request - "The remote server returned an error: (400) Bad Request.. Call: Status code 400 from: POST /infilesearch-v1/es_file/_search?typed_keys=true. ServerError: Type: search_phase_execution_exception Reason: "all shards failed"".
Works well when not using ingest pipeline processor plugin.
Code -
var ss = new List { "content_length", "content_type", "content" };
var tttt= client.PutPipeline("att", p => p
.Description("Document attachment pipeline")
.Processors(pr => pr
.Attachment<ES_File>(a => a
.Field(f => f.Content).IndexedCharacters(-1)
.TargetField(f => f.Attachment)
.Properties(ss)
)
.Remove<ES_File>(r => r
.Field(f => f.Content)
)
)
);
Error Query-
var res = client.Search<ES_File>(s => s.Index("fileIndexName")
.Query
(
q => q.Match(p => p.Field(z => z.Attachment.Content).Query("firm"))
&& q.Nested(e => e.Path(v => v.User).Query(h => h.Match(b => b.Field("User.userid").Query("1"))))));
