-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmanticore.yml
More file actions
executable file
·1649 lines (1586 loc) · 53 KB
/
Copy pathmanticore.yml
File metadata and controls
executable file
·1649 lines (1586 loc) · 53 KB
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
openapi: 3.1.0
info:
title: Manticore Search Client
description: |
Сlient for Manticore Search.
version: 5.0.0
contact:
name: Manticore Software Ltd.
email: info@manticoresearch.com
url: 'https://manticoresearch.com/contact-us/'
license:
name: MIT
url: 'http://opensource.org/licenses/MIT'
tags:
- name: Index
description: Operations regarding adding, updating or deleting documents
- name: Search
description: Operations about performing searches over tables
- name: Utils
description: Various operations
externalDocs:
description: Find out more about Manticore Search
url: 'https://manticoresearch.com/'
components:
examples:
objectExample:
value: www
summary: A sample object
schemas:
aggCompositeTerm:
type: object
required: ['field']
properties:
field:
type: string
description: Name of field to operate with
example: field1
additionalProperties: false
description: Object representing a term to be used in composite aggregation.
aggCompositeSource:
type: object
required: ['terms']
properties:
terms:
$ref: '#/components/schemas/aggCompositeTerm'
additionalProperties: false
description: Object containing terms used for composite aggregation.
aggHistogram:
additionalProperties: false
description: "Object to use histograms in aggregation, i.e., grouping search\
\ results by histogram values"
properties:
field:
description: Field to group by
example: field
type: string
interval:
description: Interval of the histogram values
example: 10
type: integer
offset:
description: Offset of the histogram values. Default value is 0.
example: 1
type: integer
keyed:
description: Flag that defines if a search response will be a dictionary with the bucket keys. Default value is false.
example: true
type: boolean
required:
- field
- interval
aggDateHistogram:
additionalProperties: false
description: "Object to use histograms in aggregation, i.e., grouping search\
\ results by histogram values"
properties:
field:
description: Field to group by
example: field
type: string
interval:
description: Interval of the histogram values
example: 10
type: integer
offset:
description: Offset of the histogram values. Default value is 0.
example: 1
type: integer
keyed:
description: Flag that defines if a search response will be a dictionary with the bucket keys. Default value is false.
example: true
type: boolean
required:
- field
- interval
aggComposite:
type: object
description: Object to perform composite aggregation, i.e., grouping search results by multiple fields
properties:
size:
type: integer
description: Maximum number of composite buckets in the result
example: 1000
sources:
type: array
items:
type: object
description: List of objects that contain terms used for composite aggregation.
additionalProperties:
$ref: '#/components/schemas/aggCompositeSource'
additionalProperties: false
aggTerms:
type: object
required: ['field']
properties:
field:
type: string
description: Name of attribute to aggregate by
example: field1
size:
type: integer
description: Maximum number of buckets in the result
example: 1000
description: Object containing term fields to aggregate on
additionalProperties: false
aggregation:
allOf:
- type: object
description: Object used for grouping search results
properties:
terms:
$ref: '#/components/schemas/aggTerms'
sort:
type: array
items:
type: {}
composite:
$ref: '#/components/schemas/aggComposite'
histogram:
$ref: '#/components/schemas/aggHistogram'
knn:
type: object
required: [field]
properties:
field:
type: string
description: Field to perform the k-nearest neighbor search on
k:
type: integer
deprecated: true
description: Deprecated. Use the top-level `limit` parameter instead.
query:
oneOf:
- type: string
- type: array
items:
type: number
query_vector:
type: array
items:
type: number
description: The vector used as input for the KNN search
doc_id:
type: integer
# when building clients, we use a patch to set the int64 format for the Java client here since unsigned int64 is not supported in Java
format: uint64
description: The docuemnt ID used as input for the KNN search
ef:
type: integer
description: Optional parameter controlling the accuracy of the search
filter:
$ref: '#/components/schemas/queryFilter'
description: Object representing a k-nearest neighbor search query
geoDistance:
type: object
properties:
location_anchor:
type: object
description: Specifies the location of the pin point used for search
properties:
lat:
type: number
description: Latitude of the anchor point
lon:
type: number
description: Longitude of the anchor point
additionalProperties: false
location_source:
type: string
description: Field name in the document that contains location data
distance_type:
type: string
enum:
- adaptive
- haversine
description: Algorithm used to calculate the distance
distance:
type: string
pattern: /^\.+(km|m|cm|mm|mi|yd|ft|in|NM|nmi|kilometers|meters|centimeters|millimeters|miles|yards|foots|inches|nauticalmiles|)$/
description: The distance from the anchor point to filter results by
additionalProperties: false
description: Object to perform geo-distance based filtering on queries
searchQuery:
allOf:
- $ref: '#/components/schemas/queryFilter'
- type: object
properties:
highlight:
$ref: '#/components/schemas/highlight'
description: Defines a query structure for performing search operations
searchRequest:
description: Request object for search operation
type: object
required: [table]
properties:
table:
type: string
description: The table to perform the search on
query:
$ref: '#/components/schemas/searchQuery'
join:
type: array
items:
$ref: '#/components/schemas/join'
description: Join clause to combine search data from multiple tables
highlight:
$ref: '#/components/schemas/highlight'
limit:
type: integer
description: Maximum number of results to return
knn:
$ref: '#/components/schemas/knn'
aggs:
type: object
additionalProperties:
$ref: '#/components/schemas/aggregation'
example:
agg1:
terms:
field: field1
size: 1000
sort:
- 'field1':
order: asc
description: Defines aggregation settings for grouping results
expressions:
type: object
additionalProperties:
type: string
example:
title_len: "crc32(title)"
description: Expressions to calculate additional values for the result
max_matches:
type: integer
description: Maximum number of matches allowed in the result
offset:
type: integer
description: Starting point for pagination of the result
options:
type: object
description: Additional search options
profile:
type: boolean
description: Enable or disable profiling of the search request
sort:
type: {}
description: Sorting criteria for the search results
_source:
type: {}
description: Specify which fields to include or exclude in the response
track_scores:
type: boolean
description: Enable or disable result weight calculation used for sorting
example:
table: 'your_table'
query:
query_string: 'your_query'
# workaround to fix the incorrect generation of referenced items in some clients
queryFilterAlias1:
$ref: '#/components/schemas/queryFilter'
queryFilterAlias2:
$ref: '#/components/schemas/queryFilter'
autocompleteRequest:
type: object
description: Object containing the data for performing an autocomplete search.
required:
- table
- query
properties:
table:
type: string
description: The table to perform the search on
query:
type: string
description: The beginning of the string to autocomplete
options:
type: object
description: >
Autocomplete options
- layouts: A comma-separated string of keyboard layout codes to validate and check for spell correction. Available options - us, ru, ua, se, pt, no, it, gr, uk, fr, es, dk, de, ch, br, bg, be. By default, all are enabled.
- fuzziness: (0,1 or 2) Maximum Levenshtein distance for finding typos. Set to 0 to disable fuzzy matching. Default is 2
- prepend: true/false If true, adds an asterisk before the last word for prefix expansion (e.g., *word )
- append: true/false If true, adds an asterisk after the last word for prefix expansion (e.g., word* )
- expansion_len: Number of characters to expand in the last word. Default is 10.
additionalProperties: true
example:
table: "test"
query: "Start"
options:
layouts: "us,uk"
fuzziness: 0
boolFilter:
type: object
properties:
must:
type: array
items:
$ref: '#/components/schemas/queryFilter'
description: Query clauses that must match for the document to be included
must_not:
type: array
items:
$ref: '#/components/schemas/queryFilterAlias1'
description: Query clauses that must not match for the document to be included
should:
type: array
items:
$ref: '#/components/schemas/queryFilterAlias2'
description: Query clauses that should be matched, but are not required
additionalProperties: false
bulkResponse:
type: object
description: Success response for bulk search requests
properties:
items:
type: array
items:
type: object
description: List of results
errors:
type: boolean
description: Errors occurred during the bulk operation
error:
type: string
description: Error message describing an error if such occurred
current_line:
type: integer
description: Number of the row returned in the response
skipped_lines:
type: integer
description: Number of rows skipped in the response
deleteDocumentRequest:
type: object
description: >
Payload for delete request.
Documents can be deleted either one by one by specifying the document id
or by providing a query object.
For more information see
[Delete API](https://manual.manticoresearch.com/Deleting_documents)
required:
- table
properties:
table:
type: string
description: Table name
cluster:
type: string
description: Cluster name
id:
type: integer
# when building clients, we use a patch to set the int64 format for the Java client here since unsigned int64 is not supported in Java
format: uint64
description: The ID of document for deletion
query:
type: object
description: Defines the criteria to match documents for deletion
example:
table: test
id: 1
deleteResponse:
type: object
description: Response object for successful delete request
properties:
table:
type: string
description: The name of the table from which the document was deleted
deleted:
type: integer
description: Number of documents deleted
id:
type: integer
# when building clients, we use a patch to set the int64 format for the Java client here since unsigned int64 is not supported in Java
format: uint64
description: The ID of the deleted document. If multiple documents are deleted, the ID of the first deleted document is returned
found:
type: boolean
description: Indicates whether any documents to be deleted were found
result:
type: string
description: Result of the delete operation, typically 'deleted'
example:
table: test
deleted: 29
highlight:
allOf:
- type: object
description: Defines a query HIGHLIGHT expression to emphasize matched results
properties:
after_match:
type: string
default: '</strong>'
description: Text inserted after the matched term, typically used for HTML formatting
allow_empty:
type: boolean
description: Permits an empty string to be returned as the highlighting result. Otherwise, the beginning of the original text would be returned
around:
type: integer
description: Number of words around the match to include in the highlight
before_match:
type: string
default: '<strong>'
description: Text inserted before the match, typically used for HTML formatting
emit_zones:
type: boolean
description: Emits an HTML tag with the enclosing zone name before each highlighted snippet
encoder:
type: string
enum:
- default
- html
description: If set to 'html', retains HTML markup when highlighting
fields:
$ref: '#/components/schemas/highlightFields'
force_all_words:
type: boolean
description: Ignores the length limit until the result includes all keywords
force_snippets:
type: boolean
description: Forces snippet generation even if limits allow highlighting the entire text
highlight_query:
oneOf:
- type: null
- $ref: '#/components/schemas/queryFilter'
description: Optional query object to customize highlighting behavior
html_strip_mode:
type: string
enum:
- 'none'
- 'strip'
- 'index'
- 'retain'
description: Defines the mode for handling HTML markup in the highlight
limits_per_field:
type: boolean
description: Determines whether the 'limit', 'limit_words', and 'limit_snippets' options operate as individual limits in each field of the document
no_match_size:
type: integer
enum:
- 0
- 1
description: If set to 1, allows an empty string to be returned as a highlighting result
order:
type: string
enum:
- asc
- desc
- score
description: Sets the sorting order of highlighted snippets
pre_tags:
type: string
default: '<strong>'
description: Text inserted before each highlighted snippet
post_tags:
type: string
default: '</strong>'
description: Text inserted after each highlighted snippet
start_snippet_id:
type: integer
description: Sets the starting value of the %SNIPPET_ID% macro
use_boundaries:
type: boolean
description: Defines whether to additionally break snippets by phrase boundary characters
- $ref: '#/components/schemas/highlightFieldOption'
highlightFields:
oneOf:
- type: array
items:
type: string
- type: object
description: List of fields available for highlighting
highlightFieldOption:
type: object
properties:
fragment_size:
type: integer
description: Maximum size of the text fragments in highlighted snippets per field
limit:
type: integer
description: Maximum size of snippets per field
limit_snippets:
type: integer
description: Maximum number of snippets per field
limit_words:
type: integer
description: Maximum number of words per field
number_of_fragments:
type: integer
description: Total number of highlighted fragments per field
additionalProperties: false
description: Options for controlling the behavior of highlighting on a per-field basis
hitsHits:
type: object
properties:
_id:
type: integer
# when building clients, we use a patch to set the int64 format for the Java client here since unsigned int64 is not supported in Java
format: uint64
description: The ID of the matched document
_score:
type: integer
description: The score of the matched document
_source:
type: object
description: The source data of the matched document
_knn_dist:
type: number
description: The knn distance of the matched document returned for knn queries
highlight:
type: object
description: The highlighting-related data of the matched document
table:
type: string
description: The table name of the matched document returned for percolate queries
_type::
type: string
description: The type of the matched document returned for percolate queries
fields:
type: object
description: The percolate-related fields of the matched document returned for percolate queries
additionalProperties: true
description: Search hit representing a matched document
insertDocumentRequest:
type: object
description: |
Object containing data for inserting a new document into the table
required:
- table
- doc
properties:
table:
type: string
description: Name of the table to insert the document into
cluster:
type: string
description: Name of the cluster to insert the document into
id:
type: integer
# when building clients, we use a patch to set the int64 format for the Java client here since unsigned int64 is not supported in Java
format: uint64
description: |
Document ID. If not provided, an ID will be auto-generated
doc:
type: object
additionalProperties: true
description: |
Object containing document data
example:
table: test
doc:
title: This is some title
gid: 100
joinOn:
allOf:
- type: object
properties:
right:
$ref: '#/components/schemas/joinCond'
additionalProperties: false
- type: object
properties:
left:
$ref: '#/components/schemas/joinCond'
additionalProperties: false
- type: object
properties:
operator:
type: string
enum:
- eq
additionalProperties: false
description: Defines joined tables
join:
# workaround to avoid incorrect generation of strict types in some clients
allOf:
- type: object
required: ['type', 'on', 'table']
properties:
type:
type: string
enum:
- inner
- left
description: Type of the join operation
on:
type: array
items:
$ref: '#/components/schemas/joinOn'
description: List of objects defining joined tables
query:
$ref: '#/components/schemas/fulltextFilter'
table:
type: string
description: Basic table of the join operation
additionalProperties: false
description: Object representing the join operation between two tables
joinCond:
type: object
required: ['field', 'table']
properties:
field:
type: string
description: Field to join on
table:
type: string
description: Joined table
query:
$ref: '#/components/schemas/fulltextFilter'
type:
type: {}
additionalProperties: false
description: Object representing the conditions used to perform the join operation
_match:
type: object
required: ['query']
properties:
query:
type: string
operator:
type: string
enum:
- or
- and
boost:
type: number
description: Filter helper object defining a match keyword and match options
match_all:
type: object
required: ['_all']
properties:
_all:
type: string
enum:
- '{}'
description: Filter helper object defining the 'match all'' condition
range:
type: object
properties:
lt:
type: {}
description: <Less than> condition value
lte:
type: {}
description: <Less than or equal> condition value
gt:
type: {}
description: <Greater than> condition value
gte:
type: {}
description: <Greater than or equal> condition value
description: Filter helper object defining the 'range' condition
fulltextFilter:
type: object
properties:
query_string:
type: string
description: Filter object defining a query string
match:
type: object
description: Filter object defining a match keyword passed as a string or in a Match object
match_phrase:
type: object
description: Filter object defining a match phrase
match_all:
type: object
description: Filter object to select all documents
additionalProperties: false
description: Defines a type of filter for full-text search queries
queryFilter:
allOf:
- $ref: '#/components/schemas/fulltextFilter'
- type: object
properties:
bool:
$ref: '#/components/schemas/boolFilter'
equals:
type: {}
description: Filter to match exact attribute values.
in:
type: object
description: Filter to match a given set of attribute values.
range:
type: object
description: Filter to match a given range of attribute values passed in Range objects
geo_distance:
$ref: '#/components/schemas/geoDistance'
additionalProperties: false
description: Object used to apply various conditions, such as full-text matching or attribute filtering, to a search query
replaceDocumentRequest:
type: object
description: Object containing the document data for replacing an existing document in a table.
required:
- doc
properties:
doc:
type: object
additionalProperties: true
description: Object containing the new document data to replace the existing one.
example:
doc:
title: This is some title
gid: 100
sourceRules:
type: object
description: Defines which fields to include or exclude in the response for a search query
properties:
includes:
type: array
default: []
items:
type: string
description: List of fields to include in the response
excludes:
type: array
default: ['']
items:
type: string
description: List of fields to exclude from the response
additionalProperties: false
minProperties: 1
example: {"includes": ["attr1","attri*"], "excludes": ["desc*"]}
successResponse:
type: object
description: Response object indicating the success of an operation, such as inserting or updating a document
properties:
table:
type: string
description: Name of the document table
id:
type: integer
# when building clients, we use a patch to set the int64 format for the Java client here since unsigned int64 is not supported in Java
format: uint64
description: ID of the document affected by the request operation
created:
type: boolean
description: Indicates whether the document was created as a result of the operation
result:
type: string
description: Result of the operation, typically 'created', 'updated', or 'deleted'
found:
type: boolean
description: Indicates whether the document was found in the table
status:
type: integer
description: HTTP status code representing the result of the operation
example:
table: test
id: 1
result: created
created: true
status: 201
percolateRequest:
type: object
description: Object containing the query for percolating documents against stored queries in a percolate table
required: [query]
properties:
query:
type: object
additionalProperties: true
required:
- percolate
properties:
percolate:
type: object
description: Object representing the document to percolate
example:
percolate:
document:
title: some text to match
searchResponse:
type: object
description: Response object containing the results of a search request
properties:
took:
type: integer
description: Time taken to execute the search
timed_out:
type: boolean
description: Indicates whether the search operation timed out
aggregations:
type: object
additionalProperties: true
description: Aggregated search results grouped by the specified criteria
hits:
type: object
properties:
max_score:
type: integer
description: Maximum score among the matched documents
total:
type: integer
description: Total number of matched documents
total_relation:
type: string
description: Indicates whether the total number of hits is accurate or an estimate
hits:
type: array
items:
$ref: '#/components/schemas/hitsHits'
description: Array of hit objects, each representing a matched document
description: Object containing the search hits, which represent the documents that matched the query.
example:
total: 2
hits:
- _id: 1
_score: 1
_source:
gid: 11
- _id: 2
_score: 1
_source:
gid: 20
profile:
type: object
description: Profile information about the search execution, if profiling is enabled
scroll:
type: string
description: Scroll token to be used fo pagination
warning:
type: object
additionalProperties: true
description: Warnings encountered during the search operation
responseError:
oneOf:
- $ref: '#/components/schemas/responseErrorDetails'
- $ref: '#/components/schemas/responseErrorText'
responseErrorDetails:
type: object
description: Detailed error information returned in case of an error response
required:
- type
properties:
type:
type: string
description: Type or category of the error
reason:
type:
- string
- 'null'
description: Detailed explanation of why the error occurred
table:
type:
- string
- 'null'
description: The table related to the error, if applicable
responseErrorText:
type: string
description: Error message text returned in case of an error
errorResponse:
type: object
description: Error response object containing information about the error and a status code
required: ['error']
properties:
error:
$ref: '#/components/schemas/responseError'
status:
type: integer
description: HTTP status code of the error response
default: 500
example:
status: 500
error: an error occured
sqlRawResponse:
type: array
items:
type: object
sqlObjResponse:
type: object
required: ['hits']
properties:
hits:
type: object
took:
type: number
timed_out:
type: boolean
sqlResponse:
oneOf:
- $ref: '#/components/schemas/sqlRawResponse'
- $ref: '#/components/schemas/sqlObjResponse'
description: List of responses from executed SQL queries
example:
- total: 0
error: null
updateDocumentRequest:
type: object
description: Payload for updating a document or multiple documents in a table
required:
- table
- doc
properties:
table:
type: string
description: Name of the document table
cluster:
type: string
description: Name of the document cluster
doc:
type: object
description: Object containing the document fields to update
additionalProperties: true
example:
gid: 10
id:
type: integer
# when building clients, we use a patch to set the int64 format for the Java client here since unsigned int64 is not supported in Java
format: uint64
description: Document ID
query:
oneOf:
- type: null
- $ref: '#/components/schemas/queryFilter'
description: Object defining conditions to perform the updates
example:
query:
match:
title: match me
updateResponse:
type: object
description: Success response returned after updating one or more documents
properties:
table:
type: string
description: Name of the document table
updated:
type: integer
description: Number of documents updated
id:
type: integer
# when building clients, we use a patch to set the int64 format for the Java client here since unsigned int64 is not supported in Java
format: uint64
description: Document ID
result:
type: string
description: Result of the update operation, typically 'updated'
example:
table: test
updated: 29
paths:
/search:
post:
summary: Performs a search on a table
x-is_search: true
description: >
The method expects an object with the following mandatory properties:
* the name of the table to search
* the match query object
For details, see the documentation on [**SearchRequest**](SearchRequest.md)
The method returns an object with the following properties:
- took: the time taken to execute the search query.
- timed_out: a boolean indicating whether the query timed out.
- hits: an object with the following properties:
- total: the total number of hits found.
- hits: an array of hit objects, where each hit object represents a matched document. Each hit object has the following properties:
- _id: the ID of the matched document.
- _score: the score of the matched document.
- _source: the source data of the matched document.
In addition, if profiling is enabled, the response will include an additional array with profiling information attached.
Also, if pagination is enabled, the response will include an additional 'scroll' property with a scroll token to use for pagination
Here is an example search response:
```
{
'took':10,
'timed_out':false,
'hits':
{
'total':2,
'hits':
[
{'_id':'1','_score':1,'_source':{'gid':11}},