-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
searchindex.json
2847 lines (2847 loc) · 107 KB
/
searchindex.json
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
{
"swagger": "2.0",
"info": {
"title": "SearchIndexClient",
"description": "Client that can be used to query an index and upload, merge, or delete documents.",
"version": "2023-10-01-Preview",
"x-ms-code-generation-settings": {
"useDateTimeOffset": true,
"syncMethods": "None"
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{endpoint}/indexes('{indexName}')",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "#/parameters/EndpointParameter"
},
{
"$ref": "#/parameters/IndexNameParameter"
}
]
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/docs/$count": {
"get": {
"tags": [
"Documents"
],
"operationId": "Documents_Count",
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/searchservice/Count-Documents"
},
"x-ms-examples": {
"SearchIndexCountDocuments": {
"$ref": "./examples/SearchIndexCountDocuments.json"
}
},
"description": "Queries the number of documents in the index.",
"parameters": [
{
"$ref": "#/parameters/ClientRequestIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"x-ms-request-id": "request-id",
"responses": {
"200": {
"description": "",
"schema": {
"type": "integer",
"format": "int64"
}
},
"default": {
"description": "Error response.",
"schema": {
"$ref": "#/definitions/SearchError"
}
}
}
}
},
"/docs": {
"get": {
"tags": [
"Documents"
],
"operationId": "Documents_SearchGet",
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/searchservice/Search-Documents"
},
"x-ms-examples": {
"SearchIndexSearchDocumentsGet": {
"$ref": "./examples/SearchIndexSearchDocumentsGet.json"
}
},
"description": "Searches for documents in the index.",
"parameters": [
{
"name": "search",
"in": "query",
"type": "string",
"description": "A full-text search query expression; Use \"*\" or omit this parameter to match all documents.",
"x-ms-client-name": "SearchText"
},
{
"name": "$count",
"in": "query",
"type": "boolean",
"description": "A value that specifies whether to fetch the total count of results. Default is false. Setting this value to true may have a performance impact. Note that the count returned is an approximation.",
"x-nullable": false,
"x-ms-client-name": "IncludeTotalResultCount",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "facet",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi",
"description": "The list of facet expressions to apply to the search query. Each facet expression contains a field name, optionally followed by a comma-separated list of name:value pairs.",
"x-ms-client-name": "Facets",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "$filter",
"in": "query",
"type": "string",
"description": "The OData $filter expression to apply to the search query.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "highlight",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"description": "The list of field names to use for hit highlights. Only searchable fields can be used for hit highlighting.",
"x-ms-client-name": "HighlightFields",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "highlightPostTag",
"in": "query",
"type": "string",
"description": "A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is </em>.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "highlightPreTag",
"in": "query",
"type": "string",
"description": "A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default is <em>.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "minimumCoverage",
"in": "query",
"type": "number",
"format": "double",
"description": "A number between 0 and 100 indicating the percentage of the index that must be covered by a search query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 100.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "$orderby",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"description": "The list of OData $orderby expressions by which to sort the results. Each expression can be either a field name or a call to either the geo.distance() or the search.score() functions. Each expression can be followed by asc to indicate ascending, and desc to indicate descending. The default is ascending order. Ties will be broken by the match scores of documents. If no OrderBy is specified, the default sort order is descending by document match score. There can be at most 32 $orderby clauses.",
"x-ms-client-name": "OrderBy",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "queryType",
"in": "query",
"type": "string",
"enum": [
"simple",
"full",
"semantic"
],
"x-ms-enum": {
"name": "QueryType",
"modelAsString": false,
"values": [
{
"value": "simple",
"name": "Simple",
"description": "Uses the simple query syntax for searches. Search text is interpreted using a simple query language that allows for symbols such as +, * and \"\". Queries are evaluated across all searchable fields by default, unless the searchFields parameter is specified."
},
{
"value": "full",
"name": "Full",
"description": "Uses the full Lucene query syntax for searches. Search text is interpreted using the Lucene query language which allows field-specific and weighted searches, as well as other advanced features."
},
{
"value": "semantic",
"name": "Semantic",
"description": "Best suited for queries expressed in natural language as opposed to keywords. Improves precision of search results by re-ranking the top search results using a ranking model trained on the Web corpus."
}
]
},
"x-nullable": false,
"description": "A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "scoringParameter",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi",
"x-ms-client-name": "ScoringParameters",
"description": "The list of parameter values to be used in scoring functions (for example, referencePointParameter) using the format name-values. For example, if the scoring profile defines a function with a parameter called 'mylocation' the parameter string would be \"mylocation--122.2,44.8\" (without the quotes).",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "scoringProfile",
"in": "query",
"type": "string",
"description": "The name of a scoring profile to evaluate match scores for matching documents in order to sort the results.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "semanticQuery",
"in": "query",
"type": "string",
"description": "Allows setting a separate search query that will be solely used for semantic reranking, semantic captions and semantic answers. Is useful for scenarios where there is a need to use different queries between the base retrieval and ranking phase, and the L2 semantic phase.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "semanticConfiguration",
"in": "query",
"type": "string",
"description": "The name of the semantic configuration that lists which fields should be used for semantic ranking, captions, highlights, and answers",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "semanticErrorHandling",
"in": "query",
"type": "string",
"enum": [
"partial",
"fail"
],
"x-ms-enum": {
"name": "SemanticErrorMode",
"modelAsString": true,
"values": [
{
"value": "partial",
"name": "Partial",
"description": "If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure."
},
{
"value": "fail",
"name": "Fail",
"description": "If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error."
}
]
},
"description": "Allows the user to choose whether a semantic call should fail completely, or to return partial results (default).",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "semanticMaxWaitInMilliseconds",
"in": "query",
"type": "integer",
"format": "int32",
"minimum": 700,
"description": "Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish processing before the request fails.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "debug",
"in": "query",
"type": "string",
"enum": [
"disabled",
"semantic"
],
"x-ms-enum": {
"name": "QueryDebugMode",
"modelAsString": true,
"values": [
{
"value": "disabled",
"name": "Disabled",
"description": "No query debugging information will be returned."
},
{
"value": "semantic",
"name": "Semantic",
"description": "Allows the user to further explore their reranked results."
}
]
},
"description": "Enables a debugging tool that can be used to further explore your search results.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "searchFields",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"description": "The list of field names to which to scope the full-text search. When using fielded search (fieldName:searchExpression) in a full Lucene query, the field names of each fielded search expression take precedence over any field names listed in this parameter.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "queryLanguage",
"in": "query",
"type": "string",
"enum": [
"none",
"en-us"
],
"x-ms-enum": {
"name": "QueryLanguage",
"modelAsString": true,
"values": [
{
"value": "none",
"name": "None",
"description": "Query language not specified."
},
{
"value": "en-us",
"name": "EnUs",
"description": "English (US)"
}
]
},
"description": "The language of the query.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "speller",
"in": "query",
"type": "string",
"enum": [
"none",
"lexicon"
],
"x-ms-enum": {
"name": "Speller",
"modelAsString": true,
"values": [
{
"value": "none",
"name": "None",
"description": "Speller not enabled."
},
{
"value": "lexicon",
"name": "Lexicon",
"description": "Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter."
}
]
},
"description": "Improve search recall by spell-correcting individual search query terms.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "answers",
"in": "query",
"type": "string",
"enum": [
"none",
"extractive"
],
"x-ms-enum": {
"name": "QueryAnswerType",
"modelAsString": true,
"values": [
{
"value": "none",
"name": "None",
"description": "Do not return answers for the query."
},
{
"value": "extractive",
"name": "Extractive",
"description": "Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language."
}
]
},
"description": "This parameter is only valid if the query type is `semantic`. If set, the query returns answers extracted from key passages in the highest ranked documents. The number of answers returned can be configured by appending the pipe character `|` followed by the `count-<number of answers>` option after the answers parameter value, such as `extractive|count-3`. Default count is 1. The confidence threshold can be configured by appending the pipe character `|` followed by the `threshold-<confidence threshold>` option after the answers parameter value, such as `extractive|threshold-0.9`. Default threshold is 0.7.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "searchMode",
"in": "query",
"type": "string",
"enum": [
"any",
"all"
],
"x-ms-enum": {
"name": "SearchMode",
"modelAsString": false,
"values": [
{
"value": "any",
"name": "Any",
"description": "Any of the search terms must be matched in order to count the document as a match."
},
{
"value": "all",
"name": "All",
"description": "All of the search terms must be matched in order to count the document as a match."
}
]
},
"x-nullable": false,
"description": "A value that specifies whether any or all of the search terms must be matched in order to count the document as a match.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "scoringStatistics",
"in": "query",
"type": "string",
"enum": [
"local",
"global"
],
"x-ms-enum": {
"name": "ScoringStatistics",
"modelAsString": false,
"values": [
{
"value": "local",
"name": "Local",
"description": "The scoring statistics will be calculated locally for lower latency."
},
{
"value": "global",
"name": "Global",
"description": "The scoring statistics will be calculated globally for more consistent scoring."
}
]
},
"x-nullable": false,
"description": "A value that specifies whether we want to calculate scoring statistics (such as document frequency) globally for more consistent scoring, or locally, for lower latency.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "sessionId",
"in": "query",
"type": "string",
"description": "A value to be used to create a sticky session, which can help to get more consistent results. As long as the same sessionId is used, a best-effort attempt will be made to target the same replica set. Be wary that reusing the same sessionID values repeatedly can interfere with the load balancing of the requests across replicas and adversely affect the performance of the search service. The value used as sessionId cannot start with a '_' character.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "$select",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"description": "The list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "$skip",
"in": "query",
"type": "integer",
"format": "int32",
"description": "The number of search results to skip. This value cannot be greater than 100,000. If you need to scan documents in sequence, but cannot use $skip due to this limitation, consider using $orderby on a totally-ordered key and $filter with a range query instead.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "$top",
"in": "query",
"type": "integer",
"format": "int32",
"description": "The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side paging of search results. If results are truncated due to server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "captions",
"in": "query",
"type": "string",
"enum": [
"none",
"extractive"
],
"x-ms-enum": {
"name": "QueryCaptionType",
"modelAsString": true,
"values": [
{
"value": "none",
"name": "None",
"description": "Do not return captions for the query."
},
{
"value": "extractive",
"name": "Extractive",
"description": "Extracts captions from the matching documents that contain passages relevant to the search query."
}
]
},
"description": "This parameter is only valid if the query type is `semantic`. If set, the query returns captions extracted from key passages in the highest ranked documents. When Captions is set to `extractive`, highlighting is enabled by default, and can be configured by appending the pipe character `|` followed by the `highlight-<true/false>` option, such as `extractive|highlight-true`. Defaults to `None`.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"name": "semanticFields",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"description": "The list of field names used for semantic ranking.",
"x-ms-parameter-grouping": {
"name": "SearchOptions"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestIdParameter"
}
],
"x-ms-request-id": "request-id",
"responses": {
"200": {
"description": "Response containing documents that match the search criteria.",
"schema": {
"$ref": "#/definitions/SearchDocumentsResult"
}
},
"default": {
"description": "Error response.",
"schema": {
"$ref": "#/definitions/SearchError"
}
}
}
}
},
"/docs/search.post.search": {
"post": {
"tags": [
"Documents"
],
"operationId": "Documents_SearchPost",
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/searchservice/Search-Documents"
},
"x-ms-examples": {
"SearchIndexSearchDocumentsPost": {
"$ref": "./examples/SearchIndexSearchDocumentsPost.json"
}
},
"description": "Searches for documents in the index.",
"parameters": [
{
"name": "searchRequest",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/SearchRequest",
"description": "The Search request."
},
"description": "The definition of the Search request."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestIdParameter"
}
],
"x-ms-request-id": "request-id",
"responses": {
"200": {
"description": "Response containing documents that match the search criteria.",
"schema": {
"$ref": "#/definitions/SearchDocumentsResult"
}
},
"default": {
"description": "Error response.",
"schema": {
"$ref": "#/definitions/SearchError"
}
}
}
}
},
"/docs('{key}')": {
"get": {
"tags": [
"Documents"
],
"operationId": "Documents_Get",
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/searchservice/lookup-document"
},
"x-ms-examples": {
"SearchIndexGetDocument": {
"$ref": "./examples/SearchIndexGetDocument.json"
}
},
"description": "Retrieves a document from the index.",
"parameters": [
{
"name": "key",
"in": "path",
"required": true,
"description": "The key of the document to retrieve.",
"type": "string"
},
{
"name": "$select",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"description": "List of field names to retrieve for the document; Any field not retrieved will be missing from the returned document.",
"x-ms-client-name": "SelectedFields"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestIdParameter"
}
],
"responses": {
"200": {
"description": "Response containing the requested document.",
"schema": {
"$ref": "#/definitions/LookupDocument"
}
},
"default": {
"description": "Error response.",
"schema": {
"$ref": "#/definitions/SearchError"
}
}
}
}
},
"/docs/search.suggest": {
"get": {
"tags": [
"Documents"
],
"operationId": "Documents_SuggestGet",
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/searchservice/suggestions"
},
"x-ms-examples": {
"SearchIndexSuggestDocumentsGet": {
"$ref": "./examples/SearchIndexSuggestDocumentsGet.json"
}
},
"description": "Suggests documents in the index that match the given partial query text.",
"parameters": [
{
"name": "search",
"in": "query",
"required": true,
"type": "string",
"description": "The search text to use to suggest documents. Must be at least 1 character, and no more than 100 characters.",
"x-ms-client-name": "SearchText"
},
{
"name": "suggesterName",
"in": "query",
"required": true,
"type": "string",
"description": "The name of the suggester as specified in the suggesters collection that's part of the index definition."
},
{
"name": "$filter",
"in": "query",
"type": "string",
"description": "An OData expression that filters the documents considered for suggestions.",
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"name": "fuzzy",
"in": "query",
"type": "boolean",
"description": "A value indicating whether to use fuzzy matching for the suggestions query. Default is false. When set to true, the query will find terms even if there's a substituted or missing character in the search text. While this provides a better experience in some scenarios, it comes at a performance cost as fuzzy suggestions queries are slower and consume more resources.",
"x-ms-client-name": "UseFuzzyMatching",
"x-nullable": false,
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"name": "highlightPostTag",
"in": "query",
"type": "string",
"description": "A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting of suggestions is disabled.",
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"name": "highlightPreTag",
"in": "query",
"type": "string",
"description": "A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting of suggestions is disabled.",
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"name": "minimumCoverage",
"in": "query",
"type": "number",
"format": "double",
"description": "A number between 0 and 100 indicating the percentage of the index that must be covered by a suggestions query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 80.",
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"name": "$orderby",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"x-ms-client-name": "OrderBy",
"description": "The list of OData $orderby expressions by which to sort the results. Each expression can be either a field name or a call to either the geo.distance() or the search.score() functions. Each expression can be followed by asc to indicate ascending, or desc to indicate descending. The default is ascending order. Ties will be broken by the match scores of documents. If no $orderby is specified, the default sort order is descending by document match score. There can be at most 32 $orderby clauses.",
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"name": "searchFields",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"description": "The list of field names to search for the specified search text. Target fields must be included in the specified suggester.",
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"name": "$select",
"in": "query",
"type": "array",
"items": {
"type": "string"
},
"description": "The list of fields to retrieve. If unspecified, only the key field will be included in the results.",
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"name": "$top",
"in": "query",
"type": "integer",
"format": "int32",
"description": "The number of suggestions to retrieve. The value must be a number between 1 and 100. The default is 5.",
"x-ms-parameter-grouping": {
"name": "SuggestOptions"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestIdParameter"
}
],
"x-ms-request-id": "request-id",
"responses": {
"200": {
"description": "Response containing suggested documents that match the partial input.",
"schema": {
"$ref": "#/definitions/SuggestDocumentsResult"
}
},
"default": {
"description": "Error response.",
"schema": {
"$ref": "#/definitions/SearchError"
}
}
}
}
},
"/docs/search.post.suggest": {
"post": {
"tags": [
"Documents"
],
"operationId": "Documents_SuggestPost",
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/searchservice/suggestions"
},
"x-ms-examples": {
"SearchIndexSuggestDocumentsPost": {
"$ref": "./examples/SearchIndexSuggestDocumentsPost.json"
}
},
"description": "Suggests documents in the index that match the given partial query text.",
"parameters": [
{
"name": "suggestRequest",
"in": "body",
"required": true,
"description": "The Suggest request.",
"schema": {
"$ref": "#/definitions/SuggestRequest"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestIdParameter"
}
],
"x-ms-request-id": "request-id",
"responses": {
"200": {
"description": "Response containing suggested documents that match the partial input.",
"schema": {
"$ref": "#/definitions/SuggestDocumentsResult"
}
},
"default": {
"description": "Error response.",
"schema": {
"$ref": "#/definitions/SearchError"
}
}
}
}
},
"/docs/search.index": {
"post": {
"tags": [
"Documents"
],
"operationId": "Documents_Index",
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/searchservice/addupdate-or-delete-documents"
},
"x-ms-examples": {
"SearchIndexIndexDocuments": {
"$ref": "./examples/SearchIndexIndexDocuments.json"
}
},
"description": "Sends a batch of document write actions to the index.",
"parameters": [
{
"name": "batch",
"in": "body",
"description": "The batch of index actions.",
"required": true,
"schema": {
"$ref": "#/definitions/IndexBatch"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestIdParameter"
}
],
"x-ms-request-id": "request-id",
"responses": {
"200": {
"description": "Response containing the status of operations for all actions in the batch.",
"schema": {
"$ref": "#/definitions/IndexDocumentsResult"
}
},
"207": {
"description": "Response containing the status of operations for all actions in the batch.",
"schema": {
"$ref": "#/definitions/IndexDocumentsResult"
}
},
"default": {
"description": "Error response.",
"schema": {
"$ref": "#/definitions/SearchError"
}
}
}
}
},
"/docs/search.autocomplete": {
"get": {
"tags": [
"Documents"
],
"operationId": "Documents_AutocompleteGet",
"externalDocs": {
"url": "https://docs.microsoft.com/rest/api/searchservice/autocomplete"
},
"x-ms-examples": {
"SearchIndexAutocompleteDocumentsGet": {
"$ref": "./examples/SearchIndexAutocompleteDocumentsGet.json"
}
},
"description": "Autocompletes incomplete query terms based on input text and matching terms in the index.",
"parameters": [
{
"$ref": "#/parameters/ClientRequestIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "search",
"in": "query",
"type": "string",
"required": true,
"description": "The incomplete term which should be auto-completed.",
"x-ms-client-name": "SearchText"
},
{
"name": "suggesterName",
"in": "query",
"type": "string",
"required": true,
"description": "The name of the suggester as specified in the suggesters collection that's part of the index definition."
},
{
"name": "autocompleteMode",
"in": "query",
"type": "string",
"x-nullable": false,
"enum": [
"oneTerm",
"twoTerms",
"oneTermWithContext"
],