Lines 187-193
sub build_query_compat {
Link Here
|
187 |
while ( my ( $oand, $otor, $index ) = $ea->() ) { |
187 |
while ( my ( $oand, $otor, $index ) = $ea->() ) { |
188 |
next if ( !defined($oand) || $oand eq '' ); |
188 |
next if ( !defined($oand) || $oand eq '' ); |
189 |
$oand = $self->_clean_search_term($oand); |
189 |
$oand = $self->_clean_search_term($oand); |
190 |
$oand = $self->_truncate_terms($oand) if ($truncate); |
190 |
$oand = $self->_truncate_terms($oand) if ($truncate && $index->{type} ne 'ext'); |
191 |
push @search_params, { |
191 |
push @search_params, { |
192 |
operand => $oand, # the search terms |
192 |
operand => $oand, # the search terms |
193 |
operator => defined($otor) ? uc $otor : undef, # AND and so on |
193 |
operator => defined($otor) ? uc $otor : undef, # AND and so on |
Lines 712-718
sub _convert_index_fields {
Link Here
|
712 |
my ( $self, @indexes ) = @_; |
712 |
my ( $self, @indexes ) = @_; |
713 |
|
713 |
|
714 |
my %index_type_convert = |
714 |
my %index_type_convert = |
715 |
( __default => undef, phr => 'phrase', rtrn => 'right-truncate', 'st-year' => 'st-year' ); |
715 |
( __default => undef, phr => 'phrase', rtrn => 'right-truncate', 'st-year' => 'st-year', 'ext' => 'ext' ); |
716 |
|
716 |
|
717 |
# Convert according to our table, drop anything that doesn't convert. |
717 |
# Convert according to our table, drop anything that doesn't convert. |
718 |
# If a field starts with mc- we save it as it's used (and removed) later |
718 |
# If a field starts with mc- we save it as it's used (and removed) later |