Skip to content

Instantly share code, notes, and snippets.

@monken
Forked from oalders/gist:1004348
Created June 2, 2011 12:40
Show Gist options
  • Save monken/1004349 to your computer and use it in GitHub Desktop.
Save monken/1004349 to your computer and use it in GitHub Desktop.
my $result = $self->es->search(
index => $self->index,
type => ['file'],
query => { "match_all" => {} },
"filter" => {
"and" => [
{ "exists" => { "field" => "file.documentation" } },
{ "term" => { "file.status" => "latest" } },
{ "prefix" => { "file.documentation" => "DBIx::" } }
]
},
scroll => '5m',
size => 10,
explain => 0,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment