-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzcl_ibmc_discovery_v2.clas.abap
7563 lines (6680 loc) · 314 KB
/
zcl_ibmc_discovery_v2.clas.abap
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
* Copyright 2019, 2023 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
"! <p class="shorttext synchronized" lang="en">Discovery v2</p>
"! IBM Watson® Discovery is a cognitive search and content analytics engine
"! that you can add to applications to identify patterns, trends and actionable
"! insights to drive better decision-making. Securely unify structured and
"! unstructured data with pre-enriched content, and use a simplified query
"! language to eliminate the need for manual filtering of results. <br/>
class ZCL_IBMC_DISCOVERY_V2 DEFINITION
public
inheriting from ZCL_IBMC_SERVICE_EXT
create public .
public section.
types:
"! <p class="shorttext synchronized" lang="en">
"! A macro-average computes metric independently for each class</p>
"! and then takes the average. Class refers to the classification label that is
"! specified in the **answer_field**.
begin of T_MDL_EVALUATION_MACRO_AVERAGE,
"! A metric that measures how many of the overall documents are classified
"! correctly.
PRECISION type DOUBLE,
"! A metric that measures how often documents that should be classified into
"! certain classes are classified into those classes.
RECALL type DOUBLE,
"! A metric that measures whether the optimal balance between precision and recall
"! is reached. The F1 score can be interpreted as a weighted average of the
"! precision and recall values. An F1 score reaches its best value at 1 and worst
"! value at 0.
F1 type DOUBLE,
end of T_MDL_EVALUATION_MACRO_AVERAGE.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object that measures the metrics from a training run for</p>
"! each classification label separately.
begin of T_PER_CLASS_MODEL_EVALUATION,
"! Class name. Each class name is derived from a value in the **answer_field**.
NAME type STRING,
"! A metric that measures how many of the overall documents are classified
"! correctly.
PRECISION type DOUBLE,
"! A metric that measures how often documents that should be classified into
"! certain classes are classified into those classes.
RECALL type DOUBLE,
"! A metric that measures whether the optimal balance between precision and recall
"! is reached. The F1 score can be interpreted as a weighted average of the
"! precision and recall values. An F1 score reaches its best value at 1 and worst
"! value at 0.
F1 type DOUBLE,
end of T_PER_CLASS_MODEL_EVALUATION.
types:
"! <p class="shorttext synchronized" lang="en">
"! A micro-average aggregates the contributions of all classes</p>
"! to compute the average metric. Classes refers to the classification labels that
"! are specified in the **answer_field**.
begin of T_MDL_EVALUATION_MICRO_AVERAGE,
"! A metric that measures how many of the overall documents are classified
"! correctly.
PRECISION type DOUBLE,
"! A metric that measures how often documents that should be classified into
"! certain classes are classified into those classes.
RECALL type DOUBLE,
"! A metric that measures whether the optimal balance between precision and recall
"! is reached. The F1 score can be interpreted as a weighted average of the
"! precision and recall values. An F1 score reaches its best value at 1 and worst
"! value at 0.
F1 type DOUBLE,
end of T_MDL_EVALUATION_MICRO_AVERAGE.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object that contains information about a trained document</p>
"! classifier model.
begin of T_CLASSIFIER_MODEL_EVALUATION,
"! A micro-average aggregates the contributions of all classes to compute the
"! average metric. Classes refers to the classification labels that are specified
"! in the **answer_field**.
MICRO_AVERAGE type T_MDL_EVALUATION_MICRO_AVERAGE,
"! A macro-average computes metric independently for each class and then takes the
"! average. Class refers to the classification label that is specified in the
"! **answer_field**.
MACRO_AVERAGE type T_MDL_EVALUATION_MACRO_AVERAGE,
"! An array of evaluation metrics, one set of metrics for each class, where class
"! refers to the classification label that is specified in the **answer_field**.
PER_CLASS type STANDARD TABLE OF T_PER_CLASS_MODEL_EVALUATION WITH NON-UNIQUE DEFAULT KEY,
end of T_CLASSIFIER_MODEL_EVALUATION.
types:
"! <p class="shorttext synchronized" lang="en">
"! Information about a document classifier model.</p>
begin of T_DOCUMENT_CLASSIFIER_MODEL,
"! A unique identifier of the document classifier model.
MODEL_ID type STRING,
"! A human-readable name of the document classifier model.
NAME type STRING,
"! A description of the document classifier model.
DESCRIPTION type STRING,
"! The date that the document classifier model was created.
CREATED type DATETIME,
"! The date that the document classifier model was last updated.
UPDATED type DATETIME,
"! Name of the CSV file that contains the training data that is used to train the
"! document classifier model.
TRAINING_DATA_FILE type STRING,
"! Name of the CSV file that contains data that is used to test the document
"! classifier model. If no test data is provided, a subset of the training data is
"! used for testing purposes.
TEST_DATA_FILE type STRING,
"! The status of the training run.
STATUS type STRING,
"! An object that contains information about a trained document classifier model.
EVALUATION type T_CLASSIFIER_MODEL_EVALUATION,
"! A unique identifier of the enrichment that is generated by this document
"! classifier model.
ENRICHMENT_ID type STRING,
"! The date that the document classifier model was deployed.
DEPLOYED_AT type DATETIME,
end of T_DOCUMENT_CLASSIFIER_MODEL.
types:
"! <p class="shorttext synchronized" lang="en">
"! Relevancy training status information for this project.</p>
begin of T_PRJCT_LST_DTLS_RLVNCY_TRNNG1,
"! When the training data was updated.
DATA_UPDATED type STRING,
"! The total number of examples.
TOTAL_EXAMPLES type INTEGER,
"! When `true`, sufficient label diversity is present to allow training for this
"! project.
SUFFICIENT_LABEL_DIVERSITY type BOOLEAN,
"! When `true`, the relevancy training is in processing.
PROCESSING type BOOLEAN,
"! When `true`, the minimum number of examples required to train has been met.
MINIMUM_EXAMPLES_ADDED type BOOLEAN,
"! The time that the most recent successful training occurred.
SUCCESSFULLY_TRAINED type STRING,
"! When `true`, relevancy training is available when querying collections in the
"! project.
AVAILABLE type BOOLEAN,
"! The number of notices generated during the relevancy training.
NOTICES type INTEGER,
"! When `true`, the minimum number of queries required to train has been met.
MINIMUM_QUERIES_ADDED type BOOLEAN,
end of T_PRJCT_LST_DTLS_RLVNCY_TRNNG1.
types:
"! <p class="shorttext synchronized" lang="en">
"! Details about a specific project.</p>
begin of T_PROJECT_LIST_DETAILS,
"! The unique identifier of this project.
PROJECT_ID type STRING,
"! The human readable name of this project.
NAME type STRING,
"! The type of project.<br/>
"! <br/>
"! The `content_intelligence` type is a *Document Retrieval for Contracts* project
"! and the `other` type is a *Custom* project.<br/>
"! <br/>
"! The `content_mining` and `content_intelligence` types are available with Premium
"! plan managed deployments and installed deployments only.
TYPE type STRING,
"! Relevancy training status information for this project.
RELEVANCY_TRAINING_STATUS type T_PRJCT_LST_DTLS_RLVNCY_TRNNG1,
"! The number of collections configured in this project.
COLLECTION_COUNT type INTEGER,
end of T_PROJECT_LIST_DETAILS.
types:
"! <p class="shorttext synchronized" lang="en">
"! A list of projects in this instance.</p>
begin of T_LIST_PROJECTS_RESPONSE,
"! An array of project details.
PROJECTS type STANDARD TABLE OF T_PROJECT_LIST_DETAILS WITH NON-UNIQUE DEFAULT KEY,
end of T_LIST_PROJECTS_RESPONSE.
types:
"! <p class="shorttext synchronized" lang="en">
"! Result for the `pair` aggregation.</p>
begin of T_QUERY_PAIR_AGGR_RESULT,
"! Array of subaggregations of type `term`, `group_by`, `histogram`, or
"! `timeslice`. Each element of the matrix that is returned contains a
"! **relevancy** value that is calculated from the combination of each value from
"! the first and second aggregations.
AGGREGATIONS type STANDARD TABLE OF JSONOBJECT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_PAIR_AGGR_RESULT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Calculates relevancy values using combinations of document</p>
"! sets from results of the specified pair of aggregations.
begin of T_QUERY_AGGR_QUERY_PAIR_AGGR,
"! Specifies that the aggregation type is `pair`.
TYPE type STRING,
"! Specifies the first aggregation in the pair. The aggregation must be a `term`,
"! `group_by`, `histogram`, or `timeslice` aggregation type.
FIRST type STRING,
"! Specifies the second aggregation in the pair. The aggregation must be a `term`,
"! `group_by`, `histogram`, or `timeslice` aggregation type.
SECOND type STRING,
"! Indicates whether to include estimated matching result information.
SHW_ESTIMATED_MATCHING_RESULTS type BOOLEAN,
"! Indicates whether to include total matching documents information.
SHOW_TOTAL_MATCHING_DOCUMENTS type BOOLEAN,
"! An array of aggregations.
RESULTS type STANDARD TABLE OF T_QUERY_PAIR_AGGR_RESULT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_AGGR_QUERY_PAIR_AGGR.
types:
"! <p class="shorttext synchronized" lang="en">
"! Configuration for table retrieval.</p>
begin of T_QUERY_LARGE_TABLE_RESULTS,
"! Whether to enable table retrieval.
ENABLED type BOOLEAN,
"! Maximum number of tables to return.
COUNT type INTEGER,
end of T_QUERY_LARGE_TABLE_RESULTS.
types:
"! <p class="shorttext synchronized" lang="en">
"! Result information for a curated query.</p>
begin of T_CURATION_RESULT,
"! The document ID of the curated result.
DOCUMENT_ID type STRING,
"! The collection ID of the curated result.
COLLECTION_ID type STRING,
"! Text to return in the `passage_text` field when this curated document is
"! returned for the specified natural language query. If **passages.per_document**
"! is `true`, the text snippet that you specify is returned as the top passage
"! instead of the original passage that is chosen by search. Only one text snippet
"! can be specified per document. If **passages.max_per_document** is greater than
"! `1`, the snippet is returned first, followed by the passages that are chosen by
"! search.
SNIPPET type STRING,
end of T_CURATION_RESULT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Object that contains an array of curated results.</p>
begin of T_CURATED_RESULTS,
"! Array of curated results.
CURATED_RESULTS type STANDARD TABLE OF T_CURATION_RESULT WITH NON-UNIQUE DEFAULT KEY,
end of T_CURATED_RESULTS.
types:
"! <p class="shorttext synchronized" lang="en">
"! The numeric location of the identified element in the</p>
"! document, represented with two integers labeled `begin` and `end`.
begin of T_TABLE_ELEMENT_LOCATION,
"! The element's `begin` index.
BEGIN type LONG,
"! The element's `end` index.
END type LONG,
end of T_TABLE_ELEMENT_LOCATION.
types:
"! <p class="shorttext synchronized" lang="en">
"! Object that contains example response details for a training</p>
"! query.
begin of T_TRAINING_EXAMPLE,
"! The document ID associated with this training example.
DOCUMENT_ID type STRING,
"! The collection ID associated with this training example.
COLLECTION_ID type STRING,
"! The relevance of the training example.
RELEVANCE type INTEGER,
"! The date and time the example was created.
CREATED type DATETIME,
"! The date and time the example was updated.
UPDATED type DATETIME,
end of T_TRAINING_EXAMPLE.
types:
"! <p class="shorttext synchronized" lang="en">
"! Object that contains training query details.</p>
begin of T_TRAINING_QUERY,
"! The query ID associated with the training query.
QUERY_ID type STRING,
"! The natural text query that is used as the training query.
NATURAL_LANGUAGE_QUERY type STRING,
"! The filter used on the collection before the **natural_language_query** is
"! applied.
FILTER type STRING,
"! The date and time the query was created.
CREATED type DATETIME,
"! The date and time the query was updated.
UPDATED type DATETIME,
"! Array of training examples.
EXAMPLES type STANDARD TABLE OF T_TRAINING_EXAMPLE WITH NON-UNIQUE DEFAULT KEY,
end of T_TRAINING_QUERY.
types:
"! <p class="shorttext synchronized" lang="en">
"! A value in a key-value pair.</p>
begin of T_TABLE_CELL_VALUES,
"! The unique ID of the value in the table.
CELL_ID type STRING,
"! The numeric location of the identified element in the document, represented with
"! two integers labeled `begin` and `end`.
LOCATION type T_TABLE_ELEMENT_LOCATION,
"! The text content of the table cell without HTML markup.
TEXT type STRING,
end of T_TABLE_CELL_VALUES.
types:
"! <p class="shorttext synchronized" lang="en">
"! A key in a key-value pair.</p>
begin of T_TABLE_CELL_KEY,
"! The unique ID of the key in the table.
CELL_ID type STRING,
"! The numeric location of the identified element in the document, represented with
"! two integers labeled `begin` and `end`.
LOCATION type T_TABLE_ELEMENT_LOCATION,
"! The text content of the table cell without HTML markup.
TEXT type STRING,
end of T_TABLE_CELL_KEY.
types:
"! <p class="shorttext synchronized" lang="en">
"! Key-value pairs detected across cell boundaries.</p>
begin of T_TABLE_KEY_VALUE_PAIRS,
"! A key in a key-value pair.
KEY type T_TABLE_CELL_KEY,
"! A list of values in a key-value pair.
VALUE type STANDARD TABLE OF T_TABLE_CELL_VALUES WITH NON-UNIQUE DEFAULT KEY,
end of T_TABLE_KEY_VALUE_PAIRS.
types:
"! <p class="shorttext synchronized" lang="en">
"! Aggregation results. For more information about supported</p>
"! aggregation types, see the [product
"! documentation](/docs/discovery-data?topic=discovery-data-query-aggregations).
T_QUERY_SUB_AGGREGATION type JSONOBJECT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Curation status information.</p>
begin of T_CURATION_STATUS,
"! The curation ID of the curation.
CURATION_ID type STRING,
"! The current status of the specified curation.
STATUS type STRING,
end of T_CURATION_STATUS.
types:
"! <p class="shorttext synchronized" lang="en">
"! A query response that contains the matching documents for</p>
"! the preceding aggregations.
begin of T_QUERY_TOP_HITS_AGGR_RESULT,
"! Number of matching results.
MATCHING_RESULTS type INTEGER,
"! An array of the document results in an ordered list.
HITS type STANDARD TABLE OF JSONOBJECT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_TOP_HITS_AGGR_RESULT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Curated query and responses.</p>
begin of T_CURATION,
"! The curation ID of this curation.
CURATION_ID type STRING,
"! The curated natural language query.
NATURAL_LANGUAGE_QUERY type STRING,
"! Array of curated results.
CURATED_RESULTS type STANDARD TABLE OF T_CURATION_RESULT WITH NON-UNIQUE DEFAULT KEY,
end of T_CURATION.
types:
"! <p class="shorttext synchronized" lang="en">
"! Title label.</p>
begin of T_CMPNNT_STTNGS_FLDS_SHWN_TTL,
"! Use a specific field as the title.
FIELD type STRING,
end of T_CMPNNT_STTNGS_FLDS_SHWN_TTL.
types:
"! <p class="shorttext synchronized" lang="en">
"! Display settings for aggregations.</p>
begin of T_COMPONENT_SETTINGS_AGGR,
"! Identifier used to map aggregation settings to aggregation configuration.
NAME type STRING,
"! User-friendly alias for the aggregation.
LABEL type STRING,
"! Whether users is allowed to select more than one of the aggregation terms.
MULTIPLE_SELECTIONS_ALLOWED type BOOLEAN,
"! Type of visualization to use when rendering the aggregation.
VISUALIZATION_TYPE type STRING,
end of T_COMPONENT_SETTINGS_AGGR.
types:
"! <p class="shorttext synchronized" lang="en">
"! Body label.</p>
begin of T_CMPNNT_STTNGS_FLDS_SHWN_BODY,
"! Use the whole passage as the body.
USE_PASSAGE type BOOLEAN,
"! Use a specific field as the title.
FIELD type STRING,
end of T_CMPNNT_STTNGS_FLDS_SHWN_BODY.
types:
"! <p class="shorttext synchronized" lang="en">
"! Fields shown in the results section of the UI.</p>
begin of T_CMPNNT_SETTINGS_FIELDS_SHOWN,
"! Body label.
BODY type T_CMPNNT_STTNGS_FLDS_SHWN_BODY,
"! Title label.
TITLE type T_CMPNNT_STTNGS_FLDS_SHWN_TTL,
end of T_CMPNNT_SETTINGS_FIELDS_SHOWN.
types:
"! <p class="shorttext synchronized" lang="en">
"! The default component settings for this project.</p>
begin of T_COMPONENT_SETTINGS_RESPONSE,
"! Fields shown in the results section of the UI.
FIELDS_SHOWN type T_CMPNNT_SETTINGS_FIELDS_SHOWN,
"! Whether or not autocomplete is enabled.
AUTOCOMPLETE type BOOLEAN,
"! Whether or not structured search is enabled.
STRUCTURED_SEARCH type BOOLEAN,
"! Number or results shown per page.
RESULTS_PER_PAGE type INTEGER,
"! a list of component setting aggregations.
AGGREGATIONS type STANDARD TABLE OF T_COMPONENT_SETTINGS_AGGR WITH NON-UNIQUE DEFAULT KEY,
end of T_COMPONENT_SETTINGS_RESPONSE.
types:
"! <p class="shorttext synchronized" lang="en">
"! Object that contains suggested refinement settings.</p><br/>
"! <br/>
"! **Note**: The `suggested_refinements` parameter that identified dynamic facets
"! from the data is deprecated.
begin of T_DFLT_QRY_PRMS_SGGSTD_RFNMNTS,
"! When `true`, suggested refinements for the query are returned by default.
ENABLED type BOOLEAN,
"! The number of suggested refinements to return by default.
COUNT type INTEGER,
end of T_DFLT_QRY_PRMS_SGGSTD_RFNMNTS.
types:
"! <p class="shorttext synchronized" lang="en">
"! Default project query settings for table results.</p>
begin of T_DFLT_QRY_PARAMS_TAB_RESULTS,
"! When `true`, a table results for the query are returned by default.
ENABLED type BOOLEAN,
"! The number of table results to return by default.
COUNT type INTEGER,
"! The number of table results to include in each result document.
PER_DOCUMENT type INTEGER,
end of T_DFLT_QRY_PARAMS_TAB_RESULTS.
types:
"! <p class="shorttext synchronized" lang="en">
"! Default settings configuration for passage search options.</p>
begin of T_DFLT_QUERY_PARAMS_PASSAGES,
"! When `true`, a passage search is performed by default.
ENABLED type BOOLEAN,
"! The number of passages to return.
COUNT type INTEGER,
"! An array of field names to perform the passage search on.
FIELDS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
"! The approximate number of characters that each returned passage will contain.
CHARACTERS type INTEGER,
"! When `true` the number of passages that can be returned from a single document
"! is restricted to the *max_per_document* value.
PER_DOCUMENT type BOOLEAN,
"! The default maximum number of passages that can be taken from a single document
"! as the result of a passage query.
MAX_PER_DOCUMENT type INTEGER,
end of T_DFLT_QUERY_PARAMS_PASSAGES.
types:
"! <p class="shorttext synchronized" lang="en">
"! Default query parameters for this project.</p>
begin of T_DEFAULT_QUERY_PARAMS,
"! An array of collection identifiers to query. If empty or omitted all collections
"! in the project are queried.
COLLECTION_IDS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
"! Default settings configuration for passage search options.
PASSAGES type T_DFLT_QUERY_PARAMS_PASSAGES,
"! Default project query settings for table results.
TABLE_RESULTS type T_DFLT_QRY_PARAMS_TAB_RESULTS,
"! A string representing the default aggregation query for the project.
AGGREGATION type STRING,
"! Object that contains suggested refinement settings.<br/>
"! <br/>
"! **Note**: The `suggested_refinements` parameter that identified dynamic facets
"! from the data is deprecated.
SUGGESTED_REFINEMENTS type T_DFLT_QRY_PRMS_SGGSTD_RFNMNTS,
"! When `true`, a spelling suggestions for the query are returned by default.
SPELLING_SUGGESTIONS type BOOLEAN,
"! When `true`, highlights for the query are returned by default.
HIGHLIGHT type BOOLEAN,
"! The number of document results returned by default.
COUNT type INTEGER,
"! A comma separated list of document fields to sort results by default.
SORT type STRING,
"! An array of field names to return in document results if present by default.
RETURN type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
end of T_DEFAULT_QUERY_PARAMS.
types:
"! <p class="shorttext synchronized" lang="en">
"! Detailed information about the specified project.</p>
begin of T_PROJECT_DETAILS,
"! The unique identifier of this project.
PROJECT_ID type STRING,
"! The human readable name of this project.
NAME type STRING,
"! The type of project.<br/>
"! <br/>
"! The `content_intelligence` type is a *Document Retrieval for Contracts* project
"! and the `other` type is a *Custom* project.<br/>
"! <br/>
"! The `content_mining` and `content_intelligence` types are available with Premium
"! plan managed deployments and installed deployments only.
TYPE type STRING,
"! Relevancy training status information for this project.
RELEVANCY_TRAINING_STATUS type T_PRJCT_LST_DTLS_RLVNCY_TRNNG1,
"! The number of collections configured in this project.
COLLECTION_COUNT type INTEGER,
"! Default query parameters for this project.
DEFAULT_QUERY_PARAMETERS type T_DEFAULT_QUERY_PARAMS,
end of T_PROJECT_DETAILS.
types:
"! <p class="shorttext synchronized" lang="en">
"! Information returned after an uploaded document is accepted.</p>
begin of T_DOCUMENT_ACCEPTED,
"! The unique identifier of the ingested document.
DOCUMENT_ID type STRING,
"! Status of the document in the ingestion process. A status of `processing` is
"! returned for documents that are ingested with a *version* date before
"! `2019-01-01`. The `pending` status is returned for all others.
STATUS type STRING,
end of T_DOCUMENT_ACCEPTED.
types:
"! <p class="shorttext synchronized" lang="en">
"! Result for the `trend` aggregation.</p>
begin of T_QUERY_TREND_AGGR_RESULT,
"! Array of subaggregations of type `term` or `group_by` and `timeslice`. Each
"! element of the matrix that is returned contains a **trend_indicator** that is
"! calculated from the combination of each aggregation value and segment of time.
AGGREGATIONS type STANDARD TABLE OF JSONOBJECT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_TREND_AGGR_RESULT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Detects sharp and unexpected changes in the frequency of a</p>
"! facet or facet value over time based on the past history of frequency changes
"! of the facet value.
begin of T_QUERY_TREND_AGGREGATION,
"! Specifies that the aggregation type is `trend`.
TYPE type STRING,
"! Specifies the `term` or `group_by` aggregation for the facet that you want to
"! analyze.
FACET type STRING,
"! Specifies the `timeslice` aggregation that defines the time segments.
TIME_SEGMENTS type STRING,
"! Indicates whether to include estimated matching result information.
SHW_ESTIMATED_MATCHING_RESULTS type BOOLEAN,
"! Indicates whether to include total matching documents information.
SHOW_TOTAL_MATCHING_DOCUMENTS type BOOLEAN,
"! An array of aggregations.
RESULTS type STANDARD TABLE OF T_QUERY_TREND_AGGR_RESULT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_TREND_AGGREGATION.
types:
"! <p class="shorttext synchronized" lang="en">
"! Object that contains a potential answer to the specified</p>
"! query.
begin of T_RESULT_PASSAGE_ANSWER,
"! Answer text for the specified query as identified by Discovery.
ANSWER_TEXT type STRING,
"! The position of the first character of the extracted answer in the originating
"! field.
START_OFFSET type INTEGER,
"! The position after the last character of the extracted answer in the originating
"! field.
END_OFFSET type INTEGER,
"! An estimate of the probability that the answer is relevant.
CONFIDENCE type DOUBLE,
end of T_RESULT_PASSAGE_ANSWER.
types:
"! <p class="shorttext synchronized" lang="en">
"! A passage query response.</p>
begin of T_QUERY_RESPONSE_PASSAGE,
"! The content of the extracted passage.
PASSAGE_TEXT type STRING,
"! The confidence score of the passage's analysis. A higher score indicates
"! greater confidence. The score is used to rank the passages from all documents
"! and is returned only if **passages.per_document** is `false`.
PASSAGE_SCORE type DOUBLE,
"! The unique identifier of the ingested document.
DOCUMENT_ID type STRING,
"! The unique identifier of the collection.
COLLECTION_ID type STRING,
"! The position of the first character of the extracted passage in the originating
"! field.
START_OFFSET type INTEGER,
"! The position after the last character of the extracted passage in the
"! originating field.
END_OFFSET type INTEGER,
"! The label of the field from which the passage has been extracted.
FIELD type STRING,
"! An array of extracted answers to the specified query. Returned for natural
"! language queries when **passages.per_document** is `false`.
ANSWERS type STANDARD TABLE OF T_RESULT_PASSAGE_ANSWER WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_RESPONSE_PASSAGE.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object that contains configuration settings for a</p>
"! document classifier model training run.
begin of T_DOC_CLASSIFIER_MODEL_TRAIN,
"! The name of the document classifier model.
NAME type STRING,
"! A description of the document classifier model.
DESCRIPTION type STRING,
"! A tuning parameter in an optimization algorithm that determines the step size at
"! each iteration of the training process. It influences how much of any newly
"! acquired information overrides the existing information, and therefore is said
"! to represent the speed at which a machine learning model learns. The default
"! value is `0.1`.
LEARNING_RATE type DOUBLE,
"! Avoids overfitting by shrinking the coefficient of less important features to
"! zero, which removes some features altogether. You can specify many values for
"! hyper-parameter optimization. The default value is `[0.000001]`.
L1_REGULARIZATION_STRENGTHS type STANDARD TABLE OF DOUBLE WITH NON-UNIQUE DEFAULT KEY,
"! A method you can apply to avoid overfitting your model on the training data. You
"! can specify many values for hyper-parameter optimization. The default value is
"! `[0.000001]`.
L2_REGULARIZATION_STRENGTHS type STANDARD TABLE OF DOUBLE WITH NON-UNIQUE DEFAULT KEY,
"! Maximum number of training steps to complete. This setting is useful if you need
"! the training process to finish in a specific time frame to fit into an
"! automated process. The default value is ten million.
TRAINING_MAX_STEPS type INTEGER,
"! Stops the training run early if the improvement ratio is not met by the time the
"! process reaches a certain point. The default value is `0.00001`.
IMPROVEMENT_RATIO type DOUBLE,
end of T_DOC_CLASSIFIER_MODEL_TRAIN.
types:
"! <p class="shorttext synchronized" lang="en">
"! Calculates relevancy values using combinations of document</p>
"! sets from results of the specified pair of aggregations.
begin of T_QUERY_PAIR_AGGREGATION,
"! Specifies that the aggregation type is `pair`.
TYPE type STRING,
"! Specifies the first aggregation in the pair. The aggregation must be a `term`,
"! `group_by`, `histogram`, or `timeslice` aggregation type.
FIRST type STRING,
"! Specifies the second aggregation in the pair. The aggregation must be a `term`,
"! `group_by`, `histogram`, or `timeslice` aggregation type.
SECOND type STRING,
"! Indicates whether to include estimated matching result information.
SHW_ESTIMATED_MATCHING_RESULTS type BOOLEAN,
"! Indicates whether to include total matching documents information.
SHOW_TOTAL_MATCHING_DOCUMENTS type BOOLEAN,
"! An array of aggregations.
RESULTS type STANDARD TABLE OF T_QUERY_PAIR_AGGR_RESULT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_PAIR_AGGREGATION.
types:
"! <p class="shorttext synchronized" lang="en">
"! Returns a scalar calculation across all documents for the</p>
"! field specified. Possible calculations include min, max, sum, average, and
"! unique_count.
begin of T_QUERY_CALCULATION_AGGR,
"! Specifies the calculation type, such as 'average`, `max`, `min`, `sum`, or
"! `unique_count`.
TYPE type STRING,
"! The field to perform the calculation on.
FIELD type STRING,
"! The value of the calculation.
VALUE type DOUBLE,
end of T_QUERY_CALCULATION_AGGR.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object that describes the Smart Document Understanding</p>
"! model for a collection.
begin of T_CLLCTN_DTLS_SMRT_DOC_UNDRST1,
"! When `true`, smart document understanding conversion is enabled for the
"! collection.
ENABLED type BOOLEAN,
"! Specifies the type of Smart Document Understanding (SDU) model that is enabled
"! for the collection. The following types of models are supported:<br/>
"! <br/>
"! * `custom`: A user-trained model is applied.<br/>
"! <br/>
"! * `pre_trained`: A pretrained model is applied. This type of model is applied
"! automatically to *Document Retrieval for Contracts* projects.<br/>
"! <br/>
"! * `text_extraction`: An SDU model that extracts text and metadata from the
"! content. This model is enabled in collections by default regardless of the
"! types of documents in the collection (as long as the service plan supports SDU
"! models).<br/>
"! <br/>
"! You can apply user-trained or pretrained models to collections from the
"! *Identify fields* page of the product user interface. For more information, see
"! [the product
"! documentation](/docs/discovery-data?topic=discovery-data-configuring-fields).
MODEL type STRING,
end of T_CLLCTN_DTLS_SMRT_DOC_UNDRST1.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object describing an enrichment for a collection.</p>
begin of T_COLLECTION_ENRICHMENT,
"! The unique identifier of this enrichment. For more information about how to
"! determine the ID of an enrichment, see [the product
"! documentation](/docs/discovery-data?topic=discovery-data-manage-enrichments#enr
"! ichments-ids).
ENRICHMENT_ID type STRING,
"! An array of field names that the enrichment is applied to.<br/>
"! <br/>
"! If you apply an enrichment to a field from a JSON file, the data is converted to
"! an array automatically, even if the field contains a single value.
FIELDS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
end of T_COLLECTION_ENRICHMENT.
types:
"! <p class="shorttext synchronized" lang="en">
"! A collection for storing documents.</p>
begin of T_COLLECTION_DETAILS,
"! The unique identifier of the collection.
COLLECTION_ID type STRING,
"! The name of the collection.
NAME type STRING,
"! A description of the collection.
DESCRIPTION type STRING,
"! The date that the collection was created.
CREATED type DATETIME,
"! The language of the collection. For a list of supported languages, see the
"! [product
"! documentation](/docs/discovery-data?topic=discovery-data-language-support).
LANGUAGE type STRING,
"! An array of enrichments that are applied to this collection. To get a list of
"! enrichments that are available for a project, use the [List
"! enrichments](#listenrichments) method.<br/>
"! <br/>
"! If no enrichments are specified when the collection is created, the default
"! enrichments for the project type are applied. For more information about
"! project default settings, see the [product
"! documentation](/docs/discovery-data?topic=discovery-data-project-defaults).
ENRICHMENTS type STANDARD TABLE OF T_COLLECTION_ENRICHMENT WITH NON-UNIQUE DEFAULT KEY,
"! An object that describes the Smart Document Understanding model for a
"! collection.
SMART_DOCUMENT_UNDERSTANDING type T_CLLCTN_DTLS_SMRT_DOC_UNDRST1,
end of T_COLLECTION_DETAILS.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object with details for creating federated document</p>
"! classifier models.
begin of T_CLASSIFIER_FEDERATED_MODEL,
"! Name of the field that contains the values from which multiple classifier models
"! are defined. For example, you can specify a field that lists product lines to
"! create a separate model per product line.
FIELD type STRING,
end of T_CLASSIFIER_FEDERATED_MODEL.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object that describes enrichments that are applied to the</p>
"! training and test data that is used by the document classifier.
begin of T_DOC_CLASSIFIER_ENRICHMENT,
"! A unique identifier of the enrichment.
ENRICHMENT_ID type STRING,
"! An array of field names where the enrichment is applied.
FIELDS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
end of T_DOC_CLASSIFIER_ENRICHMENT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Information about a document classifier.</p>
begin of T_DOCUMENT_CLASSIFIER,
"! A unique identifier of the document classifier.
CLASSIFIER_ID type STRING,
"! A human-readable name of the document classifier.
NAME type STRING,
"! A description of the document classifier.
DESCRIPTION type STRING,
"! The date that the document classifier was created.
CREATED type DATETIME,
"! The language of the training data that is associated with the document
"! classifier. Language is specified by using the ISO 639-1 language code, such as
"! `en` for English or `ja` for Japanese.
LANGUAGE type STRING,
"! An array of enrichments to apply to the data that is used to train and test the
"! document classifier. The output from the enrichments is used as features by the
"! classifier to classify the document content both during training and at run
"! time.
ENRICHMENTS type STANDARD TABLE OF T_DOC_CLASSIFIER_ENRICHMENT WITH NON-UNIQUE DEFAULT KEY,
"! An array of fields that are used to train the document classifier. The same set
"! of fields must exist in the training data, the test data, and the documents
"! where the resulting document classifier enrichment is applied at run time.
RECOGNIZED_FIELDS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
"! The name of the field from the training and test data that contains the
"! classification labels.
ANSWER_FIELD type STRING,
"! Name of the CSV file with training data that is used to train the document
"! classifier.
TRAINING_DATA_FILE type STRING,
"! Name of the CSV file with data that is used to test the document classifier. If
"! no test data is provided, a subset of the training data is used for testing
"! purposes.
TEST_DATA_FILE type STRING,
"! An object with details for creating federated document classifier models.
FEDERATED_CLASSIFICATION type T_CLASSIFIER_FEDERATED_MODEL,
end of T_DOCUMENT_CLASSIFIER.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object that contains a list of document classifier</p>
"! definitions.
begin of T_DOCUMENT_CLASSIFIERS,
"! An array of document classifier definitions.
CLASSIFIERS type STANDARD TABLE OF T_DOCUMENT_CLASSIFIER WITH NON-UNIQUE DEFAULT KEY,
end of T_DOCUMENT_CLASSIFIERS.
types:
"! <p class="shorttext synchronized" lang="en">
"! Top value result for the `term` aggregation.</p>
begin of T_QUERY_TERM_AGGR_RESULT,
"! Value of the field with a nonzero frequency in the document set.
KEY type STRING,
"! Number of documents that contain the 'key'.
MATCHING_RESULTS type INTEGER,
"! The relevancy score for this result. Returned only if `relevancy:true` is
"! specified in the request.
RELEVANCY type DOUBLE,
"! Number of documents in the collection that contain the term in the specified
"! field. Returned only when `relevancy:true` is specified in the request.
TOTAL_MATCHING_DOCUMENTS type INTEGER,
"! Number of documents that are estimated to match the query and also meet the
"! condition. Returned only when `relevancy:true` is specified in the request.
ESTIMATED_MATCHING_RESULTS type DOUBLE,
"! An array of subaggregations. Returned only when this aggregation is combined
"! with other aggregations in the request or is returned as a subaggregation.
AGGREGATIONS type STANDARD TABLE OF JSONOBJECT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_TERM_AGGR_RESULT.
types:
"! <p class="shorttext synchronized" lang="en">
"! An array of values, each being the `id` value of a column</p>
"! header that is applicable to the current cell.
begin of T_TABLE_COLUMN_HEADER_IDS,
"! The `id` value of a column header.
ID type STRING,
end of T_TABLE_COLUMN_HEADER_IDS.
types:
"! <p class="shorttext synchronized" lang="en">
"! A list of values in a key-value pair.</p>
T_TABLE_CELL_VALUE type STANDARD TABLE OF T_TABLE_CELL_VALUES WITH NON-UNIQUE DEFAULT KEY.
types:
"! <p class="shorttext synchronized" lang="en">
"! A timeslice interval segment.</p>
begin of T_QUERY_TIMESLICE_AGGR_RESULT,
"! String date value of the upper bound for the timeslice interval in ISO-8601
"! format.
KEY_AS_STRING type STRING,
"! Numeric date value of the upper bound for the timeslice interval in UNIX
"! milliseconds since epoch.
KEY type LONG,
"! Number of documents with the specified key as the upper bound.
MATCHING_RESULTS type LONG,
"! An array of subaggregations. Returned only when this aggregation is returned as
"! a subaggregation.
AGGREGATIONS type STANDARD TABLE OF JSONOBJECT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_TIMESLICE_AGGR_RESULT.
types:
"! <p class="shorttext synchronized" lang="en">
"! A specialized histogram aggregation that uses dates to</p>
"! create interval segments.
begin of T_QRY_AGGR_QRY_TIMESLICE_AGGR,
"! Specifies that the aggregation type is `timeslice`.
TYPE type STRING,
"! The date field name used to create the timeslice.
FIELD type STRING,
"! The date interval value. Valid values are seconds, minutes, hours, days, weeks,
"! and years.
INTERVAL type STRING,
"! Identifier that can optionally be specified in the query request of this
"! aggregation.
NAME type STRING,
"! Array of aggregation results.
RESULTS type STANDARD TABLE OF T_QUERY_TIMESLICE_AGGR_RESULT WITH NON-UNIQUE DEFAULT KEY,
end of T_QRY_AGGR_QRY_TIMESLICE_AGGR.
types:
"! <p class="shorttext synchronized" lang="en">
"! Object that contains field details.</p>
begin of T_FIELD,
"! The name of the field.
FIELD type STRING,
"! The type of the field.
TYPE type STRING,
"! The collection Id of the collection where the field was found.
COLLECTION_ID type STRING,
end of T_FIELD.
types:
"! <p class="shorttext synchronized" lang="en">
"! Finds results from documents that are similar to documents</p>
"! of interest. Use this parameter to add a *More like these* function to your
"! search. You can include this parameter with or without a **query**, **filter**
"! or **natural_language_query** parameter.
begin of T_QUERY_LARGE_SIMILAR,
"! When `true`, includes documents in the query results that are similar to
"! documents you specify.
ENABLED type BOOLEAN,
"! The list of documents of interest. Required if **enabled** is `true`.
DOCUMENT_IDS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
"! Looks for similarities in the specified subset of fields in the documents. If
"! not specified, all of the document fields are used.
FIELDS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_LARGE_SIMILAR.
types:
"! <p class="shorttext synchronized" lang="en">
"! Histogram numeric interval result.</p>
begin of T_QUERY_HISTOGRAM_AGGR_RESULT,
"! The value of the upper bound for the numeric segment.
KEY type LONG,
"! Number of documents with the specified key as the upper bound.
MATCHING_RESULTS type INTEGER,
"! An array of subaggregations. Returned only when this aggregation is returned as
"! a subaggregation.
AGGREGATIONS type STANDARD TABLE OF JSONOBJECT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_HISTOGRAM_AGGR_RESULT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Numeric interval segments to categorize documents by using</p>
"! field values from a single numeric field to describe the category.
begin of T_QUERY_HISTOGRAM_AGGREGATION,
"! Specifies that the aggregation type is `histogram`.
TYPE type STRING,
"! The numeric field name used to create the histogram.
FIELD type STRING,
"! The size of the sections that the results are split into.
INTERVAL type INTEGER,
"! Identifier that can optionally be specified in the query request of this
"! aggregation.
NAME type STRING,
"! Array of numeric intervals.
RESULTS type STANDARD TABLE OF T_QUERY_HISTOGRAM_AGGR_RESULT WITH NON-UNIQUE DEFAULT KEY,
end of T_QUERY_HISTOGRAM_AGGREGATION.
types:
"! <p class="shorttext synchronized" lang="en">
"! An array of values, each being the `id` value of a row</p>
"! header that is applicable to this body cell.
begin of T_TABLE_ROW_HEADER_IDS,
"! The `id` values of a row header.
ID type STRING,
end of T_TABLE_ROW_HEADER_IDS.
types:
"! <p class="shorttext synchronized" lang="en">
"! Relevancy training status information for this project.</p>
begin of T_PROJECT_REL_TRAIN_STATUS,
"! When the training data was updated.
DATA_UPDATED type STRING,
"! The total number of examples.
TOTAL_EXAMPLES type INTEGER,
"! When `true`, sufficient label diversity is present to allow training for this
"! project.
SUFFICIENT_LABEL_DIVERSITY type BOOLEAN,
"! When `true`, the relevancy training is in processing.
PROCESSING type BOOLEAN,
"! When `true`, the minimum number of examples required to train has been met.
MINIMUM_EXAMPLES_ADDED type BOOLEAN,
"! The time that the most recent successful training occurred.
SUCCESSFULLY_TRAINED type STRING,
"! When `true`, relevancy training is available when querying collections in the
"! project.
AVAILABLE type BOOLEAN,
"! The number of notices generated during the relevancy training.
NOTICES type INTEGER,
"! When `true`, the minimum number of queries required to train has been met.
MINIMUM_QUERIES_ADDED type BOOLEAN,
end of T_PROJECT_REL_TRAIN_STATUS.
types:
"! <p class="shorttext synchronized" lang="en">
"! An object that defines how to aggregate query results.</p>
T_QUERY_AGGREGATION type JSONOBJECT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Numeric interval segments to categorize documents by using</p>
"! field values from a single numeric field to describe the category.
begin of T_QRY_AGGR_QRY_HISTOGRAM_AGGR,
"! Specifies that the aggregation type is `histogram`.
TYPE type STRING,
"! The numeric field name used to create the histogram.
FIELD type STRING,
"! The size of the sections that the results are split into.
INTERVAL type INTEGER,
"! Identifier that can optionally be specified in the query request of this
"! aggregation.
NAME type STRING,
"! Array of numeric intervals.
RESULTS type STANDARD TABLE OF T_QUERY_HISTOGRAM_AGGR_RESULT WITH NON-UNIQUE DEFAULT KEY,
end of T_QRY_AGGR_QRY_HISTOGRAM_AGGR.
types:
"! <p class="shorttext synchronized" lang="en">
"! Result of the document analysis.</p>
begin of T_ANALYZED_RESULT,
"! Metadata that was specified with the request.
METADATA type JSONOBJECT,
end of T_ANALYZED_RESULT.
types:
"! <p class="shorttext synchronized" lang="en">
"! Configuration for passage retrieval.</p>
begin of T_QUERY_LARGE_PASSAGES,
"! A passages query that returns the most relevant passages from the results.
ENABLED type BOOLEAN,
"! If `true`, ranks the documents by document quality, and then returns the
"! highest-ranked passages per document in a `document_passages` field for each
"! document entry in the results list of the response.<br/>
"! <br/>
"! If `false`, ranks the passages from all of the documents by passage quality
"! regardless of the document quality and returns them in a separate `passages`
"! field in the response.
PER_DOCUMENT type BOOLEAN,
"! Maximum number of passages to return per document in the result. Ignored if
"! **passages.per_document** is `false`.
MAX_PER_DOCUMENT type INTEGER,
"! A list of fields to extract passages from. By default, passages are extracted
"! from the `text` and `title` fields only. If you add this parameter and specify
"! an empty list (`[]`) as its value, then the service searches all root-level
"! fields for suitable passages.
FIELDS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
"! The maximum number of passages to return. Ignored if **passages.per_document**
"! is `true`.
COUNT type INTEGER,
"! The approximate number of characters that any one passage will have.
CHARACTERS type INTEGER,
"! When true, `answer` objects are returned as part of each passage in the query