Add indexing support using the lucene engine

tags/0.1.9
Daniel Berteaud 11 years ago
parent 60f81967b2
commit a54a1a593b
  1. 4
      root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_repositories.php/050repo
  2. 13
      root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All
  3. 2
      root/usr/bin/ajxppdftotext

@ -68,6 +68,10 @@ 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_content" => true,
"index_meta_fields" => 'tags,anything_area'
)
) )
), ),
); );

@ -50,6 +50,19 @@ $data->{'action.powerfs'} = {
'AJXP_PLUGIN_ENABLED' => '1' 'AJXP_PLUGIN_ENABLED' => '1'
}; };
$data->{'index.lucene'} = {
'QUERY_ANALYSER' => 'utf8num_insensitive',
'AJXP_PLUGIN_ENABLED' => '__true__',
'WILDCARD_LIMITATION' => '0',
'PDFTOTEXT' => '/usr/bin/ajxppdftotext',
'PARSE_CONTENT_HTML' => 'html,htm',
'PARSE_CONTENT_TXT' => 'txt',
'PARSE_CONTENT_MAX_SIZE' => '20000000',
'UNOCONV' => '/usr/bin/unoconv --server 127.0.0.1',
'index_content' => '__true__'
};
$data = serialize($data); $data = serialize($data);
# PHP::Serialization has now way to # PHP::Serialization has now way to
# represent a boolean, so lets replace __true__ # represent a boolean, so lets replace __true__

@ -0,0 +1,2 @@
#!/bin/bash
gs -q -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE -c save -f ps2ascii.ps $1 -c quit 2>/dev/null
Loading…
Cancel
Save