manticore-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +39 -0
  3. data/.openapi-generator/FILES +149 -0
  4. data/.openapi-generator/VERSION +1 -0
  5. data/.openapi-generator-ignore +5 -0
  6. data/.rspec +2 -0
  7. data/.rubocop.yml +160 -0
  8. data/Gemfile +12 -0
  9. data/Gemfile.lock +103 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +136 -0
  12. data/Rakefile +10 -0
  13. data/docs/AggComposite.md +20 -0
  14. data/docs/AggCompositeSource.md +18 -0
  15. data/docs/AggCompositeTerm.md +18 -0
  16. data/docs/AggTerms.md +20 -0
  17. data/docs/Aggregation.md +22 -0
  18. data/docs/AutocompleteRequest.md +22 -0
  19. data/docs/BoolFilter.md +22 -0
  20. data/docs/BulkResponse.md +26 -0
  21. data/docs/DeleteDocumentRequest.md +24 -0
  22. data/docs/DeleteResponse.md +26 -0
  23. data/docs/ErrorResponse.md +20 -0
  24. data/docs/FulltextFilter.md +24 -0
  25. data/docs/GeoDistance.md +24 -0
  26. data/docs/GeoDistanceLocationAnchor.md +20 -0
  27. data/docs/Highlight.md +62 -0
  28. data/docs/HighlightAllOfFields.md +15 -0
  29. data/docs/HighlightFieldOption.md +26 -0
  30. data/docs/HitsHits.md +22 -0
  31. data/docs/IndexApi.md +401 -0
  32. data/docs/InsertDocumentRequest.md +24 -0
  33. data/docs/Join.md +24 -0
  34. data/docs/JoinCond.md +22 -0
  35. data/docs/JoinOn.md +22 -0
  36. data/docs/KnnQuery.md +28 -0
  37. data/docs/Match.md +22 -0
  38. data/docs/MatchAll.md +18 -0
  39. data/docs/PercolateRequest.md +18 -0
  40. data/docs/PercolateRequestQuery.md +18 -0
  41. data/docs/QueryFilter.md +34 -0
  42. data/docs/Range.md +24 -0
  43. data/docs/ReplaceDocumentRequest.md +18 -0
  44. data/docs/ResponseError.md +49 -0
  45. data/docs/ResponseErrorDetails.md +22 -0
  46. data/docs/SearchApi.md +204 -0
  47. data/docs/SearchQuery.md +36 -0
  48. data/docs/SearchRequest.md +46 -0
  49. data/docs/SearchResponse.md +30 -0
  50. data/docs/SearchResponseHits.md +24 -0
  51. data/docs/SourceRules.md +20 -0
  52. data/docs/SqlResponse.md +49 -0
  53. data/docs/SuccessResponse.md +28 -0
  54. data/docs/UpdateDocumentRequest.md +26 -0
  55. data/docs/UpdateResponse.md +24 -0
  56. data/docs/UtilsApi.md +76 -0
  57. data/lib/manticore/client/api/index_api.rb +442 -0
  58. data/lib/manticore/client/api/search_api.rb +232 -0
  59. data/lib/manticore/client/api/utils_api.rb +93 -0
  60. data/lib/manticore/client/api_client.rb +437 -0
  61. data/lib/manticore/client/api_error.rb +58 -0
  62. data/lib/manticore/client/configuration.rb +385 -0
  63. data/lib/manticore/client/models/agg_composite.rb +233 -0
  64. data/lib/manticore/client/models/agg_composite_source.rb +238 -0
  65. data/lib/manticore/client/models/agg_composite_term.rb +239 -0
  66. data/lib/manticore/client/models/agg_terms.rb +249 -0
  67. data/lib/manticore/client/models/aggregation.rb +240 -0
  68. data/lib/manticore/client/models/autocomplete_request.rb +276 -0
  69. data/lib/manticore/client/models/bool_filter.rb +247 -0
  70. data/lib/manticore/client/models/bulk_response.rb +264 -0
  71. data/lib/manticore/client/models/delete_document_request.rb +269 -0
  72. data/lib/manticore/client/models/delete_response.rb +262 -0
  73. data/lib/manticore/client/models/error_response.rb +250 -0
  74. data/lib/manticore/client/models/fulltext_filter.rb +252 -0
  75. data/lib/manticore/client/models/geo_distance.rb +306 -0
  76. data/lib/manticore/client/models/geo_distance_location_anchor.rb +232 -0
  77. data/lib/manticore/client/models/highlight.rb +525 -0
  78. data/lib/manticore/client/models/highlight_all_of_fields.rb +105 -0
  79. data/lib/manticore/client/models/highlight_field_option.rb +262 -0
  80. data/lib/manticore/client/models/hits_hits.rb +242 -0
  81. data/lib/manticore/client/models/insert_document_request.rb +286 -0
  82. data/lib/manticore/client/models/join.rb +327 -0
  83. data/lib/manticore/client/models/join_cond.rb +276 -0
  84. data/lib/manticore/client/models/join_on.rb +272 -0
  85. data/lib/manticore/client/models/knn_query.rb +307 -0
  86. data/lib/manticore/client/models/match.rb +290 -0
  87. data/lib/manticore/client/models/match_all.rb +262 -0
  88. data/lib/manticore/client/models/percolate_request.rb +238 -0
  89. data/lib/manticore/client/models/percolate_request_query.rb +238 -0
  90. data/lib/manticore/client/models/query_filter.rb +307 -0
  91. data/lib/manticore/client/models/range.rb +252 -0
  92. data/lib/manticore/client/models/replace_document_request.rb +239 -0
  93. data/lib/manticore/client/models/response_error.rb +105 -0
  94. data/lib/manticore/client/models/response_error_details.rb +261 -0
  95. data/lib/manticore/client/models/search_query.rb +316 -0
  96. data/lib/manticore/client/models/search_request.rb +382 -0
  97. data/lib/manticore/client/models/search_response.rb +281 -0
  98. data/lib/manticore/client/models/search_response_hits.rb +254 -0
  99. data/lib/manticore/client/models/source_rules.rb +236 -0
  100. data/lib/manticore/client/models/sql_response.rb +106 -0
  101. data/lib/manticore/client/models/success_response.rb +272 -0
  102. data/lib/manticore/client/models/update_document_request.rb +296 -0
  103. data/lib/manticore/client/models/update_response.rb +252 -0
  104. data/lib/manticore/client/version.rb +7 -0
  105. data/lib/manticore/client.rb +32 -0
  106. data/lib/manticore-client.rb +3 -0
  107. data/manticore-client.gemspec +34 -0
  108. data/spec/api/index_api_spec.rb +179 -0
  109. data/spec/api/search_api_spec.rb +94 -0
  110. data/spec/api/utils_api_spec.rb +100 -0
  111. data/spec/spec_helper.rb +92 -0
  112. data/spec/support/manticore_sql_helper.rb +33 -0
  113. metadata +218 -0
data/docs/IndexApi.md ADDED
@@ -0,0 +1,401 @@
1
+ # Manticore::Client::IndexApi
2
+
3
+ All URIs are relative to *http://127.0.0.1:9308*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**bulk**](IndexApi.md#bulk) | **POST** /bulk | Bulk table operations |
8
+ | [**delete**](IndexApi.md#delete) | **POST** /delete | Delete a document in a table |
9
+ | [**insert**](IndexApi.md#insert) | **POST** /insert | Create a new document in a table |
10
+ | [**partial_replace**](IndexApi.md#partial_replace) | **POST** /{table}/_update/{id} | Partially replaces a document in a table |
11
+ | [**replace**](IndexApi.md#replace) | **POST** /replace | Replace new document in a table |
12
+ | [**update**](IndexApi.md#update) | **POST** /update | Update a document in a table |
13
+
14
+
15
+ ## bulk
16
+
17
+ > <BulkResponse> bulk(body)
18
+
19
+ Bulk table operations
20
+
21
+ Sends multiple operatons like inserts, updates, replaces or deletes. For each operation it's object must have same format as in their dedicated method. The method expects a raw string as the batch in NDJSON. Each operation object needs to be serialized to JSON and separated by endline (\\n). An example of raw input: ``` {\"insert\": {\"table\": \"movies\", \"doc\": {\"plot\": \"A secret team goes to North Pole\", \"rating\": 9.5, \"language\": [2, 3], \"title\": \"This is an older movie\", \"lon\": 51.99, \"meta\": {\"keywords\":[\"travel\",\"ice\"],\"genre\":[\"adventure\"]}, \"year\": 1950, \"lat\": 60.4, \"advise\": \"PG-13\"}}} \\n {\"delete\": {\"table\": \"movies\",\"id\":700}} ``` Responds with an object telling whenever any errors occured and an array with status for each operation: ``` { 'items': [ { 'update':{'table':'products','id':1,'result':'updated'} }, { 'update':{'table':'products','id':2,'result':'updated'} } ], 'errors':false } ```
22
+
23
+ ### Examples
24
+
25
+ ```ruby
26
+ require 'time'
27
+ require 'manticore/client'
28
+
29
+ api_instance = Manticore::Client::IndexApi.new
30
+ body = 'body_example' # String |
31
+
32
+ begin
33
+ # Bulk table operations
34
+ result = api_instance.bulk(body)
35
+ p result
36
+ rescue Manticore::Client::ApiError => e
37
+ puts "Error when calling IndexApi->bulk: #{e}"
38
+ end
39
+ ```
40
+
41
+ #### Using the bulk_with_http_info variant
42
+
43
+ This returns an Array which contains the response data, status code and headers.
44
+
45
+ > <Array(<BulkResponse>, Integer, Hash)> bulk_with_http_info(body)
46
+
47
+ ```ruby
48
+ begin
49
+ # Bulk table operations
50
+ data, status_code, headers = api_instance.bulk_with_http_info(body)
51
+ p status_code # => 2xx
52
+ p headers # => { ... }
53
+ p data # => <BulkResponse>
54
+ rescue Manticore::Client::ApiError => e
55
+ puts "Error when calling IndexApi->bulk_with_http_info: #{e}"
56
+ end
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ | Name | Type | Description | Notes |
62
+ | ---- | ---- | ----------- | ----- |
63
+ | **body** | **String** | | |
64
+
65
+ ### Return type
66
+
67
+ [**BulkResponse**](BulkResponse.md)
68
+
69
+ ### Authorization
70
+
71
+ No authorization required
72
+
73
+ ### HTTP request headers
74
+
75
+ - **Content-Type**: application/x-ndjson
76
+ - **Accept**: application/json
77
+
78
+
79
+ ## delete
80
+
81
+ > <DeleteResponse> delete(delete_document_request)
82
+
83
+ Delete a document in a table
84
+
85
+ Delete one or several documents. The method has 2 ways of deleting: either by id, in case only one document is deleted or by using a match query, in which case multiple documents can be delete . Example of input to delete by id: ``` {'table':'movies','id':100} ``` Example of input to delete using a query: ``` { 'table':'movies', 'query': { 'bool': { 'must': [ {'query_string':'new movie'} ] } } } ``` The match query has same syntax as in for searching. Responds with an object telling how many documents got deleted: ``` {'table':'products','updated':1} ```
86
+
87
+ ### Examples
88
+
89
+ ```ruby
90
+ require 'time'
91
+ require 'manticore/client'
92
+
93
+ api_instance = Manticore::Client::IndexApi.new
94
+ delete_document_request = Manticore::Client::DeleteDocumentRequest.new({table: 'table_example'}) # DeleteDocumentRequest |
95
+
96
+ begin
97
+ # Delete a document in a table
98
+ result = api_instance.delete(delete_document_request)
99
+ p result
100
+ rescue Manticore::Client::ApiError => e
101
+ puts "Error when calling IndexApi->delete: #{e}"
102
+ end
103
+ ```
104
+
105
+ #### Using the delete_with_http_info variant
106
+
107
+ This returns an Array which contains the response data, status code and headers.
108
+
109
+ > <Array(<DeleteResponse>, Integer, Hash)> delete_with_http_info(delete_document_request)
110
+
111
+ ```ruby
112
+ begin
113
+ # Delete a document in a table
114
+ data, status_code, headers = api_instance.delete_with_http_info(delete_document_request)
115
+ p status_code # => 2xx
116
+ p headers # => { ... }
117
+ p data # => <DeleteResponse>
118
+ rescue Manticore::Client::ApiError => e
119
+ puts "Error when calling IndexApi->delete_with_http_info: #{e}"
120
+ end
121
+ ```
122
+
123
+ ### Parameters
124
+
125
+ | Name | Type | Description | Notes |
126
+ | ---- | ---- | ----------- | ----- |
127
+ | **delete_document_request** | [**DeleteDocumentRequest**](DeleteDocumentRequest.md) | | |
128
+
129
+ ### Return type
130
+
131
+ [**DeleteResponse**](DeleteResponse.md)
132
+
133
+ ### Authorization
134
+
135
+ No authorization required
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: application/json
140
+ - **Accept**: application/json
141
+
142
+
143
+ ## insert
144
+
145
+ > <SuccessResponse> insert(insert_document_request)
146
+
147
+ Create a new document in a table
148
+
149
+ Insert a document. Expects an object like: ``` { 'table':'movies', 'id':701, 'doc': { 'title':'This is an old movie', 'plot':'A secret team goes to North Pole', 'year':1950, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` The document id can also be missing, in which case an autogenerated one will be used: ``` { 'table':'movies', 'doc': { 'title':'This is a new movie', 'plot':'A secret team goes to North Pole', 'year':2020, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` It responds with an object in format: ``` {'table':'products','id':701,'created':true,'result':'created','status':201} ```
150
+
151
+ ### Examples
152
+
153
+ ```ruby
154
+ require 'time'
155
+ require 'manticore/client'
156
+
157
+ api_instance = Manticore::Client::IndexApi.new
158
+ insert_document_request = Manticore::Client::InsertDocumentRequest.new({table: 'table_example', doc: 3.56}) # InsertDocumentRequest |
159
+
160
+ begin
161
+ # Create a new document in a table
162
+ result = api_instance.insert(insert_document_request)
163
+ p result
164
+ rescue Manticore::Client::ApiError => e
165
+ puts "Error when calling IndexApi->insert: #{e}"
166
+ end
167
+ ```
168
+
169
+ #### Using the insert_with_http_info variant
170
+
171
+ This returns an Array which contains the response data, status code and headers.
172
+
173
+ > <Array(<SuccessResponse>, Integer, Hash)> insert_with_http_info(insert_document_request)
174
+
175
+ ```ruby
176
+ begin
177
+ # Create a new document in a table
178
+ data, status_code, headers = api_instance.insert_with_http_info(insert_document_request)
179
+ p status_code # => 2xx
180
+ p headers # => { ... }
181
+ p data # => <SuccessResponse>
182
+ rescue Manticore::Client::ApiError => e
183
+ puts "Error when calling IndexApi->insert_with_http_info: #{e}"
184
+ end
185
+ ```
186
+
187
+ ### Parameters
188
+
189
+ | Name | Type | Description | Notes |
190
+ | ---- | ---- | ----------- | ----- |
191
+ | **insert_document_request** | [**InsertDocumentRequest**](InsertDocumentRequest.md) | | |
192
+
193
+ ### Return type
194
+
195
+ [**SuccessResponse**](SuccessResponse.md)
196
+
197
+ ### Authorization
198
+
199
+ No authorization required
200
+
201
+ ### HTTP request headers
202
+
203
+ - **Content-Type**: application/json
204
+ - **Accept**: application/json
205
+
206
+
207
+ ## partial_replace
208
+
209
+ > <UpdateResponse> partial_replace(table, id, replace_document_request)
210
+
211
+ Partially replaces a document in a table
212
+
213
+ Partially replaces a document with given id in a table Responds with an object of the following format: ``` {'table':'products','updated':1} ```
214
+
215
+ ### Examples
216
+
217
+ ```ruby
218
+ require 'time'
219
+ require 'manticore/client'
220
+
221
+ api_instance = Manticore::Client::IndexApi.new
222
+ table = 'table_example' # String | Name of the percolate table
223
+ id = 789 # Integer | Id of the document to replace
224
+ replace_document_request = Manticore::Client::ReplaceDocumentRequest.new({doc: 3.56}) # ReplaceDocumentRequest |
225
+
226
+ begin
227
+ # Partially replaces a document in a table
228
+ result = api_instance.partial_replace(table, id, replace_document_request)
229
+ p result
230
+ rescue Manticore::Client::ApiError => e
231
+ puts "Error when calling IndexApi->partial_replace: #{e}"
232
+ end
233
+ ```
234
+
235
+ #### Using the partial_replace_with_http_info variant
236
+
237
+ This returns an Array which contains the response data, status code and headers.
238
+
239
+ > <Array(<UpdateResponse>, Integer, Hash)> partial_replace_with_http_info(table, id, replace_document_request)
240
+
241
+ ```ruby
242
+ begin
243
+ # Partially replaces a document in a table
244
+ data, status_code, headers = api_instance.partial_replace_with_http_info(table, id, replace_document_request)
245
+ p status_code # => 2xx
246
+ p headers # => { ... }
247
+ p data # => <UpdateResponse>
248
+ rescue Manticore::Client::ApiError => e
249
+ puts "Error when calling IndexApi->partial_replace_with_http_info: #{e}"
250
+ end
251
+ ```
252
+
253
+ ### Parameters
254
+
255
+ | Name | Type | Description | Notes |
256
+ | ---- | ---- | ----------- | ----- |
257
+ | **table** | **String** | Name of the percolate table | |
258
+ | **id** | **Integer** | Id of the document to replace | |
259
+ | **replace_document_request** | [**ReplaceDocumentRequest**](ReplaceDocumentRequest.md) | | |
260
+
261
+ ### Return type
262
+
263
+ [**UpdateResponse**](UpdateResponse.md)
264
+
265
+ ### Authorization
266
+
267
+ No authorization required
268
+
269
+ ### HTTP request headers
270
+
271
+ - **Content-Type**: application/json
272
+ - **Accept**: application/json
273
+
274
+
275
+ ## replace
276
+
277
+ > <SuccessResponse> replace(insert_document_request)
278
+
279
+ Replace new document in a table
280
+
281
+ Replace an existing document. Input has same format as `insert` operation. Responds with an object in format: ``` {'table':'products','id':1,'created':false,'result':'updated','status':200} ```
282
+
283
+ ### Examples
284
+
285
+ ```ruby
286
+ require 'time'
287
+ require 'manticore/client'
288
+
289
+ api_instance = Manticore::Client::IndexApi.new
290
+ insert_document_request = Manticore::Client::InsertDocumentRequest.new({table: 'table_example', doc: 3.56}) # InsertDocumentRequest |
291
+
292
+ begin
293
+ # Replace new document in a table
294
+ result = api_instance.replace(insert_document_request)
295
+ p result
296
+ rescue Manticore::Client::ApiError => e
297
+ puts "Error when calling IndexApi->replace: #{e}"
298
+ end
299
+ ```
300
+
301
+ #### Using the replace_with_http_info variant
302
+
303
+ This returns an Array which contains the response data, status code and headers.
304
+
305
+ > <Array(<SuccessResponse>, Integer, Hash)> replace_with_http_info(insert_document_request)
306
+
307
+ ```ruby
308
+ begin
309
+ # Replace new document in a table
310
+ data, status_code, headers = api_instance.replace_with_http_info(insert_document_request)
311
+ p status_code # => 2xx
312
+ p headers # => { ... }
313
+ p data # => <SuccessResponse>
314
+ rescue Manticore::Client::ApiError => e
315
+ puts "Error when calling IndexApi->replace_with_http_info: #{e}"
316
+ end
317
+ ```
318
+
319
+ ### Parameters
320
+
321
+ | Name | Type | Description | Notes |
322
+ | ---- | ---- | ----------- | ----- |
323
+ | **insert_document_request** | [**InsertDocumentRequest**](InsertDocumentRequest.md) | | |
324
+
325
+ ### Return type
326
+
327
+ [**SuccessResponse**](SuccessResponse.md)
328
+
329
+ ### Authorization
330
+
331
+ No authorization required
332
+
333
+ ### HTTP request headers
334
+
335
+ - **Content-Type**: application/json
336
+ - **Accept**: application/json
337
+
338
+
339
+ ## update
340
+
341
+ > <UpdateResponse> update(update_document_request)
342
+
343
+ Update a document in a table
344
+
345
+ Update one or several documents. The update can be made by passing the id or by using a match query in case multiple documents can be updated. For example update a document using document id: ``` {'table':'movies','doc':{'rating':9.49},'id':100} ``` And update by using a match query: ``` { 'table':'movies', 'doc':{'rating':9.49}, 'query': { 'bool': { 'must': [ {'query_string':'new movie'} ] } } } ``` The match query has same syntax as for searching. Responds with an object that tells how many documents where updated in format: ``` {'table':'products','updated':1} ```
346
+
347
+ ### Examples
348
+
349
+ ```ruby
350
+ require 'time'
351
+ require 'manticore/client'
352
+
353
+ api_instance = Manticore::Client::IndexApi.new
354
+ update_document_request = Manticore::Client::UpdateDocumentRequest.new({table: 'table_example', doc: {gid=10}}) # UpdateDocumentRequest |
355
+
356
+ begin
357
+ # Update a document in a table
358
+ result = api_instance.update(update_document_request)
359
+ p result
360
+ rescue Manticore::Client::ApiError => e
361
+ puts "Error when calling IndexApi->update: #{e}"
362
+ end
363
+ ```
364
+
365
+ #### Using the update_with_http_info variant
366
+
367
+ This returns an Array which contains the response data, status code and headers.
368
+
369
+ > <Array(<UpdateResponse>, Integer, Hash)> update_with_http_info(update_document_request)
370
+
371
+ ```ruby
372
+ begin
373
+ # Update a document in a table
374
+ data, status_code, headers = api_instance.update_with_http_info(update_document_request)
375
+ p status_code # => 2xx
376
+ p headers # => { ... }
377
+ p data # => <UpdateResponse>
378
+ rescue Manticore::Client::ApiError => e
379
+ puts "Error when calling IndexApi->update_with_http_info: #{e}"
380
+ end
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+ | Name | Type | Description | Notes |
386
+ | ---- | ---- | ----------- | ----- |
387
+ | **update_document_request** | [**UpdateDocumentRequest**](UpdateDocumentRequest.md) | | |
388
+
389
+ ### Return type
390
+
391
+ [**UpdateResponse**](UpdateResponse.md)
392
+
393
+ ### Authorization
394
+
395
+ No authorization required
396
+
397
+ ### HTTP request headers
398
+
399
+ - **Content-Type**: application/json
400
+ - **Accept**: application/json
401
+
@@ -0,0 +1,24 @@
1
+ # Manticore::Client::InsertDocumentRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **table** | **String** | Name of the table to insert the document into | |
8
+ | **cluster** | **String** | Name of the cluster to insert the document into | [optional] |
9
+ | **id** | **Integer** | Document ID. If not provided, an ID will be auto-generated | [optional] |
10
+ | **doc** | **Object** | Object containing document data | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'manticore/client'
16
+
17
+ instance = Manticore::Client::InsertDocumentRequest.new(
18
+ table: null,
19
+ cluster: null,
20
+ id: null,
21
+ doc: null
22
+ )
23
+ ```
24
+
data/docs/Join.md ADDED
@@ -0,0 +1,24 @@
1
+ # Manticore::Client::Join
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | Type of the join operation | |
8
+ | **on** | [**Array&lt;JoinOn&gt;**](JoinOn.md) | List of objects defining joined tables | |
9
+ | **query** | [**FulltextFilter**](FulltextFilter.md) | | [optional] |
10
+ | **table** | **String** | Basic table of the join operation | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'manticore/client'
16
+
17
+ instance = Manticore::Client::Join.new(
18
+ type: null,
19
+ on: null,
20
+ query: null,
21
+ table: null
22
+ )
23
+ ```
24
+
data/docs/JoinCond.md ADDED
@@ -0,0 +1,22 @@
1
+ # Manticore::Client::JoinCond
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field** | **String** | Field to join on | |
8
+ | **table** | **String** | Joined table | |
9
+ | **type** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'manticore/client'
15
+
16
+ instance = Manticore::Client::JoinCond.new(
17
+ field: null,
18
+ table: null,
19
+ type: null
20
+ )
21
+ ```
22
+
data/docs/JoinOn.md ADDED
@@ -0,0 +1,22 @@
1
+ # Manticore::Client::JoinOn
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **right** | [**JoinCond**](JoinCond.md) | | [optional] |
8
+ | **left** | [**JoinCond**](JoinCond.md) | | [optional] |
9
+ | **operator** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'manticore/client'
15
+
16
+ instance = Manticore::Client::JoinOn.new(
17
+ right: null,
18
+ left: null,
19
+ operator: null
20
+ )
21
+ ```
22
+
data/docs/KnnQuery.md ADDED
@@ -0,0 +1,28 @@
1
+ # Manticore::Client::KnnQuery
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field** | **String** | Field to perform the k-nearest neighbor search on | |
8
+ | **k** | **Integer** | The number of nearest neighbors to return | |
9
+ | **query_vector** | **Array&lt;Float&gt;** | The vector used as input for the KNN search | [optional] |
10
+ | **doc_id** | **Integer** | The docuemnt ID used as input for the KNN search | [optional] |
11
+ | **ef** | **Integer** | Optional parameter controlling the accuracy of the search | [optional] |
12
+ | **filter** | [**QueryFilter**](QueryFilter.md) | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'manticore/client'
18
+
19
+ instance = Manticore::Client::KnnQuery.new(
20
+ field: null,
21
+ k: null,
22
+ query_vector: null,
23
+ doc_id: null,
24
+ ef: null,
25
+ filter: null
26
+ )
27
+ ```
28
+
data/docs/Match.md ADDED
@@ -0,0 +1,22 @@
1
+ # Manticore::Client::Match
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **query** | **String** | | |
8
+ | **operator** | **String** | | [optional] |
9
+ | **boost** | **Float** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'manticore/client'
15
+
16
+ instance = Manticore::Client::Match.new(
17
+ query: null,
18
+ operator: null,
19
+ boost: null
20
+ )
21
+ ```
22
+
data/docs/MatchAll.md ADDED
@@ -0,0 +1,18 @@
1
+ # Manticore::Client::MatchAll
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_all** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'manticore/client'
13
+
14
+ instance = Manticore::Client::MatchAll.new(
15
+ _all: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # Manticore::Client::PercolateRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **query** | [**PercolateRequestQuery**](PercolateRequestQuery.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'manticore/client'
13
+
14
+ instance = Manticore::Client::PercolateRequest.new(
15
+ query: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # Manticore::Client::PercolateRequestQuery
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **percolate** | **Object** | Object representing the document to percolate | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'manticore/client'
13
+
14
+ instance = Manticore::Client::PercolateRequestQuery.new(
15
+ percolate: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,34 @@
1
+ # Manticore::Client::QueryFilter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **query_string** | **String** | Filter object defining a query string | [optional] |
8
+ | **match** | **Object** | Filter object defining a match keyword passed as a string or in a Match object | [optional] |
9
+ | **match_phrase** | **Object** | Filter object defining a match phrase | [optional] |
10
+ | **match_all** | **Object** | Filter object to select all documents | [optional] |
11
+ | **bool** | [**BoolFilter**](BoolFilter.md) | | [optional] |
12
+ | **equals** | **Object** | | [optional] |
13
+ | **_in** | **Object** | Filter to match a given set of attribute values. | [optional] |
14
+ | **range** | **Object** | Filter to match a given range of attribute values passed in Range objects | [optional] |
15
+ | **geo_distance** | [**GeoDistance**](GeoDistance.md) | | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'manticore/client'
21
+
22
+ instance = Manticore::Client::QueryFilter.new(
23
+ query_string: null,
24
+ match: null,
25
+ match_phrase: null,
26
+ match_all: null,
27
+ bool: null,
28
+ equals: null,
29
+ _in: null,
30
+ range: null,
31
+ geo_distance: null
32
+ )
33
+ ```
34
+
data/docs/Range.md ADDED
@@ -0,0 +1,24 @@
1
+ # Manticore::Client::Range
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **lt** | **Object** | | [optional] |
8
+ | **lte** | **Object** | | [optional] |
9
+ | **gt** | **Object** | | [optional] |
10
+ | **gte** | **Object** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'manticore/client'
16
+
17
+ instance = Manticore::Client::Range.new(
18
+ lt: null,
19
+ lte: null,
20
+ gt: null,
21
+ gte: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # Manticore::Client::ReplaceDocumentRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **doc** | **Object** | Object containing the new document data to replace the existing one. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'manticore/client'
13
+
14
+ instance = Manticore::Client::ReplaceDocumentRequest.new(
15
+ doc: null
16
+ )
17
+ ```
18
+