seekstorm 3.0.0

Search engine library & multi-tenancy server
Documentation
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
openapi: 3.1.0
info:
  title: SeekStorm REST API documentation
  description: Search engine library & multi-tenancy server
  contact:
    name: Wolf Garbe
    email: wolf.garbe@seekstorm.com
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  version: 3.0.0
servers:
- url: http://127.0.0.1
  description: Local SeekStorm server
paths:
  /api/v1/live:
    get:
      tags:
      - Info
      summary: Live
      description: Returns a live message with the SeekStorm server version.
      operationId: live_api
      responses:
        '200':
          description: SeekStorm server is live
          content:
            text/plain:
              schema:
                type: string
  /api/v1/apikey:
    get:
      tags:
      - API Key
      summary: Get API Key Info
      description: Get info about all indices associated with the specified API key
      operationId: get_apikey_indices_info_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      responses:
        '200':
          description: Indices found, returns a list of index info
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/IndexResponseObject'
        '400':
          description: Request object incorrect
        '401':
          description: API key does not exists
        '404':
          description: Index ID or API key missing
    post:
      tags:
      - API Key
      summary: Create API Key
      description: |-
        Creates an API key and returns the Base64 encoded API key.
        Expects the Base64 encoded master API key in the header.
        Use the master API key displayed in the server console at startup.

        WARNING: make sure to set the MASTER_KEY_SECRET environment variable to a secret, otherwise your generated API keys will be compromised.
        For development purposes you may also use the SeekStorm server console command 'create' to create an demo API key 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA='.
      operationId: create_apikey_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_MASTER_API_KEY
        required: true
        schema:
          type: string
        example: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB=
      requestBody:
        content:
          application/json:
            schema:
              type: object
              description: Quota per API key
              required:
              - indices_max
              - indices_size_max
              - documents_max
              - operations_max
              properties:
                indices_max:
                  type: integer
                  description: number of indices per API key
                  minimum: 0
                indices_size_max:
                  type: integer
                  description: combined index size per API key in MB
                  minimum: 0
                documents_max:
                  type: integer
                  description: combined number of documents in all indices per API key
                  minimum: 0
                operations_max:
                  type: integer
                  description: 'operations per month per API key: index/update/delete/query doc'
                  minimum: 0
                rate_limit:
                  type:
                  - integer
                  - 'null'
                  description: queries per sec per API key
                  minimum: 0
        required: true
      responses:
        '200':
          description: API key created, returns Base64 encoded API key
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: master_apikey missing
    delete:
      tags:
      - API Key
      summary: Delete API Key
      description: |-
        Deletes an API and returns the number of remaining API keys.
        Expects the Base64 encoded master API key in the header.
        WARNING: This will delete all indices and documents associated with the API key.
      operationId: delete_apikey_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_MASTER_API_KEY
        required: true
        schema:
          type: string
        example: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB=
      responses:
        '200':
          description: API key deleted, returns number of remaining API keys
          content:
            text/plain:
              schema:
                type: integer
                format: int64
                minimum: 0
        '401':
          description: master_apikey missing
  /api/v1/index:
    post:
      tags:
      - Index
      summary: Create Index
      description: Create an index within the directory associated with the specified API key and return the index_id.
      operationId: create_index_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      requestBody:
        content:
          application/json:
            schema:
              type: object
              description: Create index request object
              required:
              - index_name
              - schema
              - synonyms
              properties:
                index_name:
                  type: string
                  example: demo_index
                schema:
                  type: array
                  items:
                    $ref: '#/components/schemas/SchemaField'
                  example:
                  - field: title
                    field_type: Text
                    store: true
                    index_lexical: true
                    boost: 10.0
                  - field: body
                    field_type: Text
                    store: true
                    index_lexical: true
                    longest: true
                  - field: url
                    field_type: Text
                    store: true
                    index_lexical: false
                  - field: date
                    field_type: Timestamp
                    store: true
                    index_lexical: false
                    facet: true
                similarity:
                  $ref: '#/components/schemas/LexicalSimilarity'
                tokenizer:
                  $ref: '#/components/schemas/TokenizerType'
                stemmer:
                  $ref: '#/components/schemas/StemmerType'
                stop_words:
                  $ref: '#/components/schemas/StopwordType'
                frequent_words:
                  $ref: '#/components/schemas/FrequentwordType'
                ngram_indexing:
                  type: integer
                  format: int32
                  minimum: 0
                document_compression:
                  $ref: '#/components/schemas/DocumentCompression'
                synonyms:
                  type: array
                  items:
                    $ref: '#/components/schemas/Synonym'
                  example:
                  - terms:
                    - berry
                    - lingonberry
                    - blueberry
                    - gooseberry
                    multiway: false
                force_shard_number:
                  type:
                  - integer
                  - 'null'
                  description: |-
                    Set number of shards manually or automatically.
                    - none: number of shards is set automatically = number of physical processor cores (default)
                    - small: slower indexing, higher latency, slightly higher throughput, faster realtime search, lower RAM consumption
                    - large: faster indexing, lower latency, slightly lower throughput, slower realtime search, higher RAM consumption
                  minimum: 0
                spelling_correction:
                  oneOf:
                  - type: 'null'
                  - $ref: '#/components/schemas/SpellingCorrection'
                    description: |-
                      Enable spelling correction for search queries using the SymSpell algorithm.
                      When enabled, a SymSpell dictionary is incrementally created during indexing of documents and stored in the index.
                      In addition you need to set the parameter `query_rewriting` in the search method to enable it per query.
                      The creation of an individual dictionary derived from the indexed documents improves the correction quality compared to a generic dictionary.
                      An dictionary per index improves the privacy compared to a global dictionary derived from all indices.
                      The dictionary is deleted when delete_index or clear_index is called.
                      Note: enabling spelling correction increases the index size, indexing time and query latency.
                      Default: None. Enable by setting a value for max_dictionary_edit_distance (1..2 recommended).
                      The higher the value, the higher the number of errors taht can be corrected - but also the memory consumption, lookup latency, and the number of false positives.
                query_completion:
                  oneOf:
                  - type: 'null'
                  - $ref: '#/components/schemas/QueryCompletion'
                clustering:
                  $ref: '#/components/schemas/Clustering'
                inference:
                  $ref: '#/components/schemas/Inference'
        required: true
      responses:
        '200':
          description: Index created, returns the index_id
          content:
            text/plain:
              schema:
                type: integer
                format: int64
                minimum: 0
        '400':
          description: Request object incorrect
        '401':
          description: API key does not exists
        '404':
          description: API key does not exists
  /api/v1/index/{index_id}:
    get:
      tags:
      - Index
      summary: Get Index Info
      description: Get index Info from index with index_id
      operationId: get_index_info_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      responses:
        '200':
          description: Index found, returns the index info
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexResponseObject'
        '400':
          description: Request object incorrect
        '401':
          description: api_key missing
        '404':
          description: API key does not exist
    delete:
      tags:
      - Index
      summary: Delete Index
      description: Delete an index within the directory associated with the specified API key and return the number of remaining indices.
      operationId: delete_index_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      responses:
        '200':
          description: Index deleted, returns the number of indices
          content:
            text/plain:
              schema:
                type: integer
                format: int64
                minimum: 0
        '400':
          description: index_id invalid or missing
        '401':
          description: api_key missing
        '404':
          description: api_key does not exists
    patch:
      tags:
      - Index
      summary: Commit Index
      description: |-
        Commit moves indexed documents from the intermediate uncompressed data structure (array lists/HashMap, queryable by realtime search) in RAM
        to the final compressed data structure (roaring bitmap) on Mmap or disk -
        which is persistent, more compact, with lower query latency and allows search with realtime=false.
        Commit is invoked automatically each time 64K documents are newly indexed as well as on close_index (e.g. server quit).
        There is no way to prevent this automatic commit by not manually invoking it.
        But commit can also be invoked manually at any time at any number of newly indexed documents.
        commit is a **hard commit** for persistence on disk. A **soft commit** for searchability
        is invoked implicitly with every index_doc,
        i.e. the document can immediately searched and included in the search results
        if it matches the query AND the query paramter realtime=true is enabled.
        **Use commit with caution, as it is an expensive operation**.
        **Usually, there is no need to invoke it manually**, as it is invoked automatically every 64k documents and when the index is closed with close_index.
        Before terminating the program, always call close_index (commit), otherwise all documents indexed since last (manual or automatic) commit are lost.
        There are only 2 reasons that justify a manual commit:
        1. if you want to search newly indexed documents without using realtime=true for search performance reasons or
        2. if after indexing new documents there won't be more documents indexed (for some time),
           so there won't be (soon) a commit invoked automatically at the next 64k threshold or close_index,
           but you still need immediate persistence guarantees on disk to protect against data loss in the event of a crash.
      operationId: commit_index_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      responses:
        '200':
          description: Index committed, returns the number of committed documents
          content:
            text/plain:
              schema:
                type: integer
                format: int64
                minimum: 0
        '400':
          description: Index id invalid or missing
        '401':
          description: api_key missing
        '404':
          description: API key does not exist
  /api/v1/index/{index_id}/doc_id:
    get:
      tags:
      - Iterator
      summary: Document iterator
      description: |-
        Document iterator via GET and POST are identical, only the way parameters are passed differ.
        The document iterator allows to iterate over all document IDs and documents in the entire index, forward or backward.
        It enables efficient sequential access to every document, even in very large indexes, without running a search.
        Paging through the index works without collecting document IDs to Min-heap in size-limited RAM first.
        The iterator guarantees that only valid document IDs are returned, even though document IDs are not strictly continuous.
        Document IDs can also be fetched in batches, reducing round trips and significantly improving performance, especially when using the REST API.
        Typical use cases include index export, conversion, analytics, audits, and inspection.
        Explanation of "eventually continuous" docid:
        In SeekStorm, document IDs become continuous over time. In a multi-sharded index, each shard maintains its own document ID space.
        Because documents are distributed across shards in a non-deterministic, load-dependent way, shard-local document IDs advance at different rates.
        When these are mapped to global document IDs, temporary gaps can appear.
        As a result, simply iterating from 0 to the total document count may encounter invalid IDs near the end.
        The Document Iterator abstracts this complexity and reliably returns only valid document IDs.
        # Parameters
        - docid=None, take>0: **skip first s document IDs**, then **take next t document IDs** of an index.
        - docid=None, take<0: **skip last s document IDs**, then **take previous t document IDs** of an index.
        - docid=Some, take>0: **skip next s document IDs**, then **take next t document IDs** of an index, relative to a given document ID, with end-of-index indicator.
        - docid=Some, take<0: **skip previous s document IDs**, then **take previous t document IDs**, relative to a given document ID, with start-of-index indicator.
        - take=0: does not make sense, that defies the purpose of get_iterator.
        - The sign of take indicates the direction of iteration: positive take for forward iteration, negative take for backward iteration.
        - The skip parameter is always positive, indicating the number of document IDs to skip before taking document IDs. The skip direction is determined by the sign of take too.
        - include_document: if true, the documents are also retrieved along with their document IDs.
        Next page:     take last  docid from previous result set, skip=1, take=+page_size
        Previous page: take first docid from previous result set, skip=1, take=-page_size
        Returns an IteratorResult, consisting of the number of actually skipped document IDs, and a list of taken document IDs and documents, sorted ascending).
        Detect end/begin of index during iteration: if returned vec.len() < requested take || if returned skip <requested skip
      operationId: get_iterator_api_get
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
        example: 0
      - name: document_id
        in: query
        description: document id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      - name: skip
        in: query
        description: skip document IDs
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
        example: 0
      - name: take
        in: query
        description: take document IDs
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
        example: -1
      - name: include_deleted
        in: query
        description: include deleted document IDs in results
        required: true
        schema:
          type: boolean
        example: false
      - name: include_document
        in: query
        description: include documents in results
        required: true
        schema:
          type: boolean
        example: false
      - name: fields
        in: query
        description: fields to include in document. If not specified, all fields are included
        required: true
        schema:
          type: array
          items:
            type: string
        example:
        - title
        - body
      responses:
        '200':
          description: Document ID found, returning an IteratorResult
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IteratorResult'
        '400':
          description: Request object incorrect
        '401':
          description: api_key missing
        '404':
          description: api_key does not exists
    post:
      tags:
      - Iterator
      summary: Document iterator
      description: |-
        Document iterator via GET and POST are identical, only the way parameters are passed differ.
        The document iterator allows to iterate over all document IDs and documents in the entire index, forward or backward.
        It enables efficient sequential access to every document, even in very large indexes, without running a search.
        Paging through the index works without collecting document IDs to Min-heap in size-limited RAM first.
        The iterator guarantees that only valid document IDs are returned, even though document IDs are not strictly continuous.
        Document IDs can also be fetched in batches, reducing round trips and significantly improving performance, especially when using the REST API.
        Typical use cases include index export, conversion, analytics, audits, and inspection.
        Explanation of "eventually continuous" docid:
        In SeekStorm, document IDs become continuous over time. In a multi-sharded index, each shard maintains its own document ID space.
        Because documents are distributed across shards in a non-deterministic, load-dependent way, shard-local document IDs advance at different rates.
        When these are mapped to global document IDs, temporary gaps can appear.
        As a result, simply iterating from 0 to the total document count may encounter invalid IDs near the end.
        The Document Iterator abstracts this complexity and reliably returns only valid document IDs.
        # Parameters
        - docid=None, take>0: **skip first s document IDs**, then **take next t document IDs** of an index.
        - docid=None, take<0: **skip last s document IDs**, then **take previous t document IDs** of an index.
        - docid=Some, take>0: **skip next s document IDs**, then **take next t document IDs** of an index, relative to a given document ID, with end-of-index indicator.
        - docid=Some, take<0: **skip previous s document IDs**, then **take previous t document IDs**, relative to a given document ID, with start-of-index indicator.
        - take=0: does not make sense, that defies the purpose of get_iterator.
        - The sign of take indicates the direction of iteration: positive take for forward iteration, negative take for backward iteration.
        - The skip parameter is always positive, indicating the number of document IDs to skip before taking document IDs. The skip direction is determined by the sign of take too.
        - include_document: if true, the documents are also retrieved along with their document IDs.
        Next page:     take last  docid from previous result set, skip=1, take=+page_size
        Previous page: take first docid from previous result set, skip=1, take=-page_size
        Returns an IteratorResult, consisting of the number of actually skipped document IDs, and a list of taken document IDs and documents, sorted ascending).
        Detect end/begin of index during iteration: if returned vec.len() < requested take || if returned skip <requested skip
      operationId: get_iterator_api_post
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetIteratorRequest'
            example:
              document_id: null
              skip: 0
              take: -1
        required: true
      responses:
        '200':
          description: Document ID found, returning an IteratorResult
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IteratorResult'
        '400':
          description: Request object incorrect
        '401':
          description: api_key missing
        '404':
          description: api_key does not exists
  /api/v1/index/{index_id}/doc:
    post:
      tags:
      - Document
      summary: Index Document(s)
      description: |-
        Index a JSON document or an array of JSON documents (bulk), each consisting of arbitrary key-value pairs to the index with the specified apikey and index_id, and return the number of indexed docs.
        Index documents enables true real-time search (as opposed to near realtime.search):
        When in query_index the parameter `realtime` is set to `true` then indexed, but uncommitted documents are immediately included in the search results, without requiring a commit or refresh.
        Therefore a explicit commit_index is almost never required, as it is invoked automatically after 64k documents are indexed or on close_index for persistence.
      operationId: index_document_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      requestBody:
        description: JSON document or array of JSON documents, each consisting of key-value pairs
        content:
          application/json:
            schema:
              type: object
              additionalProperties: {}
              propertyNames:
                type: string
            example:
              title: title1 test
              body: body1
              url: url1
        required: true
      responses:
        '200':
          description: Document indexed, returns the number of indexed documents
          content:
            text/plain:
              schema:
                type: integer
                minimum: 0
        '400':
          description: Document object invalid
        '401':
          description: api_key missing
        '404':
          description: API key does not exist
    delete:
      tags:
      - Document
      summary: Delete Document(s) by Request Object
      description: |-
        Delete document by document_id, by array of document_id (bulk), by query (SearchRequestObject) from index with index_id, or clear all documents from index.
        Immediately effective, indpendent of commit.
        Index space used by deleted documents is not reclaimed (until compaction is implemented), but result_count_total is updated.
        By manually deleting the delete.bin file the deleted documents can be recovered (until compaction).
        Deleted documents impact performance, especially but not limited to counting (Count, TopKCount). They also increase the size of the index (until compaction is implemented).
        For minimal query latency delete index and reindexing documents is preferred over deleting documents (until compaction is implemented).
        BM25 scores are not updated (until compaction is implemented), but the impact is minimal.
        Document ID can by obtained by search. When deleting by query (SearchRequestObject), it is advised to perform a dry run search first, to see which documents will be deleted.
      operationId: delete_document_by_object_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      requestBody:
        description: "Specifies the document(s) to delete by different request objects\n- 'clear' : delete all documents in index (clear index)\n- u64 : delete single doc ID\n- [u64] : delete array of doc ID \n- SearchRequestObject : delete documents by query"
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequestObject'
            example:
              query: test
              offset: 0
              length: 10
              realtime: false
              field_filter:
              - title
              - body
        required: true
      responses:
        '200':
          description: Document deleted, returns indexed documents count
          content:
            text/plain:
              schema:
                type: integer
                minimum: 0
        '400':
          description: Request object incorrect
        '401':
          description: api_key missing
        '404':
          description: api_key does not exists
    patch:
      tags:
      - Document
      summary: Update Document(s)
      description: |-
        Update a JSON document or an array of JSON documents (bulk), each consisting of arbitrary key-value pairs to the index with the specified apikey and index_id, and return the number of indexed docs.
        Update document is a combination of delete_document and index_document.
        All current limitations of delete_document apply.
        Update documents enables true real-time search (as opposed to near realtime.search):
        When in query_index the parameter `realtime` is set to `true` then indexed, but uncommitted documents are immediately included in the search results, without requiring a commit or refresh.
        Therefore a explicit commit_index is almost never required, as it is invoked automatically after 64k documents are indexed or on close_index for persistence.
      operationId: update_document_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      requestBody:
        description: Tuple of (doc_id, JSON document) or array of tuples (doc_id, JSON documents), each JSON document consisting of arbitrary key-value pairs
        content:
          application/json:
            schema:
              type: array
              items: false
              prefixItems:
              - type: integer
                format: int64
                minimum: 0
              - type: object
                additionalProperties: {}
                propertyNames:
                  type: string
            example:
            - 0
            - title: title1 test
              body: body1
              url: url1
        required: true
      responses:
        '200':
          description: Document indexed, returns the number of indexed documents
          content:
            text/plain:
              schema:
                type: integer
                minimum: 0
        '400':
          description: Document object invalid
        '401':
          description: api_key missing
        '404':
          description: API key does not exist
  /api/v1/index/{index_id}/file:
    post:
      tags:
      - PDF File
      summary: Index PDF file
      description: |-
        Index PDF file (byte array) to the index with the specified apikey and index_id, and return the number of indexed docs.
        - Converts PDF to a JSON document with "title", "body", "url" and "date" fields and indexes it.
        - extracts title from metatag, or first line of text, or from filename
        - extracts creation date from metatag, or from file creation date (Unix timestamp: the number of seconds since 1 January 1970)
        - copies all ingested pdf files to "files" subdirectory in index
      operationId: index_file_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: file
        in: header
        description: filepath from header for JSON 'url' field
        required: true
        schema:
          type: string
      - name: date
        in: header
        description: date (timestamp) from header, as fallback for JSON 'date' field, if PDF date meta tag unaivailable
        required: true
        schema:
          type: string
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      requestBody:
        content:
          application/octet-stream:
            schema:
              type: array
              items:
                type: integer
                format: int32
                minimum: 0
        required: true
      responses:
        '200':
          description: PDF file indexed, returns the number of indexed documents
          content:
            text/plain:
              schema:
                type: integer
                minimum: 0
        '400':
          description: Document object invalid
        '401':
          description: api_key missing
        '404':
          description: API key does not exist
  /api/v1/index/{index_id}/doc/{document_id}:
    get:
      tags:
      - Document
      summary: Get Document
      description: |-
        Get document from index with index_id
        ⚠️ Use search or get_iterator first to obtain a valid doc_id. Document IDs are not guaranteed to be continuous and gapless!
      operationId: get_document_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      - name: document_id
        in: path
        description: document id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetDocumentRequest'
            example:
              query_terms:
              - test
              fields:
              - title
              - body
              highlights:
              - field: title
                fragment_number: 0
                fragment_size: 1000
                highlight_markup: true
              - field: body
                fragment_number: 2
                fragment_size: 160
                highlight_markup: true
              - field: body
                name: body2
                fragment_number: 0
                fragment_size: 4000
                highlight_markup: true
        required: true
      responses:
        '200':
          description: Document found, returns the JSON document consisting of arbitrary key-value pairs
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
                propertyNames:
                  type: string
        '400':
          description: Request object incorrect
        '401':
          description: api_key missing
        '404':
          description: api_key does not exists
    delete:
      tags:
      - Document
      summary: Delete Document
      description: |-
        Delete document by document_id from index with index_id
        ⚠️ Use search or get_iterator first to obtain a valid doc_id. Document IDs are not guaranteed to be continuous and gapless!
        Immediately effective, indpendent of commit.
        Index space used by deleted documents is not reclaimed (until compaction is implemented), but result_count_total is updated.
        By manually deleting the delete.bin file the deleted documents can be recovered (until compaction).
        Deleted documents impact performance, especially but not limited to counting (Count, TopKCount). They also increase the size of the index (until compaction is implemented).
        For minimal query latency delete index and reindexing documents is preferred over deleting documents (until compaction is implemented).
        BM25 scores are not updated (until compaction is implemented), but the impact is minimal.
      operationId: delete_document_by_parameter_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      - name: document_id
        in: path
        description: document id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      responses:
        '200':
          description: Document deleted, returns indexed documents count
          content:
            text/plain:
              schema:
                type: integer
                minimum: 0
        '400':
          description: Request object incorrect
        '401':
          description: api_key missing
        '404':
          description: api_key does not exists
  /api/v1/index/{index_id}/file/{document_id}:
    get:
      tags:
      - PDF File
      summary: Get PDF file
      description: |-
        Get PDF file from index with index_id
        ⚠️ Use search or get_iterator first to obtain s valid doc_id. Document IDs are not guaranteed to be continuous and gapless!
      operationId: get_file_api
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      - name: document_id
        in: path
        description: document id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      responses:
        '200':
          description: PDF file found, returns the PDF file as byte array
          content:
            application/octet-stream:
              schema:
                type: array
                items:
                  type: integer
                  format: int32
                  minimum: 0
        '400':
          description: Request object incorrect
        '401':
          description: api_key missing
        '404':
          description: api_key does not exists
  /api/v1/index/{index_id}/query:
    get:
      tags:
      - Query
      summary: Query Index
      description: |-
        Query results from index with index_id.
        Query index via GET is a convenience function, that offers only a limited set of parameters compared to Query Index via POST.
      operationId: query_index_api_get
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
        example: 0
      - name: query
        in: query
        description: query string
        required: true
        schema:
          type: string
        example: hello
      - name: offset
        in: query
        description: result offset
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
        example: 0
      - name: length
        in: query
        description: result length
        required: true
        schema:
          type: integer
          format: int64
          minimum: 1
        example: 10
      - name: realtime
        in: query
        description: include uncommitted documents
        required: true
        schema:
          type: boolean
        example: false
      - name: enable_empty_query
        in: query
        description: allow empty query
        required: true
        schema:
          type: boolean
        example: false
      responses:
        '200':
          description: Results found, returns the SearchResultObject
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResultObject'
        '400':
          description: No query specified
        '401':
          description: api_key missing
        '404':
          description: API key does not exist
    post:
      tags:
      - Query
      summary: Query Index
      description: |-
        Query results from index with index_id
        The following parameters are supported:
        - Result type
        - Result sorting
        - Realtime search
        - Field filter
        - Fields to include in search results
        - Distance fields: derived fields from distance calculations
        - Highlights: keyword-in-context snippets and term highlighting
        - Query facets: which facets fields to calculate and return at query time
        - Facet filter: filter facets by field and value
        - Result sort: sort results by field and direction
        - Query type default: default query type, if not specified in query
      operationId: query_index_api_post
      parameters:
      - name: apikey
        in: header
        description: YOUR_SECRET_API_KEY
        required: true
        schema:
          type: string
        example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
      - name: index_id
        in: path
        description: index id
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
      requestBody:
        content:
          application/json:
            schema:
              type: object
              description: Search request object
              required:
              - query
              properties:
                query:
                  type: string
                  description: Query string, search operators + - "" are recognized.
                query_vector:
                  description: 'Optional query vector: If None, then the query vector is derived from the query string using the specified model. If Some, then the query vector is used for semantic search and the query string is only used for lexical search and highlighting.'
                enable_empty_query:
                  type: boolean
                  description: |-
                    Enable empty query: if true, an empty query string iterates through all indexed documents, supporting the query parameters: offset, length, query_facets, facet_filter, result_sort,
                    otherwise an empty query string returns no results.
                    Typical use cases include index browsing, index export, conversion, analytics, audits, and inspection.
                  default: false
                  example: false
                offset:
                  type: integer
                  description: Offset of search results to return.
                  default: 0
                  example: 0
                  minimum: 0
                length:
                  type: integer
                  description: Number of search results to return.
                  default: 10
                  example: 10
                  minimum: 1
                result_type:
                  $ref: '#/components/schemas/ResultType'
                realtime:
                  type: boolean
                  description: 'True realtime search: include indexed, but uncommitted documents into search results.'
                highlights:
                  type: array
                  items:
                    $ref: '#/components/schemas/Highlight'
                field_filter:
                  type: array
                  items:
                    type: string
                  description: Specify field names where to search at querytime, whereas SchemaField.indexed is set at indextime. If empty then all indexed fields are searched.
                  example:
                  - title
                fields:
                  type: array
                  items:
                    type: string
                distance_fields:
                  type: array
                  items:
                    $ref: '#/components/schemas/DistanceField'
                query_facets:
                  type: array
                  items:
                    $ref: '#/components/schemas/QueryFacet'
                facet_filter:
                  type: array
                  items:
                    $ref: '#/components/schemas/FacetFilter'
                result_sort:
                  type: array
                  items:
                    $ref: '#/components/schemas/ResultSort'
                  description: |-
                    Sort field and order:
                    Search results are sorted by the specified facet field, either in ascending or descending order.
                    If no sort field is specified, then the search results are sorted by rank in descending order per default.
                    Multiple sort fields are combined by a "sort by, then sort by"-method ("tie-breaking"-algorithm).
                    The results are sorted by the first field, and only for those results where the first field value is identical (tie) the results are sub-sorted by the second field,
                    until the n-th field value is either not equal or the last field is reached.
                    A special _score field (BM25x), reflecting how relevant the result is for a given search query (phrase match, match in title etc.) can be combined with any of the other sort fields as primary, secondary or n-th search criterium.
                    Sort is only enabled on facet fields that are defined in schema at create_index!
                    Examples:
                    - result_sort = vec![ResultSort {field: "price".into(), order: SortOrder::Descending, base: FacetValue::None},ResultSort {field: "language".into(), order: SortOrder::Ascending, base: FacetValue::None}];
                    - result_sort = vec![ResultSort {field: "location".into(),order: SortOrder::Ascending, base: FacetValue::Point(vec![38.8951, -77.0364])}];
                  example:
                  - field: date
                    order: Ascending
                    base: None
                query_type_default:
                  $ref: '#/components/schemas/QueryType'
                query_rewriting:
                  $ref: '#/components/schemas/QueryRewriting'
                search_mode:
                  $ref: '#/components/schemas/SearchMode'
        required: true
      responses:
        '200':
          description: Results found, returns the SearchResultObject
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResultObject'
        '400':
          description: Request object incorrect
        '401':
          description: api_key missing
        '404':
          description: API key does not exist
components:
  schemas:
    AnnMode:
      oneOf:
      - type: string
        description: Search in all clusters (default)
        enum:
        - All
      - type: object
        description: |-
          Search only in the clusters with the highest similarity scores to the query vector.
          The number of clusters to search is specified by the n-probe parameter.
          You cannot directly set a specific, guaranteed recall number (e.g., "always give me 95% recall@10"). There is no one-fits-all, there is no automatism.
          Instead, you manually tune parameters that control the tradeoff between query latency and accuracy.
          Because recall depends heavily on the structure of your specific data (distribution, dimensionality, and clustering) and queries,
          there is always a trial-and-error (benchmarking) phase required to determine the right settings for your data.
          Examples:
          wikipedia, VectorSimilarity::Dot, dimensions: 64, Precision::F32, Clustering::Auto, Clustering::I8, recall@10=95% -> Nprobe(55)
          wikipedia, VectorSimilarity::Dot, dimensions: 64, Precision::F32, Clustering::Auto, Clustering::I8, recall@10=99% -> Nprobe(140)
          sift1m, VectorSimilarity::Euclidean, dimensions: 128, Precision::F32, Clustering::Auto, Quantization::None, recall@10=95% -> Nprobe(11)
          sift1m, VectorSimilarity::Euclidean, dimensions: 128, Precision::F32, Clustering::Auto, Quantization::None, recall@10=99% -> Nprobe(22)
        required:
        - Nprobe
        properties:
          Nprobe:
            type: integer
            description: |-
              Search only in the clusters with the highest similarity scores to the query vector.
              The number of clusters to search is specified by the n-probe parameter.
              You cannot directly set a specific, guaranteed recall number (e.g., "always give me 95% recall@10"). There is no one-fits-all, there is no automatism.
              Instead, you manually tune parameters that control the tradeoff between query latency and accuracy.
              Because recall depends heavily on the structure of your specific data (distribution, dimensionality, and clustering) and queries,
              there is always a trial-and-error (benchmarking) phase required to determine the right settings for your data.
              Examples:
              wikipedia, VectorSimilarity::Dot, dimensions: 64, Precision::F32, Clustering::Auto, Clustering::I8, recall@10=95% -> Nprobe(55)
              wikipedia, VectorSimilarity::Dot, dimensions: 64, Precision::F32, Clustering::Auto, Clustering::I8, recall@10=99% -> Nprobe(140)
              sift1m, VectorSimilarity::Euclidean, dimensions: 128, Precision::F32, Clustering::Auto, Quantization::None, recall@10=95% -> Nprobe(11)
              sift1m, VectorSimilarity::Euclidean, dimensions: 128, Precision::F32, Clustering::Auto, Quantization::None, recall@10=99% -> Nprobe(22)
            minimum: 0
      - type: object
        description: |-
          Search only in clusters with similarity scores to the query vector above the specified threshold.
          For dot product similarity, the similarity threshold should be between 0.0 and 1.0, where higher values indicate higher similarity (identical=1.0).
          For Euclidean distance similarity, the similarity threshold should be between 0.0 and infinity, where lower values indicate higher similarity (identical=0.0).
        required:
        - Similaritythreshold
        properties:
          Similaritythreshold:
            type: number
            format: float
            description: |-
              Search only in clusters with similarity scores to the query vector above the specified threshold.
              For dot product similarity, the similarity threshold should be between 0.0 and 1.0, where higher values indicate higher similarity (identical=1.0).
              For Euclidean distance similarity, the similarity threshold should be between 0.0 and infinity, where lower values indicate higher similarity (identical=0.0).
      - type: object
        description: |-
          Search only in the clusters with the highest similarity scores to the query vector, but only if their similarity scores are above the specified threshold, and up to the number of clusters specified by the n-probe parameter.
          For dot product similarity, the similarity threshold should be between 0.0 and 1.0, where higher values indicate higher similarity (identical=1.0).
          For Euclidean distance similarity, the similarity threshold should be between 0.0 and infinity, where lower values indicate higher similarity (identical=0.0).
        required:
        - NprobeSimilaritythreshold
        properties:
          NprobeSimilaritythreshold:
            type: array
            items:
              type: object
            description: |-
              Search only in the clusters with the highest similarity scores to the query vector, but only if their similarity scores are above the specified threshold, and up to the number of clusters specified by the n-probe parameter.
              For dot product similarity, the similarity threshold should be between 0.0 and 1.0, where higher values indicate higher similarity (identical=1.0).
              For Euclidean distance similarity, the similarity threshold should be between 0.0 and infinity, where lower values indicate higher similarity (identical=0.0).
            maxItems: 2
            minItems: 2
      description: Specifies in which cluster to search for ANN results.
    Clustering:
      oneOf:
      - type: string
        description: Exhaustive vector search, no clustering/ANN.
        enum:
        - None
      - type: string
        description: The number of clusters is automatically determined depending on the number of vectors per level and shard.
        enum:
        - Auto
      - type: object
        description: Set the number of clusters to a fixed value per level and shard.
        required:
        - Fixed
        properties:
          Fixed:
            type: integer
            description: Set the number of clusters to a fixed value per level and shard.
            minimum: 0
      description: 'Clustering defines the clustering behavior for approximate nearest neighbor (ANN) search: None, Auto, Fixed(usize).'
    DistanceField:
      type: object
      description: DistanceField defines a field for proximity search.
      required:
      - field
      - distance
      - base
      - unit
      properties:
        field:
          type: string
          description: field name of a numeric facet field (currently onyl Point field type supported)
        distance:
          type: string
          description: field name of the distance field we are deriving from the numeric facet field (Point type) and the base (Point type)
        base:
          $ref: '#/components/schemas/Vec'
          description: base point (lat,lon) for distance calculation
        unit:
          $ref: '#/components/schemas/DistanceUnit'
          description: 'distance unit for the distance field: kilometers or miles'
    DistanceUnit:
      type: string
      description: 'DistanceUnit defines the unit for distance calculation: kilometers or miles.'
      enum:
      - Kilometers
      - Miles
    DocumentCompression:
      type: string
      description: Compression type for document store
      enum:
      - None
      - Lz4
      - Snappy
      - Zstd
    FacetFilter:
      oneOf:
      - type: object
        description: U8 range filter
        required:
        - U8
        properties:
          U8:
            type: object
            description: U8 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeU8'
                description: 'filter: range start, range end'
      - type: object
        description: U16 range filter
        required:
        - U16
        properties:
          U16:
            type: object
            description: U16 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeU16'
                description: 'filter: range start, range end'
      - type: object
        description: U32 range filter
        required:
        - U32
        properties:
          U32:
            type: object
            description: U32 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeU32'
                description: 'filter: range start, range end'
      - type: object
        description: U64 range filter
        required:
        - U64
        properties:
          U64:
            type: object
            description: U64 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeU64'
                description: 'filter: range start, range end'
      - type: object
        description: I8 range filter
        required:
        - I8
        properties:
          I8:
            type: object
            description: I8 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeI8'
                description: 'filter: range start, range end'
      - type: object
        description: I16 range filter
        required:
        - I16
        properties:
          I16:
            type: object
            description: I16 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeI16'
                description: 'filter: range start, range end'
      - type: object
        description: I32 range filter
        required:
        - I32
        properties:
          I32:
            type: object
            description: I32 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeI32'
                description: 'filter: range start, range end'
      - type: object
        description: I64 range filter
        required:
        - I64
        properties:
          I64:
            type: object
            description: I64 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeI64'
                description: 'filter: range start, range end'
      - type: object
        description: 'Timestamp range filter, Unix timestamp: the number of seconds since 1 January 1970'
        required:
        - Timestamp
        properties:
          Timestamp:
            type: object
            description: 'Timestamp range filter, Unix timestamp: the number of seconds since 1 January 1970'
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeI64'
                description: 'filter: range start, range end'
      - type: object
        description: F32 range filter
        required:
        - F32
        properties:
          F32:
            type: object
            description: F32 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeF32'
                description: 'filter: range start, range end'
      - type: object
        description: F64 range filter
        required:
        - F64
        properties:
          F64:
            type: object
            description: F64 range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                $ref: '#/components/schemas/RangeF64'
                description: 'filter: range start, range end'
      - type: object
        description: String16 filter
        required:
        - String16
        properties:
          String16:
            type: object
            description: String16 filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                type: array
                items:
                  type: string
                description: 'filter: array of facet string values'
      - type: object
        description: StringSet16 filter
        required:
        - StringSet16
        properties:
          StringSet16:
            type: object
            description: StringSet16 filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                type: array
                items:
                  type: string
                description: 'filter: array of facet string values'
      - type: object
        description: String32 filter
        required:
        - String32
        properties:
          String32:
            type: object
            description: String32 filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                type: array
                items:
                  type: string
                description: 'filter: array of facet string values'
      - type: object
        description: StringSet32 filter
        required:
        - StringSet32
        properties:
          StringSet32:
            type: object
            description: StringSet32 filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                type: array
                items:
                  type: string
                description: 'filter: array of facet string values'
      - type: object
        description: Point proximity range filter
        required:
        - Point
        properties:
          Point:
            type: object
            description: Point proximity range filter
            required:
            - field
            - filter
            properties:
              field:
                type: string
                description: field name
              filter:
                type: array
                items: false
                prefixItems:
                - type: array
                  items:
                    type: number
                    format: double
                - type: object
                  description: F64 range filter
                  required:
                  - start
                  - end
                  properties:
                    start:
                      type: number
                      format: double
                      description: range start
                    end:
                      type: number
                      format: double
                      description: range end
                - type: string
                  description: 'DistanceUnit defines the unit for distance calculation: kilometers or miles.'
                  enum:
                  - Kilometers
                  - Miles
                description: 'filter: base point (latitude/lat, longitude/lon), proximity range start, proximity range end, distance unit'
      description: |-
        FacetFilter:
        either numerical range facet filter (range start/end) or
        string facet filter (vector of strings) at least one (boolean OR) must match.
    FacetValue:
      oneOf:
      - type: object
        description: Boolean value
        required:
        - Bool
        properties:
          Bool:
            type: boolean
            description: Boolean value
      - type: object
        description: Unsigned 8-bit integer
        required:
        - U8
        properties:
          U8:
            type: integer
            format: int32
            description: Unsigned 8-bit integer
            minimum: 0
      - type: object
        description: Unsigned 16-bit integer
        required:
        - U16
        properties:
          U16:
            type: integer
            format: int32
            description: Unsigned 16-bit integer
            minimum: 0
      - type: object
        description: Unsigned 32-bit integer
        required:
        - U32
        properties:
          U32:
            type: integer
            format: int32
            description: Unsigned 32-bit integer
            minimum: 0
      - type: object
        description: Unsigned 64-bit integer
        required:
        - U64
        properties:
          U64:
            type: integer
            format: int64
            description: Unsigned 64-bit integer
            minimum: 0
      - type: object
        description: Signed 8-bit integer
        required:
        - I8
        properties:
          I8:
            type: integer
            format: int32
            description: Signed 8-bit integer
      - type: object
        description: Signed 16-bit integer
        required:
        - I16
        properties:
          I16:
            type: integer
            format: int32
            description: Signed 16-bit integer
      - type: object
        description: Signed 32-bit integer
        required:
        - I32
        properties:
          I32:
            type: integer
            format: int32
            description: Signed 32-bit integer
      - type: object
        description: Signed 64-bit integer
        required:
        - I64
        properties:
          I64:
            type: integer
            format: int64
            description: Signed 64-bit integer
      - type: object
        description: 'Unix timestamp: the number of seconds since 1 January 1970'
        required:
        - Timestamp
        properties:
          Timestamp:
            type: integer
            format: int64
            description: 'Unix timestamp: the number of seconds since 1 January 1970'
      - type: object
        description: 32-bit floating point number
        required:
        - F32
        properties:
          F32:
            type: number
            format: float
            description: 32-bit floating point number
      - type: object
        description: 64-bit floating point number
        required:
        - F64
        properties:
          F64:
            type: number
            format: double
            description: 64-bit floating point number
      - type: object
        description: String value
        required:
        - String
        properties:
          String:
            type: string
            description: String value
      - type: object
        description: String set value
        required:
        - StringSet
        properties:
          StringSet:
            type: array
            items:
              type: string
            description: String set value
      - type: object
        description: 'Point value: latitude/lat, longitude/lon'
        required:
        - Point
        properties:
          Point:
            $ref: '#/components/schemas/Vec'
            description: 'Point value: latitude/lat, longitude/lon'
      - type: string
        description: No value
        enum:
        - None
      description: 'FacetValue: Facet field value types'
    FieldType:
      type: string
      description: 'FieldType defines the type of a field in the document: u8, u16, u32, u64, i8, i16, i32, i64, f32, f64, point, string, stringset, text.'
      enum:
      - U8
      - U16
      - U32
      - U64
      - I8
      - I16
      - I32
      - I64
      - Timestamp
      - F32
      - F64
      - Bool
      - String16
      - String32
      - StringSet16
      - StringSet32
      - Point
      - Text
      - Json
      - Binary
    FrequentwordType:
      oneOf:
      - type: string
        description: No frequent words
        enum:
        - None
      - type: string
        description: English frequent words
        enum:
        - English
      - type: string
        description: German frequent words
        enum:
        - German
      - type: string
        description: French frequent words
        enum:
        - French
      - type: string
        description: Spanish frequent words
        enum:
        - Spanish
      - type: object
        description: Custom frequent words
        required:
        - Custom
        properties:
          Custom:
            type: object
            description: Custom frequent words
            required:
            - terms
            properties:
              terms:
                type: array
                items:
                  type: string
                description: List of frequent terms, max. 256 terms.
      description: |-
        FrequentwordType defines the frequentword behavior: None, English, German, French, Spanish, Custom.
        Adjacent frequent terms are combined to bi-grams, both in index and query: for shorter posting lists and faster phrase queries (only for bi-grams of frequent terms).
        The lists of stop_words and frequent_words should not overlap.
    GetDocumentRequest:
      type: object
      description: Specifies which document and which field to return
      properties:
        query_terms:
          type: array
          items:
            type: string
          description: query terms for highlighting
        highlights:
          type: array
          items:
            $ref: '#/components/schemas/Highlight'
          description: 'which fields to highlight: create keyword-in-context fragments and highlight terms'
        fields:
          type: array
          items:
            type: string
          description: which fields to return
        distance_fields:
          type: array
          items:
            $ref: '#/components/schemas/DistanceField'
          description: which distance fields to derive and return
    GetIteratorRequest:
      type: object
      description: Specifies which document ID to return
      properties:
        document_id:
          type:
          - integer
          - 'null'
          format: int64
          description: |-
            base document ID to start the iteration from
            Use None to start from the beginning (take>0) or the end (take<0) of the index
            In JSON use null for None
          minimum: 0
        skip:
          type: integer
          description: the number of document IDs to skip
          minimum: 0
        take:
          type: integer
          description: |-
            the number of document IDs to return
            take>0: take next t document IDs, take<0: take previous t document IDs
        include_deleted:
          type: boolean
          description: if true, also deleted document IDs are included in the result
        include_document:
          type: boolean
          description: if true, the documents are also retrieved along with their document IDs
        fields:
          type: array
          items:
            type: string
          description: which fields to return (if include_document is true, if empty then return all stored fields)
    Highlight:
      type: object
      description: |-
        Specifies the number and size of fragments (snippets, summaries) to generate from each specified field to provide a "keyword in context" (KWIC) functionality.
        With highlight_markup the matching query terms within the fragments can be highlighted with HTML markup.
      required:
      - field
      properties:
        field:
          type: string
          description: Specifies the field from which the fragments  (snippets, summaries) are created.
        name:
          type: string
          description: |-
            Allows to specifiy multiple highlight result fields from the same source field, leaving the original field intact,
            Default: if name is empty then field is used instead, i.e the original field is overwritten with the highlight.
        fragment_number:
          type: integer
          description: If 0/default then return the full original text without fragmenting.
          minimum: 0
        fragment_size:
          type: integer
          description: |-
            Specifies the length of a highlight fragment.
            The default 0 returns the full original text without truncating, but still with highlighting if highlight_markup is enabled.
          minimum: 0
        highlight_markup:
          type: boolean
          description: if true, the matching query terms within the fragments are highlighted with HTML markup **\<b\>term\<\/b\>**.
        pre_tags:
          type: string
          description: |-
            Specifies the markup tags to insert **before** each highlighted term (e.g. \"\<b\>\" or \"\<em\>\"). This can be any string, but is most often an HTML or XML tag.
            Only used when **highlight_markup** is set to true.
        post_tags:
          type: string
          description: |-
            Specifies the markup tags to insert **after** each highlighted term. (e.g. \"\<\/b\>\" or \"\<\/em\>\"). This can be any string, but is most often an HTML or XML tag.
            Only used when **highlight_markup** is set to true.
    IndexResponseObject:
      type: object
      required:
      - id
      - name
      - schema
      - indexed_doc_count
      - committed_doc_count
      - operations_count
      - query_count
      - version
      - facets_minmax
      properties:
        id:
          type: integer
          format: int64
          description: Index ID
          minimum: 0
        name:
          type: string
          description: Index name
          example: demo_index
        schema:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SchemaField'
          propertyNames:
            type: string
          example:
            title:
              field: title
              store: true
              index_lexical: true
              field_type: Text
              boost: 10.0
              field_id: 0
            body:
              field: body
              store: true
              index_lexical: true
              field_type: Text
              field_id: 1
            url:
              field: url
              store: true
              index_lexical: false
              field_type: Text
              field_id: 2
            date:
              field: date
              store: true
              index_lexical: false
              field_type: Timestamp
              facet: true
              field_id: 3
        indexed_doc_count:
          type: integer
          description: Number of indexed documents
          minimum: 0
        committed_doc_count:
          type: integer
          description: Number of committed documents
          minimum: 0
        operations_count:
          type: integer
          format: int64
          description: 'Number of operations: index, update, delete, queries'
          minimum: 0
        query_count:
          type: integer
          format: int64
          description: Number of queries, for quotas and billing
          minimum: 0
        version:
          type: string
          description: SeekStorm version the index was created with
          example: 0.11.1
        facets_minmax:
          type: object
          description: Minimum and maximum values of numeric facet fields
          additionalProperties:
            $ref: '#/components/schemas/MinMaxFieldJson'
          propertyNames:
            type: string
          example:
            date:
              min: 831306011
              max: 1730901447
    Inference:
      oneOf:
      - type: object
        description: Predefined model2vec models, already normalized + dot product = cosine similarity, use the same similarity metric that was used during the training of the embedding model.
        required:
        - Model2Vec
        properties:
          Model2Vec:
            type: object
            description: Predefined model2vec models, already normalized + dot product = cosine similarity, use the same similarity metric that was used during the training of the embedding model.
            required:
            - model
            - chunk_size
            - quantization
            properties:
              model:
                $ref: '#/components/schemas/Model'
                description: Predefined model type for embeddings.
              chunk_size:
                type: integer
                description: Chunk size for splitting input text, e.g. 1000 characters. This should be the same chunk size that was used during the training of the embedding model.
                minimum: 0
              quantization:
                $ref: '#/components/schemas/Quantization'
                description: Quantization method for embeddings.
      - type: object
        description: Custom model2vec models, already normalized + dot product = cosine similarity, use the same similarity metric that was used during the training of the embedding model.
        required:
        - Model2VecCustom
        properties:
          Model2VecCustom:
            type: object
            description: Custom model2vec models, already normalized + dot product = cosine similarity, use the same similarity metric that was used during the training of the embedding model.
            required:
            - path
            - chunk_size
            - quantization
            properties:
              path:
                type: string
                description: Model ID from Hugging Face or local path to model directory, e.g. "minishlab/potion-base-2M"
              chunk_size:
                type: integer
                description: Chunk size for splitting input text, e.g. 1000 characters. This should be the same chunk size that was used during the training of the embedding model.
                minimum: 0
              quantization:
                $ref: '#/components/schemas/Quantization'
                description: Quantization method for embeddings.
      - type: object
        description: External inference
        required:
        - External
        properties:
          External:
            type: object
            description: External inference
            required:
            - dimensions
            - precision
            - quantization
            - similarity
            properties:
              dimensions:
                type: integer
                description: Number of dimensions for the embeddings.
                minimum: 0
              precision:
                $ref: '#/components/schemas/Precision'
                description: Data type for embeddings.
              quantization:
                $ref: '#/components/schemas/Quantization'
                description: Quantization method for embeddings.
              similarity:
                $ref: '#/components/schemas/VectorSimilarity'
                description: |-
                  Similarity metric to use for comparing embeddings, e.g. cosine similarity or euclidean distance.
                  This should be the same similarity metric that was used during the training of the embedding model.
      - type: string
        description: No inference
        enum:
        - None
      description: |-
        Inference type, to transform input text into vector embeddings.
        This can be a predefined model2vec model, a custom model2vec model, an external inference, or no inference.
    IteratorResult:
      type: object
      description: Iterator
      required:
      - skip
      - results
      properties:
        skip:
          type: integer
          description: number of actually skipped documents
          minimum: 0
        results:
          type: array
          items:
            $ref: '#/components/schemas/IteratorResultItem'
          description: document IDs, and optionally the documents themselves
    IteratorResultItem:
      type: object
      description: Iterator result
      required:
      - doc_id
      properties:
        doc_id:
          type: integer
          format: int64
          description: document ID
          minimum: 0
        doc:
          type:
          - object
          - 'null'
          description: document
          additionalProperties: {}
          propertyNames:
            type: string
    LexicalSimilarity:
      type: string
      description: |-
        Similarity type defines the scoring and ranking of the search results:
        - Bm25f: considers documents composed from several fields, with different field lengths and importance
        - Bm25fProximity: considers term proximity, e.g. for implicit phrase search with improved relevancy
      enum:
      - Bm25f
      - Bm25fProximity
    MinMaxFieldJson:
      type: object
      description: MinMaxFieldJson is a JSON representation of the minimum and maximum value of a field.
      required:
      - min
      - max
      properties:
        min:
          description: minimum value of the field
        max:
          description: maximum value of the field
    Model:
      type: string
      description: Predefined model type for embeddings.
      enum:
      - PotionBase32M
      - PotionMultilingual128M
      - PotionRetrieval32M
      - PotionBase8M
      - PotionBase4M
      - PotionBase2M
    Precision:
      type: string
      description: Vector precision
      enum:
      - None
      - F32
      - I8
    Quantization:
      type: string
      description: Quantization method for embeddings.
      enum:
      - I8
      - None
    QueryCompletion:
      type: object
      description: Defines spelling correction (fuzzy search) settings for an index.
      required:
      - max_completion_entries
      properties:
        max_completion_entries:
          type: integer
          description: |-
            Maximum number of completions to generate during indexing
            disabled if == 0
          minimum: 0
    QueryFacet:
      oneOf:
      - type: object
        description: Range segment definition for numerical facet field values of type u8
        required:
        - U8
        properties:
          U8:
            type: object
            description: Range segment definition for numerical facet field values of type u8
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int32
                    minimum: 0
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type u16
        required:
        - U16
        properties:
          U16:
            type: object
            description: Range segment definition for numerical facet field values of type u16
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int32
                    minimum: 0
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type u32
        required:
        - U32
        properties:
          U32:
            type: object
            description: Range segment definition for numerical facet field values of type u32
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int32
                    minimum: 0
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type u64
        required:
        - U64
        properties:
          U64:
            type: object
            description: Range segment definition for numerical facet field values of type u64
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int64
                    minimum: 0
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type i8
        required:
        - I8
        properties:
          I8:
            type: object
            description: Range segment definition for numerical facet field values of type i8
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int32
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type i16
        required:
        - I16
        properties:
          I16:
            type: object
            description: Range segment definition for numerical facet field values of type i16
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int32
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type i32
        required:
        - I32
        properties:
          I32:
            type: object
            description: Range segment definition for numerical facet field values of type i32
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int32
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type i64
        required:
        - I64
        properties:
          I64:
            type: object
            description: Range segment definition for numerical facet field values of type i64
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int64
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type Unix timestamp
        required:
        - Timestamp
        properties:
          Timestamp:
            type: object
            description: Range segment definition for numerical facet field values of type Unix timestamp
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: integer
                    format: int64
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type f32
        required:
        - F32
        properties:
          F32:
            type: object
            description: Range segment definition for numerical facet field values of type f32
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: number
                    format: float
                description: range label, range start
      - type: object
        description: Range segment definition for numerical facet field values of type f64
        required:
        - F64
        properties:
          F64:
            type: object
            description: Range segment definition for numerical facet field values of type f64
            required:
            - field
            - range_type
            - ranges
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: number
                    format: double
                description: range label, range start
      - type: object
        description: Facet field values of type string
        required:
        - String16
        properties:
          String16:
            type: object
            description: Facet field values of type string
            required:
            - field
            - prefix
            - length
            properties:
              field:
                type: string
                description: field name
              prefix:
                type: string
                description: Prefix filter of facet values to return
              length:
                type: integer
                format: int32
                description: maximum number of facet values to return
                minimum: 0
      - type: object
        description: Facet field values of type string
        required:
        - String32
        properties:
          String32:
            type: object
            description: Facet field values of type string
            required:
            - field
            - prefix
            - length
            properties:
              field:
                type: string
                description: field name
              prefix:
                type: string
                description: Prefix filter of facet values to return
              length:
                type: integer
                format: int32
                description: maximum number of facet values to return
                minimum: 0
      - type: object
        description: Facet field values of type string set
        required:
        - StringSet16
        properties:
          StringSet16:
            type: object
            description: Facet field values of type string set
            required:
            - field
            - prefix
            - length
            properties:
              field:
                type: string
                description: field name
              prefix:
                type: string
                description: Prefix filter of facet values to return
              length:
                type: integer
                format: int32
                description: maximum number of facet values to return
                minimum: 0
      - type: object
        description: Facet field values of type string set
        required:
        - StringSet32
        properties:
          StringSet32:
            type: object
            description: Facet field values of type string set
            required:
            - field
            - prefix
            - length
            properties:
              field:
                type: string
                description: field name
              prefix:
                type: string
                description: Prefix filter of facet values to return
              length:
                type: integer
                format: int32
                description: maximum number of facet values to return
                minimum: 0
      - type: object
        description: Range segment definition for numerical facet field values of type Point (distance between base of type Point and facet field of type Point)
        required:
        - Point
        properties:
          Point:
            type: object
            description: Range segment definition for numerical facet field values of type Point (distance between base of type Point and facet field of type Point)
            required:
            - field
            - range_type
            - ranges
            - base
            - unit
            properties:
              field:
                type: string
                description: field name
              range_type:
                $ref: '#/components/schemas/RangeType'
                description: range type (CountWithinRange,CountBelowRange,CountAboveRange)
              ranges:
                type: array
                items:
                  type: array
                  items: false
                  prefixItems:
                  - type: string
                  - type: number
                    format: double
                description: range label, range start
              base:
                $ref: '#/components/schemas/Vec'
                description: base point (latitude/lat, longitude/lon)
              unit:
                $ref: '#/components/schemas/DistanceUnit'
                description: distance unit (kilometers/miles)
      - type: string
        description: No query facet
        enum:
        - None
      description: |-
        Defines the query facets:
        - string facet field values
        - range segments for numerical facet field values
    QueryRewriting:
      oneOf:
      - type: string
        description: |-
          Query rewriting disabled, returns query results for query as-is, returns no suggestions for corrected or completed query.
          No performance overhead for spelling correction and suggestions.
        enum:
        - SearchOnly
      - type: object
        description: |-
          Query rewriting disabled, returns query results for original query string, returns suggestions for corrected or completed query.
          Additional latency for spelling suggestions.
        required:
        - SearchSuggest
        properties:
          SearchSuggest:
            type: object
            description: |-
              Query rewriting disabled, returns query results for original query string, returns suggestions for corrected or completed query.
              Additional latency for spelling suggestions.
            required:
            - distance
            properties:
              correct:
                type:
                - integer
                - 'null'
                description: |-
                  Enable query correction, for queries with query string length >= threshold
                  A minimum length of 2 is advised to prevent irrelevant suggestions and results.
                minimum: 0
              distance:
                type: integer
                description: 'The edit distance thresholds for suggestions: 1..2 recommended; higher values increase latency and memory consumption.'
                minimum: 0
              term_length_threshold:
                type:
                - array
                - 'null'
                items:
                  type: integer
                  minimum: 0
                description: |-
                  Term length thresholds for each edit distance.
                    None:    max_dictionary_edit_distance for all terms lengths
                    Some(\[4\]):    max_dictionary_edit_distance for all terms lengths >= 4,
                    Some(\[2,8\]):    max_dictionary_edit_distance for all terms lengths >=2, max_dictionary_edit_distance +1 for all terms for lengths>=8
              complete:
                type:
                - integer
                - 'null'
                description: |-
                  Enable query completions, for queries with query string length >= threshold, in addition to spelling corrections
                  A minimum length of 2 is advised to prevent irrelevant suggestions and results.
                minimum: 0
              length:
                type:
                - integer
                - 'null'
                description: An option to limit maximum number of returned suggestions.
                minimum: 0
      - type: object
        description: |-
          Query rewriting enabled, returns query results for spelling corrected or completed query string (=instant search), returns suggestions for corrected or completed query.
          Additional latency for spelling correction and suggestions.
        required:
        - SearchRewrite
        properties:
          SearchRewrite:
            type: object
            description: |-
              Query rewriting enabled, returns query results for spelling corrected or completed query string (=instant search), returns suggestions for corrected or completed query.
              Additional latency for spelling correction and suggestions.
            required:
            - distance
            properties:
              correct:
                type:
                - integer
                - 'null'
                description: |-
                  Enable query correction, for queries with query string length >= threshold
                  A minimum length of 2 is advised to prevent irrelevant suggestions and results.
                minimum: 0
              distance:
                type: integer
                description: 'The edit distance thresholds for suggestions: 1..2 recommended; higher values increase latency and memory consumption.'
                minimum: 0
              term_length_threshold:
                type:
                - array
                - 'null'
                items:
                  type: integer
                  minimum: 0
                description: |-
                  Term length thresholds for each edit distance.
                    None:    max_dictionary_edit_distance for all terms lengths
                    Some(\[4\]):    max_dictionary_edit_distance for all terms lengths >= 4,
                    Some(\[2,8\])    max_dictionary_edit_distance for all terms lengths >=2, max_dictionary_edit_distance +1 for all terms for lengths>=8
              complete:
                type:
                - integer
                - 'null'
                description: |-
                  Enable query completions, for queries with query string length >= threshold, in addition to spelling corrections
                  A minimum length of 2 is advised to prevent irrelevant suggestions and results.
                minimum: 0
              length:
                type:
                - integer
                - 'null'
                description: An option to limit maximum number of returned suggestions.
                minimum: 0
      - type: object
        description: Search disabled, returns no query results, only returns suggestions for corrected or completed query.
        required:
        - SuggestOnly
        properties:
          SuggestOnly:
            type: object
            description: Search disabled, returns no query results, only returns suggestions for corrected or completed query.
            required:
            - distance
            properties:
              correct:
                type:
                - integer
                - 'null'
                description: |-
                  Enable query correction, for queries with query string length >= threshold
                  A minimum length of 2 is advised to prevent irrelevant suggestions and results.
                minimum: 0
              distance:
                type: integer
                description: 'The edit distance thresholds for suggestions: 1..2 recommended; higher values increase latency and memory consumption.'
                minimum: 0
              term_length_threshold:
                type:
                - array
                - 'null'
                items:
                  type: integer
                  minimum: 0
                description: |-
                  Term length thresholds for each edit distance.
                    None:    max_dictionary_edit_distance for all terms lengths
                    Some(\[4\]):    max_dictionary_edit_distance for all terms lengths >= 4,
                    Some(\[2,8\]):    max_dictionary_edit_distance for all terms lengths >=2, max_dictionary_edit_distance +1 for all terms for lengths>=8
              complete:
                type:
                - integer
                - 'null'
                description: |-
                  Enable query completions, for queries with query string length >= threshold, in addition to spelling corrections
                  A minimum length of 2 is advised to prevent irrelevant suggestions and results.
                minimum: 0
              length:
                type:
                - integer
                - 'null'
                description: An option to limit maximum number of returned suggestions.
                minimum: 0
      description: Specifies whether query rewriting is enabled or disabled
    QueryType:
      type: string
      description: |
        Specifies the default QueryType: The following query types are supported:
        - **Union** (OR, disjunction),
        - **Intersection** (AND, conjunction),
        - **Phrase** (""),
        - **Not** (-).

        The default QueryType is superseded if the query parser detects that a different query type is specified within the query string (+ - "").
      enum:
      - Union
      - Intersection
      - Phrase
      - Not
    RangeF32:
      type: object
      description: F32 range filter
      required:
      - start
      - end
      properties:
        start:
          type: number
          format: float
          description: range start
        end:
          type: number
          format: float
          description: range end
    RangeF64:
      type: object
      description: F64 range filter
      required:
      - start
      - end
      properties:
        start:
          type: number
          format: double
          description: range start
        end:
          type: number
          format: double
          description: range end
    RangeI16:
      type: object
      description: I16 range filter
      required:
      - start
      - end
      properties:
        start:
          type: integer
          format: int32
          description: range start
        end:
          type: integer
          format: int32
          description: range end
    RangeI32:
      type: object
      description: I32 range filter
      required:
      - start
      - end
      properties:
        start:
          type: integer
          format: int32
          description: range start
        end:
          type: integer
          format: int32
          description: range end
    RangeI64:
      type: object
      description: I64 range filter
      required:
      - start
      - end
      properties:
        start:
          type: integer
          format: int64
          description: range start
        end:
          type: integer
          format: int64
          description: range end
    RangeI8:
      type: object
      description: I8 range filter
      required:
      - start
      - end
      properties:
        start:
          type: integer
          format: int32
          description: range start
        end:
          type: integer
          format: int32
          description: range end
    RangeType:
      type: string
      description: |-
        Create query_list and non_unique_query_list
        blockwise intersection : if the corresponding blocks with a 65k docid range for each term have at least a single docid,
        then the intersect_docid within a single block is executed  (=segments?)
        specifies how to count the frequency of numerical facet field values
      enum:
      - CountWithinRange
      - CountAboveRange
      - CountBelowRange
    RangeU16:
      type: object
      description: U16 range filter
      required:
      - start
      - end
      properties:
        start:
          type: integer
          format: int32
          description: range start
          minimum: 0
        end:
          type: integer
          format: int32
          description: range end
          minimum: 0
    RangeU32:
      type: object
      description: U32 range filter
      required:
      - start
      - end
      properties:
        start:
          type: integer
          format: int32
          description: range start
          minimum: 0
        end:
          type: integer
          format: int32
          description: range end
          minimum: 0
    RangeU64:
      type: object
      description: U64 range filter
      required:
      - start
      - end
      properties:
        start:
          type: integer
          format: int64
          description: range start
          minimum: 0
        end:
          type: integer
          format: int64
          description: range end
          minimum: 0
    RangeU8:
      type: object
      description: U8 range filter
      required:
      - start
      - end
      properties:
        start:
          type: integer
          format: int32
          description: range start
          minimum: 0
        end:
          type: integer
          format: int32
          description: range end
          minimum: 0
    ResultSort:
      type: object
      description: Specifies the sort order for the search results.
      required:
      - field
      - order
      - base
      properties:
        field:
          type: string
          description: name of the facet field to sort by
        order:
          $ref: '#/components/schemas/SortOrder'
          description: 'Sort order: Ascending or Descending'
        base:
          $ref: '#/components/schemas/FacetValue'
          description: Base value/point for (geo) proximity sorting
    ResultType:
      type: string
      description: |-
        The following result types are supported:
        - **Count** (count all results that match the query, but returning top-k results is not required)
        - **Topk** (returns the top-k results per query, but counting all results that match the query is not required)
        - **TopkCount** (returns the top-k results per query + count all results that match the query)
      enum:
      - Count
      - Topk
      - TopkCount
    SchemaField:
      type: object
      description: 'Defines a field in index schema: field, stored, indexed , field_type, facet, boost.'
      required:
      - field
      - store
      - index_lexical
      - field_type
      properties:
        field:
          type: string
          description: unique name of a field
        store:
          type: boolean
          description: only stored fields are returned in the search results
        index_lexical:
          type: boolean
          description: only indexed fields can be searched
        index_vector:
          type: boolean
          description: only indexed fields can be searched
        field_type:
          $ref: '#/components/schemas/FieldType'
          description: type of a field
        facet:
          type: boolean
          description: |-
            optional faceting for a field
            Faceting can be enabled both for string field type and numerical field types.
            both numerical and string fields can be indexed (indexed=true) and stored (stored=true) in the json document,
            but with field_facet=true they are additionally stored in a binary format, for fast faceting and sorting without docstore access (decompression, deserialization)
        longest:
          type: boolean
          description: |-
            Indicate the longest field in schema.
            Otherwise the longest field will be automatically detected in first index_document.
            Setting/detecting the longest field ensures efficient index encoding.
        boost:
          type: number
          format: float
          description: optional custom weight factor for Bm25 ranking
        dictionary_source:
          type: boolean
          description: |-
            if both indexed=true and dictionary_source=true then the terms from this field are added to dictionary to the spelling correction dictionary.
            if disabled, then a manually generated dictionary can be used: {index_path}/dictionary.csv
        completion_source:
          type: boolean
          description: |-
            if both indexed=true and completion_source=true then the n-grams (unigrams, bigrams, trigrams) from this field are added to the auto-completion list.
            if disabled, then a manually generated completion list can be used: {index_path}/completions.csv
            it is recommended to enable completion_source only for fields that contain short text with high-quality terms for auto-completion, e.g. title, author, category, product name, tags,
            in order to keep the extraction time and RAM requirement for completions low and the completions relevance high.
    SearchMode:
      oneOf:
      - type: string
        description: 'Lexical search mode: Search results are retrieved based on exact matches of query terms with the indexed terms.'
        enum:
        - Lexical
      - type: object
        description: 'Vector search mode: Search results are retrieved based on the similarity of query vectors with the indexed vectors.'
        required:
        - Vector
        properties:
          Vector:
            type: object
            description: 'Vector search mode: Search results are retrieved based on the similarity of query vectors with the indexed vectors.'
            required:
            - ann_mode
            properties:
              similarity_threshold:
                type:
                - number
                - 'null'
                format: float
                description: |-
                  Include only vectors with similarity scores above the specified threshold
                  For dot product similarity, the similarity threshold should be between 0.0 and 1.0, where higher values indicate higher similarity (identical=1.0).
                  For Euclidean distance similarity, the similarity threshold should be between 0.0 and infinity, where lower values indicate higher similarity (identical=0.0).
              ann_mode:
                $ref: '#/components/schemas/AnnMode'
                description: Specifies in which clusters to search for ANN results.
      - type: object
        description: |-
          Hybrid search mode: Search results are retrieved based on a combination of lexical and vector search.
          The relevance score of search results is calculated based on RRF (Reciprocal Rank Fusion) of the result positions in lexical and vector search.
        required:
        - Hybrid
        properties:
          Hybrid:
            type: object
            description: |-
              Hybrid search mode: Search results are retrieved based on a combination of lexical and vector search.
              The relevance score of search results is calculated based on RRF (Reciprocal Rank Fusion) of the result positions in lexical and vector search.
            required:
            - ann_mode
            properties:
              similarity_threshold:
                type:
                - number
                - 'null'
                format: float
                description: |-
                  optional threshold to filter out low similarity scores
                  For dot product similarity, the similarity threshold should be between 0.0 and 1.0, where higher values indicate higher similarity (identical=1.0).
                  For Euclidean distance similarity, the similarity threshold should be between 0.0 and infinity, where lower values indicate higher similarity (identical=0.0).
              ann_mode:
                $ref: '#/components/schemas/AnnMode'
                description: Specifies in which clusters to search for ANN results.
      description: 'Specifies the default QueryMode: The following query modes are supported:'
    SearchRequestObject:
      type: object
      description: Search request object
      required:
      - query
      properties:
        query:
          type: string
          description: Query string, search operators + - "" are recognized.
        query_vector:
          description: 'Optional query vector: If None, then the query vector is derived from the query string using the specified model. If Some, then the query vector is used for semantic search and the query string is only used for lexical search and highlighting.'
        enable_empty_query:
          type: boolean
          description: |-
            Enable empty query: if true, an empty query string iterates through all indexed documents, supporting the query parameters: offset, length, query_facets, facet_filter, result_sort,
            otherwise an empty query string returns no results.
            Typical use cases include index browsing, index export, conversion, analytics, audits, and inspection.
          default: false
          example: false
        offset:
          type: integer
          description: Offset of search results to return.
          default: 0
          example: 0
          minimum: 0
        length:
          type: integer
          description: Number of search results to return.
          default: 10
          example: 10
          minimum: 1
        result_type:
          $ref: '#/components/schemas/ResultType'
        realtime:
          type: boolean
          description: 'True realtime search: include indexed, but uncommitted documents into search results.'
        highlights:
          type: array
          items:
            $ref: '#/components/schemas/Highlight'
        field_filter:
          type: array
          items:
            type: string
          description: Specify field names where to search at querytime, whereas SchemaField.indexed is set at indextime. If empty then all indexed fields are searched.
          example:
          - title
        fields:
          type: array
          items:
            type: string
        distance_fields:
          type: array
          items:
            $ref: '#/components/schemas/DistanceField'
        query_facets:
          type: array
          items:
            $ref: '#/components/schemas/QueryFacet'
        facet_filter:
          type: array
          items:
            $ref: '#/components/schemas/FacetFilter'
        result_sort:
          type: array
          items:
            $ref: '#/components/schemas/ResultSort'
          description: |-
            Sort field and order:
            Search results are sorted by the specified facet field, either in ascending or descending order.
            If no sort field is specified, then the search results are sorted by rank in descending order per default.
            Multiple sort fields are combined by a "sort by, then sort by"-method ("tie-breaking"-algorithm).
            The results are sorted by the first field, and only for those results where the first field value is identical (tie) the results are sub-sorted by the second field,
            until the n-th field value is either not equal or the last field is reached.
            A special _score field (BM25x), reflecting how relevant the result is for a given search query (phrase match, match in title etc.) can be combined with any of the other sort fields as primary, secondary or n-th search criterium.
            Sort is only enabled on facet fields that are defined in schema at create_index!
            Examples:
            - result_sort = vec![ResultSort {field: "price".into(), order: SortOrder::Descending, base: FacetValue::None},ResultSort {field: "language".into(), order: SortOrder::Ascending, base: FacetValue::None}];
            - result_sort = vec![ResultSort {field: "location".into(),order: SortOrder::Ascending, base: FacetValue::Point(vec![38.8951, -77.0364])}];
          example:
          - field: date
            order: Ascending
            base: None
        query_type_default:
          $ref: '#/components/schemas/QueryType'
        query_rewriting:
          $ref: '#/components/schemas/QueryRewriting'
        search_mode:
          $ref: '#/components/schemas/SearchMode'
    SearchResultObject:
      type: object
      required:
      - time
      - original_query
      - query
      - offset
      - length
      - count
      - count_total
      - query_terms
      - results
      - facets
      - suggestions
      properties:
        time:
          type: integer
          description: Time taken to execute the search query in nanoseconds
          minimum: 0
        original_query:
          type: string
          description: Search query string
        query:
          type: string
          description: Search query string after any automatic query correction or completion
        offset:
          type: integer
          description: Offset of the returned search results
          minimum: 0
        length:
          type: integer
          description: Number of requested search results
          minimum: 0
        count:
          type: integer
          description: Number of returned search results matching the query
          minimum: 0
        count_total:
          type: integer
          description: Total number of search results matching the query
          minimum: 0
        query_terms:
          type: array
          items:
            type: string
          description: Vector of search query terms. Can be used e.g. for custom highlighting.
        results:
          type: array
          items:
            type: object
            additionalProperties: {}
            propertyNames:
              type: string
          description: Vector of search result documents
        facets:
          type: object
          description: Facets with their values and corresponding document counts
          additionalProperties:
            type: array
            items:
              type: array
              items: false
              prefixItems:
              - type: string
              - type: integer
                minimum: 0
          propertyNames:
            type: string
        suggestions:
          type: array
          items:
            type: string
          description: Suggestions for query correction or completion
    SortOrder:
      type: string
      description: Specifies the sort order for the search results.
      enum:
      - Ascending
      - Descending
    SpellingCorrection:
      type: object
      description: Defines spelling correction (fuzzy search) settings for an index.
      required:
      - max_dictionary_edit_distance
      - count_threshold
      - max_dictionary_entries
      properties:
        max_dictionary_edit_distance:
          type: integer
          description: 'The edit distance thresholds for suggestions: 1..2 recommended; higher values increase latency and memory consumption.'
          minimum: 0
        term_length_threshold:
          type:
          - array
          - 'null'
          items:
            type: integer
            minimum: 0
          description: |-
            Term length thresholds for each edit distance.
              None:    max_dictionary_edit_distance for all terms lengths
              Some(\[4\]):    max_dictionary_edit_distance for all terms lengths >= 4,
              Some(\[2,8\]):    max_dictionary_edit_distance for all terms lengths >=2, max_dictionary_edit_distance +1 for all terms for lengths>=8
        count_threshold:
          type: integer
          description: |-
            The minimum frequency count for dictionary words to be considered eligible for spelling correction.
            Depends on the corpus size, 1..20 recommended.
            If count_threshold is too high, some correct words might be missed from the dictionary and deemed misspelled,
            if count_threshold is too low, some misspelled words from the corpus might be considered correct and added to the dictionary.
            Dictionary terms eligible for spelling correction (frequency count >= count_threshold) consume much more RAM, than the candidates (frequency count < count_threshold),
            but the terms below count_threshold will be included in dictionary.csv too.
          minimum: 0
        max_dictionary_entries:
          type: integer
          description: |-
            Limits the maximum number of dictionary entries (terms >= count_threshold) to generate during indexing, preventing excessive RAM consumption.
            The number of terms in dictionary.csv will be higher, because it contains also the terms < count_threshold, to become eligible in the future during incremental dictionary updates.
            Dictionary terms eligible for spelling correction (frequency count >= count_threshold) consume much more RAM, than the candidates (frequency count < count_threshold).
            ⚠️ Above this threshold no new terms are added to the dictionary, causing them to be deemed incorrect during spelling correction and possibly changed to similar terms that are in the dictionary.
          minimum: 0
    StemmerType:
      type: string
      description: |-
        Defines stemming behavior, reducing inflected words to their word stem, base or root form.
        Stemming increases recall, but decreases precision. It can introduce false positive results.
      enum:
      - None
      - Arabic
      - Armenian
      - Basque
      - Catalan
      - Czech
      - Danish
      - Dutch
      - DutchPorter
      - English
      - Esperanto
      - Estonian
      - Finnish
      - French
      - German
      - Greek
      - Hindi
      - Hungarian
      - Indonesian
      - Irish
      - Italian
      - Lithuanian
      - Lovins
      - Nepali
      - Norwegian
      - Persian
      - Polish
      - Porter
      - Portuguese
      - Romanian
      - Russian
      - Serbian
      - Sesotho
      - Spanish
      - Swedish
      - Tamil
      - Turkish
      - Ukrainian
      - Yiddish
    StopwordType:
      oneOf:
      - type: string
        description: No stopwords
        enum:
        - None
      - type: string
        description: English stopwords
        enum:
        - English
      - type: string
        description: German stopwords
        enum:
        - German
      - type: string
        description: French stopwords
        enum:
        - French
      - type: string
        description: Spanish stopwords
        enum:
        - Spanish
      - type: object
        description: Custom stopwords
        required:
        - Custom
        properties:
          Custom:
            type: object
            description: Custom stopwords
            required:
            - terms
            properties:
              terms:
                type: array
                items:
                  type: string
                description: List of stopwords.
      description: |-
        StopwordType defines the stopword behavior: None, English, German, French, Spanish, Custom.
        Stopwords are removed, both from index and query: for compact index size and faster queries.
        Stopword removal has drawbacks: “The Who”, “Take That”, “Let it be”, “To be or not to be”, "The The", "End of days", "What might have been" are all valid queries for bands, songs, movies, literature,
        but become impossible when stopwords are removed.
        The lists of stop_words and frequent_words should not overlap.
    Synonym:
      type: object
      description: Defines synonyms for terms per index.
      required:
      - terms
      properties:
        terms:
          type: array
          items:
            type: string
          description: List of terms that are synonyms.
        multiway:
          type: boolean
          description: |-
            Creates alternative versions of documents where in each copy a term is replaced with one of its synonyms.
            Doesn't impact the query latency, but does increase the index size.
            Multi-way synonyms (default): all terms are synonyms of each other.
            One-way synonyms: only the first term is a synonym of the following terms, but not vice versa.
            E.g. [street, avenue, road] will result in searches for street to return documents containing any of the terms street, avenue or road,
            but searches for avenue will only return documents containing avenue, but not documents containing street or road.
            Currently only single terms without spaces are supported.
            Synonyms are supported in result highlighting.
            The synonyms that were created with the synonyms parameter in create_index are stored in synonyms.json in the index directory contains
            Can be manually modified, but becomes effective only after restart and only for newly indexed documents.
    TokenizerType:
      type: string
      description: |-
        Defines tokenizer behavior:
        AsciiAlphabetic
        - Mainly for for benchmark compatibility
        - Only ASCII alphabetic chars are recognized as token.

        UnicodeAlphanumeric
        - All Unicode alphanumeric chars are recognized as token.
        - Allows '+' '-' '#' in middle or end of a token: c++, c#, block-max.

        UnicodeAlphanumericFolded
        - All Unicode alphanumeric chars are recognized as token.
        - Allows '+' '-' '#' in middle or end of a token: c++, c#, block-max.
        - Diacritics, accents, zalgo text, umlaut, bold, italic, full-width UTF-8 characters are converted into its basic representation.
        - Apostroph handling prevents that short term parts preceding or following the apostroph get indexed (e.g. "s" in "someone's").
        - Tokenizing might be slower due to folding and apostroph processing.

        UnicodeAlphanumericZH
        - Implements Chinese word segmentation to segment continuous Chinese text into tokens for indexing and search.
        - Supports mixed Latin and Chinese texts
        - Supports Chinese sentence boundary chars for KWIC snippets ahd highlighting.
        - Requires feature #[cfg(feature = "zh")]
      enum:
      - AsciiAlphabetic
      - UnicodeAlphanumeric
      - UnicodeAlphanumericFolded
      - Whitespace
      - WhitespaceLowercase
      - UnicodeAlphanumericZH
    Vec:
      type: array
      items:
        type: number
        format: double
    VectorSimilarity:
      type: string
      description: Similarity measure for comparing vector embeddings.
      enum:
      - Cosine
      - Dot
      - Euclidean
tags:
- name: Info
  description: Return info about the server
- name: API Key
  description: Create and delete API keys
- name: Index
  description: Create and delete indices
- name: Iterator
  description: Iterate through document IDs and documents
- name: Document
  description: Index, update, get and delete documents
- name: PDF File
  description: Index, and get PDF file
- name: Query
  description: Query an index