Add indexing support using the lucene engine
This commit is contained in:
parent
60f81967b2
commit
a54a1a593b
|
@ -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'
|
||||
)
|
||||
)
|
||||
),
|
||||
);
|
||||
|
|
|
@ -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__
|
||||
|
|
|
@ -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…
Reference in New Issue