forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_core.termvectors.yaml
93 lines (93 loc) · 2.38 KB
/
_core.termvectors.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
openapi: 3.1.0
info:
title: Schemas of _core.termvectors category
description: Schemas of _core.termvectors category
version: 1.0.0
paths: {}
components:
schemas:
Filter:
type: object
properties:
max_doc_freq:
description: |-
Ignore words which occur in more than this many docs.
Defaults to unbounded.
type: number
max_num_terms:
description: Maximum number of terms that must be returned per field.
type: number
max_term_freq:
description: |-
Ignore words with more than this frequency in the source doc.
Defaults to unbounded.
type: number
max_word_length:
description: |-
The maximum word length above which words will be ignored.
Defaults to unbounded.
type: number
min_doc_freq:
description: Ignore terms which do not occur in at least this many docs.
type: number
min_term_freq:
description: Ignore words with less than this frequency in the source doc.
type: number
min_word_length:
description: The minimum word length below which words will be ignored.
type: number
TermVector:
type: object
properties:
field_statistics:
$ref: '#/components/schemas/FieldStatistics'
terms:
type: object
additionalProperties:
$ref: '#/components/schemas/Term'
required:
- field_statistics
- terms
FieldStatistics:
type: object
properties:
doc_count:
type: number
sum_doc_freq:
type: number
sum_ttf:
type: number
required:
- doc_count
- sum_doc_freq
- sum_ttf
Term:
type: object
properties:
doc_freq:
type: number
score:
type: number
term_freq:
type: number
tokens:
type: array
items:
$ref: '#/components/schemas/Token'
ttf:
type: number
required:
- term_freq
Token:
type: object
properties:
end_offset:
type: number
payload:
type: string
position:
type: number
start_offset:
type: number
required:
- position