From da383ad78a74d37052d71c7d9c90622099117f59 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 11 Feb 2014 14:46:55 +0100 Subject: [PATCH] Disable content index, enable with PydioIndexContent prop --- .../e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo b/root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo index c1fceab..489d9c4 100644 --- a/root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo +++ b/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'; 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' ) )