Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
my $result = $self->es->search(
index => $self->index,
type => ['file'],
query => { "match_all" => {} },
"filter" => {
"and" => [
{ "exists" => { "field" => "file.documentation" } },
{ "term" => { "file.status" => "latest" } },
]
},
scroll => '5m',
size => 10,
explain => 0,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment