Merge branch 'current-docs' into master

This commit is contained in:
Eike Kettner 2020-12-14 14:33:53 +01:00
commit 1a2b050990
2 changed files with 37 additions and 35 deletions

View File

@ -51,30 +51,29 @@ specified via a JSON structure in a part with name `meta`:
, skipDuplicates: Maybe Bool , skipDuplicates: Maybe Bool
, tags: Maybe StringList , tags: Maybe StringList
, fileFilter: Maybe String , fileFilter: Maybe String
, language: Maybe String
} }
``` ```
The `multiple` property is by default `true`. It means that each file - The `multiple` property is by default `true`. It means that each
in the upload request corresponds to a single item. An upload with 5 file in the upload request corresponds to a single item. An upload
files will result in 5 items created. If it is `false`, then docspell with 5 files will result in 5 items created. If it is `false`, then
will create just one item, that will then contain all files. docspell will create just one item, that will then contain all
files.
Furthermore, the direction of the document (one of `incoming` or - Furthermore, the direction of the document (one of `incoming` or
`outgoing`) can be given. It is optional, it can be left out or `outgoing`) can be given. It is optional, it can be left out or
`null`. `null`.
- A `folder` id can be specified. Each item created by this request
A `folder` id can be specified. Each item created by this request will will be placed into this folder. Errors are logged (for example, the
be placed into this folder. Errors are logged (for example, the folder folder may have been deleted before the task is executed) and the
may have been deleted before the task is executed) and the item is item is then not put into any folder.
then not put into any folder. - The `skipDuplicates` is optional and set to `false` if not
specified. It configures the processing task. If set to `true`, the
The `skipDuplicates` is optional and set to `false` if not specified. processing task will skip all input files that are already present
It configures the processing task. If set to `true`, the processing in docspell.
task will skip all input files that are already present in docspell. - The `tags` field can be used to provide tags that should be applied
automatically. The `StringList` is a json object containing one
The `tags` field can be used to provide tags that should be applied field `items` that is a list of strings:
automatically. The `StringList` is a json object containing one field
`items` that is a list of strings:
``` elm ``` elm
{ items: (List String) { items: (List String)
@ -82,13 +81,15 @@ automatically. The `StringList` is a json object containing one field
``` ```
Tags can be defined using their ids or names. Tags can be defined using their ids or names.
- Then a `fileFilter` field can be used to filter files from uploaded
Then a `fileFilter` field can be used to filter files from uploaded
archives. Say you upload a zip file and want only to include certain archives. Say you upload a zip file and want only to include certain
files, you could give a file filter like `*.pdf` to only select pdf files, you could give a file filter like `*.pdf` to only select pdf
files or `*.html|*.pdf` for selecting html and pdf files. This only files or `*.html|*.pdf` for selecting html and pdf files. This only
applies to archive files, like zip or e-mails (where this is applied applies to archive files, like zip or e-mails (where this is applied
to the attachments). to the attachments).
- The `language` is used for processing the document(s) contained in
the request. If not specified the collective's default language is
used.
# Endpoints # Endpoints

View File

@ -129,8 +129,9 @@ page](@/docs/webapp/customfields.md) for more information.
# Document Language # Document Language
An important setting is the language of your documents. This helps OCR An important setting is the language of your documents. This helps OCR
and text analysis. You can select between English and German and text analysis. You can select between English, German and French
currently. currently. The language can also specified with each [upload
request](@/docs/api/upload.md).
Go to the *Collective Settings* page and click *Document Go to the *Collective Settings* page and click *Document
Language*. This will set the lanugage for all your documents. It is Language*. This will set the lanugage for all your documents. It is