Navigation

 ·   Wiki Home
 ·   Wiki Help
 ·   Categories
 ·   Title List
 ·   Uncategorized Pages
 ·   Random Page
 ·   Recent Changes
 ·   RSS
 ·   Atom
 ·   What Links Here

Active Members:

 ·  jlj1y5gsu0y

Search:

 

Create or Find Page:

 

View add document

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

Categories: