arch::get_elasticsearch_client
(
{searchengine => $or_self->{searchengine}, ownjson => 1}
);
# Sic, we re-read from DB to get the very same data we
# *real
ttern] : [];
my $s_key;
if ( $or_self->{cache} ) {
require JSON::XS;
$s_key = JSON::XS::encode_json($ar_pattern);
if ( my $ar_search_data = $or_self->{cache}->get("lis
ttern] : [];
my $s_key;
if ( $or_self->{cache} ) {
require JSON::XS;
$s_key = JSON::XS::encode_json($ar_pattern);
if ( my $ar_search_data = $or_self->{cache}->get("lis
ed_selects{$or_self} = {};
# deep copy hash
require JSON::XS;
$hr_search = JSON::XS::decode_json(
JSON::XS::encode_json( $hr_search )
);
my (
$s_limit,
$s
ed_selects{$or_self} = {};
# deep copy hash
require JSON::XS;
$hr_search = JSON::XS::decode_json(
JSON::XS::encode_json( $hr_search )
);
my (
$s_limit,
$s
strict;
use warnings;
use Data::Dumper;
sub json_true { bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) }
sub json_false { bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ) }
sub _sync_search_engine_p
Elasticsearch::get_elasticsearch_client
(
{searchengine => $or_sql->{searchengine}, ownjson => 1}
);
my $bulk = $or_es->bulk_helper(index => $s_index, type => $s_type);
# ===
"core_field_NAME" => { "match" => "NAME", "mapping" => { "type" => "keyword", "store" => json_true } } },
{ "core_field_VALUE" => { "match" => "VALUE", "mapping" => { "type" =