mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 11:07:00 +01:00
parent
f8c8161a3e
commit
f34202a82a
159 changed files with 3882 additions and 2716 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { ObjectWithId } from './object-with-id';
|
||||
|
||||
import { ObjectWithId } from './object-with-id'
|
||||
|
||||
export const MATCH_ANY = 1
|
||||
export const MATCH_ALL = 2
|
||||
|
|
@ -9,26 +8,48 @@ export const MATCH_FUZZY = 5
|
|||
export const MATCH_AUTO = 6
|
||||
|
||||
export const MATCHING_ALGORITHMS = [
|
||||
{id: MATCH_ANY, shortName: $localize`Any word`, name: $localize`Any: Document contains any of these words (space separated)`},
|
||||
{id: MATCH_ALL, shortName: $localize`All words`, name: $localize`All: Document contains all of these words (space separated)`},
|
||||
{id: MATCH_LITERAL, shortName: $localize`Exact match`, name: $localize`Exact: Document contains this string`},
|
||||
{id: MATCH_REGEX, shortName: $localize`Regular expression`, name: $localize`Regular expression: Document matches this regular expression`},
|
||||
{id: MATCH_FUZZY, shortName: $localize`Fuzzy word`, name: $localize`Fuzzy: Document contains a word similar to this word`},
|
||||
{id: MATCH_AUTO, shortName: $localize`Automatic`, name: $localize`Auto: Learn matching automatically`},
|
||||
{
|
||||
id: MATCH_ANY,
|
||||
shortName: $localize`Any word`,
|
||||
name: $localize`Any: Document contains any of these words (space separated)`,
|
||||
},
|
||||
{
|
||||
id: MATCH_ALL,
|
||||
shortName: $localize`All words`,
|
||||
name: $localize`All: Document contains all of these words (space separated)`,
|
||||
},
|
||||
{
|
||||
id: MATCH_LITERAL,
|
||||
shortName: $localize`Exact match`,
|
||||
name: $localize`Exact: Document contains this string`,
|
||||
},
|
||||
{
|
||||
id: MATCH_REGEX,
|
||||
shortName: $localize`Regular expression`,
|
||||
name: $localize`Regular expression: Document matches this regular expression`,
|
||||
},
|
||||
{
|
||||
id: MATCH_FUZZY,
|
||||
shortName: $localize`Fuzzy word`,
|
||||
name: $localize`Fuzzy: Document contains a word similar to this word`,
|
||||
},
|
||||
{
|
||||
id: MATCH_AUTO,
|
||||
shortName: $localize`Automatic`,
|
||||
name: $localize`Auto: Learn matching automatically`,
|
||||
},
|
||||
]
|
||||
|
||||
export interface MatchingModel extends ObjectWithId {
|
||||
name?: string
|
||||
|
||||
name?: string
|
||||
slug?: string
|
||||
|
||||
slug?: string
|
||||
match?: string
|
||||
|
||||
match?: string
|
||||
matching_algorithm?: number
|
||||
|
||||
matching_algorithm?: number
|
||||
|
||||
is_insensitive?: boolean
|
||||
|
||||
document_count?: number
|
||||
is_insensitive?: boolean
|
||||
|
||||
document_count?: number
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue