Disable content index, enable with PydioIndexContent prop

tags/0.2.4_el5
Daniel Berteaud 11 years ago
parent cb6175891b
commit da383ad78a
  1. 4
      root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo

@ -59,6 +59,8 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){
'' : $share->prop('RecycleBinDir') || 'Recycle Bin'; '' : $share->prop('RecycleBinDir') || 'Recycle Bin';
my $history = $share->prop('PydioHistory') || 'disabled'; my $history = $share->prop('PydioHistory') || 'disabled';
$history = ($history eq 'enabled') ? '"meta.git" => array(),':''; $history = ($history eq 'enabled') ? '"meta.git" => array(),':'';
my $content = $share->prop('PydioIndexContent') || 'disabled';
$content = ($content eq 'enabled') ? 'true':'false';
$OUT .=<<"EOF"; $OUT .=<<"EOF";
\$REPOSITORIES["$name"] = array( \$REPOSITORIES["$name"] = array(
@ -84,7 +86,7 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){
"meta.filehasher" => array(), "meta.filehasher" => array(),
"meta.watch" => array(), "meta.watch" => array(),
"index.lucene" => array( "index.lucene" => array(
"index_content" => true, "index_content" => $content,
"index_meta_fields" => 'tags,anything_area' "index_meta_fields" => 'tags,anything_area'
) )
) )

Loading…
Cancel
Save