Disable content index, enable with PydioIndexContent prop

This commit is contained in:
Daniel Berteaud 2014-02-11 14:46:55 +01:00
parent cb6175891b
commit da383ad78a
1 changed files with 3 additions and 1 deletions

View File

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