I have indexed documents with this simplified structure:
public class Document
{
public string Id { get; set; }
public string x { get; set; }
}
I am searching them like this:
var initialResponse = client.Search<Document>(s => s.From(0)
.Size(100).Scroll(scrollTimeout)
.Query(q => q
.MatchPhrase(c => c
.Field(p => p.Attachment.Content)
.Analyzer("standard")
.Boost(1.1)
.Query(searchTerm)
)));
and then loop over the documents (more code here). This obviously take time and I wonder, if I could obtain all Ids or even better x values of the matched documents in one payload?
Thanks!