Unconditionaly enable meta sources and lucene index
This commit is contained in:
parent
67f7bbd7d3
commit
d028d3059c
|
@ -43,21 +43,6 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){
|
|||
my $desc = $share->prop('Name') || $name;
|
||||
my $recycledir = (($share->prop('RecycleBin') || 'disabled') eq 'disabled') ?
|
||||
'' : $share->prop('RecycleBinDir') || 'Recycle Bin';
|
||||
my $meta = (($share->prop('AjaxplorerIndex') || 'disabled') eq 'disabled') ?
|
||||
'' : '"index.lucene" => array(
|
||||
"index_content" => "1",
|
||||
"index_meta_fields" => "anything_area",
|
||||
"repository_specific_keywords" => ""
|
||||
),' . "\n ";
|
||||
$meta .= (($share->prop('AjaxplorerMetadata') || 'disabled') eq 'disabled') ?
|
||||
'' : '"metastore.serial" => array(
|
||||
"METADATA_FILE_LOCATION" => "outside",
|
||||
),
|
||||
"meta.user" => array (
|
||||
"meta_fields" => "tags,stars_rate,css_label,anything_area",
|
||||
"meta_labels" => "Tags,Rate,Type,Note",
|
||||
),
|
||||
"meta.filehasher" => array(),';
|
||||
$OUT .=<<"EOF";
|
||||
|
||||
\$REPOSITORIES["$name"] = array(
|
||||
|
@ -74,7 +59,19 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){
|
|||
"PAGINATION_THRESHOLD" => 500,
|
||||
"PAGINATION_NUMBER" => 200,
|
||||
"META_SOURCES" => array(
|
||||
$meta
|
||||
"index.lucene" => array(
|
||||
"index_content" => "1",
|
||||
"index_meta_fields" => "anything_area",
|
||||
"repository_specific_keywords" => ""
|
||||
),
|
||||
"metastore.serial" => array(
|
||||
"METADATA_FILE_LOCATION" => "outside",
|
||||
),
|
||||
"meta.user" => array (
|
||||
"meta_fields" => "tags,stars_rate,css_label,anything_area",
|
||||
"meta_labels" => "Tags,Rate,Type,Note",
|
||||
),
|
||||
"meta.filehasher" => array(),
|
||||
)
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue