Bug 28884: (QA follow-up) Add some missing pod

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
(cherry picked from commit cc0e314f72)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Nick Clemens 2026-03-25 11:18:13 +00:00 committed by Jacob O'Mara
parent dfbba75c0f
commit beed97eec9
No known key found for this signature in database
1 changed files with 21 additions and 4 deletions

View File

@ -778,6 +778,19 @@ sub _convert_sort_fields {
} @sort_by;
}
=head2 _convert_index_fields
my ($conv) = $self->_convert_index_fields($field);
Converts the zebra-style sort index information into elasticsearch-style.
Convert according to our table, drop anything that doesn't convert.
If a field starts with mc- we save it as it's used (and removed) later
when joining things, to indicate we make it an 'OR' join.
(Sorry, this got a bit ugly after special cases were found.)
=cut
sub _convert_index_fields {
my ( $self, @indexes ) = @_;
@ -785,10 +798,6 @@ sub _convert_index_fields {
@indexes = grep { $_ ne q{} } @indexes; # Remove any blank indexes, i.e. keyword
# Convert according to our table, drop anything that doesn't convert.
# If a field starts with mc- we save it as it's used (and removed) later
# when joining things, to indicate we make it an 'OR' join.
# (Sorry, this got a bit ugly after special cases were found.)
map {
# Lower case all field names
my ( $f, $t ) = map( lc, split /,/ );
@ -1516,6 +1525,14 @@ sub _is_safe_to_auto_truncate {
return 1;
}
=head2 _rebuild_to_es_advanced_query
$res = _rebuild_to_es_advanced_query( $res );
Passed in a query, this function converts a geolocation query into the necessary format for Elasticsearch
=cut
sub _rebuild_to_es_advanced_query {
my ($res) = @_;
my $query_string = $res->{query}->{query_string};