Add indexing support using the lucene engine

This commit is contained in:
Daniel Berteaud 2013-10-03 18:38:50 +02:00
parent 60f81967b2
commit a54a1a593b
3 changed files with 19 additions and 0 deletions

View File

@ -68,6 +68,10 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){
),
"meta.filehasher" => array(),
"meta.watch" => array(),
"index.lucene" => array(
"index_content" => true,
"index_meta_fields" => 'tags,anything_area'
)
)
),
);

View File

@ -50,6 +50,19 @@ $data->{'action.powerfs'} = {
'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);
# PHP::Serialization has now way to
# represent a boolean, so lets replace __true__

View File

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