Skip to content

Commit e93f68a

Browse files
committed
tickets: ES syntax update for newer versions
1 parent 92c0858 commit e93f68a

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

bin/tickets.pl

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -124,26 +124,30 @@ ()
124124
my $scroll_release = $es_release->scroll(
125125
body => {
126126
query => {
127-
and => [
128-
{ term => { status => 'latest' } },
129-
{
130-
or => [
131-
{
132-
prefix => {
133-
"resources.bugtracker.web" =>
134-
'http://github.com/'
135-
}
127+
bool => {
128+
must => [
129+
{ term => { status => 'latest' } },
130+
{
131+
bool => {
132+
should => [
133+
{
134+
prefix => {
135+
"resources.bugtracker.web" =>
136+
'http://github.com/'
137+
},
138+
},
139+
{
140+
prefix => {
141+
"resources.bugtracker.web" =>
142+
'https://github.com/'
143+
},
144+
},
145+
],
136146
},
137-
{
138-
prefix => {
139-
"resources.bugtracker.web" =>
140-
'https://github.com/'
141-
}
142-
},
143-
],
144-
}
145-
],
146-
}
147+
},
148+
],
149+
},
150+
},
147151
},
148152
);
149153

0 commit comments

Comments
 (0)