Fork me on GitHub

NAME

add_document

Method for adding a document to the index.

SYNOPSIS

      $self->add_document((
        type     => ‘txt’,
        content   => $content,
        title   => $title,
        url     => $url,
        acl_allow => “Everyone”, # permissions
        last_modified => $last_modified, # unixtime
        attributes => {
                      ‘key1’ => ‘value1’,
                      ‘key2’ => ‘value2’
                    }
      ));

PARAMETERS

* type
* content
* title
* url
* acl_allow
* acl_denied
* last_modified
* attributes

ATTRIBUTES

If the attributes is one of Appointment, Customer, Document, Selection, Person, Project or Sale it is automatically added to the filer menu as an information type.

More information types can ba added by editing the Informasjonstype group in the /home/boitho/boithoTools/config/show_attributes.conf . Then restarting the searchd service.

Category:Perl connectors

Copyright © Searchdaimon AS. All rights reserved.