Skip to content

MultiSearch Stopped Working In Latest Commits #655

@nariman-haghighi

Description

@nariman-haghighi

This code was functional over the last day or two but generates a 500 with the latest build:

var queryResults = new ElasticClient(SearchSettings).MultiSearch(b => {
                                    tags.ForEach(t => b.Search<LocalInstagramMedia>(s => s.From(0)
                                                                                          .Size(1)
                                                                                          .SortDescending(p => p.Likes.Count)
                                                                                          .Index("Media")
                                                                                          .Query(p => p.Term(f => f.Tags, t))));
                                    return b;
                               });

            return (from r in queryResults.GetResponses<LocalInstagramMedia>() select r.Documents.FirstOrDefault());

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