File tree Expand file tree Collapse file tree 3 files changed +30
-51
lines changed Expand file tree Collapse file tree 3 files changed +30
-51
lines changed Original file line number Diff line number Diff line change 17
17
* under the License.
18
18
*/
19
19
20
- import { TermVectorFilter } from '@global/termvectors/types'
20
+ import { Filter , TermVector } from '@global/termvectors/types'
21
21
import { Dictionary } from '@spec_utils/Dictionary'
22
22
import {
23
23
Field ,
@@ -29,13 +29,12 @@ import {
29
29
VersionType
30
30
} from '@_types/common'
31
31
import { long } from '@_types/Numeric'
32
- import { TermVector } from '@_types/termvectors/TermVector'
33
32
34
33
export class Operation {
35
34
doc : any
36
35
fields : Fields
37
36
field_statistics : boolean
38
- filter : TermVectorFilter
37
+ filter : Filter
39
38
_id : Id
40
39
_index : IndexName
41
40
offsets : boolean
Original file line number Diff line number Diff line change 17
17
* under the License.
18
18
*/
19
19
20
- import { integer } from '@_types/Numeric'
20
+ import { Dictionary } from '@spec_utils/Dictionary'
21
+ import { double , integer , long } from '@_types/Numeric'
22
+
23
+ export class TermVector {
24
+ field_statistics : FieldStatistics
25
+ terms : Dictionary < string , Term >
26
+ }
27
+
28
+ export class FieldStatistics {
29
+ doc_count : integer
30
+ sum_doc_freq : long
31
+ sum_ttf : long
32
+ }
33
+
34
+ export class Term {
35
+ doc_freq ?: integer
36
+ score ?: double
37
+ term_freq : integer
38
+ tokens : Token [ ]
39
+ ttf ?: integer
40
+ }
41
+
42
+ export class Token {
43
+ end_offset ?: integer
44
+ payload ?: string
45
+ position : integer
46
+ start_offset ?: integer
47
+ }
21
48
22
49
export class TermVectorFilter {
23
50
max_doc_freq ?: integer
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments