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 |
$query_str = join( ' AND ', |
309 |
$query_str = join( ' AND ', map { "($_)" } grep { $_ } ( $search_param_query_str, $self->_join_queries( $self->_convert_index_strings(@$limits) ) ) ); |
310 |
$search_param_query_str || (), |
|
|
311 |
$self->_join_queries( $self->_convert_index_strings(@$limits) ) || () ); |
312 |
|
310 |
|
313 |
# If there's no query on the left, let's remove the junk left behind |
311 |
# If there's no query on the left, let's remove the junk left behind |
314 |
$query_str =~ s/^ AND //; |
312 |
$query_str =~ s/^ AND //; |
315 |
- |
|
|