Lines 306-314
sub build_query_compat {
Link Here
|
306 |
# them into a structured ES query itself. Maybe later, though that'd be |
306 |
# them into a structured ES query itself. Maybe later, though that'd be |
307 |
# more robust. |
307 |
# more robust. |
308 |
$search_param_query_str = join( ' ', $self->_create_query_string(@search_params) ); |
308 |
$search_param_query_str = join( ' ', $self->_create_query_string(@search_params) ); |
|
|
309 |
if ($search_param_query_str) { |
310 |
$search_param_query_str = "($search_param_query_str)"; |
311 |
} |
312 |
my $search_param_limits_str = $self->_join_queries( $self->_convert_index_strings(@$limits) ); |
313 |
if ($search_param_limits_str) { |
314 |
$search_param_limits_str = "($search_param_limits_str)"; |
315 |
} |
309 |
$query_str = join( ' AND ', |
316 |
$query_str = join( ' AND ', |
310 |
$search_param_query_str || (), |
317 |
$search_param_query_str || (), |
311 |
$self->_join_queries( $self->_convert_index_strings(@$limits) ) || () ); |
318 |
$search_param_limits_str || () ); |
312 |
|
319 |
|
313 |
# If there's no query on the left, let's remove the junk left behind |
320 |
# If there's no query on the left, let's remove the junk left behind |
314 |
$query_str =~ s/^ AND //; |
321 |
$query_str =~ s/^ AND //; |
315 |
- |
|
|