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
@@ -0,0 +1,18 @@
1
+ # Manticore::Client::AggCompositeTerm
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field** | **String** | Name of field to operate with | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'manticore/client'
13
+
14
+ instance = Manticore::Client::AggCompositeTerm.new(
15
+ field: field1
16
+ )
17
+ ```
18
+
data/docs/AggTerms.md ADDED
@@ -0,0 +1,20 @@
1
+ # Manticore::Client::AggTerms
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field** | **String** | Name of attribute to aggregate by | |
8
+ | **size** | **Integer** | Maximum number of buckets in the result | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'manticore/client'
14
+
15
+ instance = Manticore::Client::AggTerms.new(
16
+ field: field1,
17
+ size: 1000
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # Manticore::Client::Aggregation
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **terms** | [**AggTerms**](AggTerms.md) | | [optional] |
8
+ | **sort** | **Array<Object>** | | [optional] |
9
+ | **composite** | [**AggComposite**](AggComposite.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'manticore/client'
15
+
16
+ instance = Manticore::Client::Aggregation.new(
17
+ terms: null,
18
+ sort: null,
19
+ composite: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # Manticore::Client::AutocompleteRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **table** | **String** | The table to perform the search on | |
8
+ | **query** | **String** | The beginning of the string to autocomplete | |
9
+ | **options** | **Object** | Autocomplete options - layouts: A comma-separated string of keyboard layout codes to validate and check for spell correction. Available options - us, ru, ua, se, pt, no, it, gr, uk, fr, es, dk, de, ch, br, bg, be. By default, all are enabled. - fuzziness: (0,1 or 2) Maximum Levenshtein distance for finding typos. Set to 0 to disable fuzzy matching. Default is 2 - prepend: true/false If true, adds an asterisk before the last word for prefix expansion (e.g., *word ) - append: true/false If true, adds an asterisk after the last word for prefix expansion (e.g., word* ) - expansion_len: Number of characters to expand in the last word. Default is 10. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'manticore/client'
15
+
16
+ instance = Manticore::Client::AutocompleteRequest.new(
17
+ table: null,
18
+ query: null,
19
+ options: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # Manticore::Client::BoolFilter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **must** | [**Array<QueryFilter>**](QueryFilter.md) | Query clauses that must match for the document to be included | [optional] |
8
+ | **must_not** | [**Array<QueryFilter>**](QueryFilter.md) | Query clauses that must not match for the document to be included | [optional] |
9
+ | **should** | [**Array<QueryFilter>**](QueryFilter.md) | Query clauses that should be matched, but are not required | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'manticore/client'
15
+
16
+ instance = Manticore::Client::BoolFilter.new(
17
+ must: null,
18
+ must_not: null,
19
+ should: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,26 @@
1
+ # Manticore::Client::BulkResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | **Array<Object>** | List of results | [optional] |
8
+ | **errors** | **Boolean** | Errors occurred during the bulk operation | [optional] |
9
+ | **error** | **String** | Error message describing an error if such occurred | [optional] |
10
+ | **current_line** | **Integer** | Number of the row returned in the response | [optional] |
11
+ | **skipped_lines** | **Integer** | Number of rows skipped in the response | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'manticore/client'
17
+
18
+ instance = Manticore::Client::BulkResponse.new(
19
+ items: null,
20
+ errors: null,
21
+ error: null,
22
+ current_line: null,
23
+ skipped_lines: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # Manticore::Client::DeleteDocumentRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **table** | **String** | Table name | |
8
+ | **cluster** | **String** | Cluster name | [optional] |
9
+ | **id** | **Integer** | The ID of document for deletion | [optional] |
10
+ | **query** | **Object** | Defines the criteria to match documents for deletion | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'manticore/client'
16
+
17
+ instance = Manticore::Client::DeleteDocumentRequest.new(
18
+ table: null,
19
+ cluster: null,
20
+ id: null,
21
+ query: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # Manticore::Client::DeleteResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **table** | **String** | The name of the table from which the document was deleted | [optional] |
8
+ | **deleted** | **Integer** | Number of documents deleted | [optional] |
9
+ | **id** | **Integer** | The ID of the deleted document. If multiple documents are deleted, the ID of the first deleted document is returned | [optional] |
10
+ | **found** | **Boolean** | Indicates whether any documents to be deleted were found | [optional] |
11
+ | **result** | **String** | Result of the delete operation, typically 'deleted' | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'manticore/client'
17
+
18
+ instance = Manticore::Client::DeleteResponse.new(
19
+ table: null,
20
+ deleted: null,
21
+ id: null,
22
+ found: null,
23
+ result: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # Manticore::Client::ErrorResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**ResponseError**](ResponseError.md) | | |
8
+ | **status** | **Integer** | HTTP status code of the error response | [optional][default to 500] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'manticore/client'
14
+
15
+ instance = Manticore::Client::ErrorResponse.new(
16
+ error: null,
17
+ status: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # Manticore::Client::FulltextFilter
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
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'manticore/client'
16
+
17
+ instance = Manticore::Client::FulltextFilter.new(
18
+ query_string: null,
19
+ match: null,
20
+ match_phrase: null,
21
+ match_all: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # Manticore::Client::GeoDistance
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **location_anchor** | [**GeoDistanceLocationAnchor**](GeoDistanceLocationAnchor.md) | | [optional] |
8
+ | **location_source** | **String** | Field name in the document that contains location data | [optional] |
9
+ | **distance_type** | **String** | Algorithm used to calculate the distance | [optional] |
10
+ | **distance** | **String** | The distance from the anchor point to filter results by | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'manticore/client'
16
+
17
+ instance = Manticore::Client::GeoDistance.new(
18
+ location_anchor: null,
19
+ location_source: null,
20
+ distance_type: null,
21
+ distance: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,20 @@
1
+ # Manticore::Client::GeoDistanceLocationAnchor
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **lat** | **Float** | Latitude of the anchor point | [optional] |
8
+ | **lon** | **Float** | Longitude of the anchor point | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'manticore/client'
14
+
15
+ instance = Manticore::Client::GeoDistanceLocationAnchor.new(
16
+ lat: null,
17
+ lon: null
18
+ )
19
+ ```
20
+
data/docs/Highlight.md ADDED
@@ -0,0 +1,62 @@
1
+ # Manticore::Client::Highlight
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **fragment_size** | **Integer** | Maximum size of the text fragments in highlighted snippets per field | [optional] |
8
+ | **limit** | **Integer** | Maximum size of snippets per field | [optional] |
9
+ | **limit_snippets** | **Integer** | Maximum number of snippets per field | [optional] |
10
+ | **limit_words** | **Integer** | Maximum number of words per field | [optional] |
11
+ | **number_of_fragments** | **Integer** | Total number of highlighted fragments per field | [optional] |
12
+ | **after_match** | **String** | Text inserted after the matched term, typically used for HTML formatting | [optional][default to '</strong>'] |
13
+ | **allow_empty** | **Boolean** | Permits an empty string to be returned as the highlighting result. Otherwise, the beginning of the original text would be returned | [optional] |
14
+ | **around** | **Integer** | Number of words around the match to include in the highlight | [optional] |
15
+ | **before_match** | **String** | Text inserted before the match, typically used for HTML formatting | [optional][default to '<strong>'] |
16
+ | **emit_zones** | **Boolean** | Emits an HTML tag with the enclosing zone name before each highlighted snippet | [optional] |
17
+ | **encoder** | **String** | If set to 'html', retains HTML markup when highlighting | [optional] |
18
+ | **fields** | [**HighlightAllOfFields**](HighlightAllOfFields.md) | | [optional] |
19
+ | **force_all_words** | **Boolean** | Ignores the length limit until the result includes all keywords | [optional] |
20
+ | **force_snippets** | **Boolean** | Forces snippet generation even if limits allow highlighting the entire text | [optional] |
21
+ | **highlight_query** | [**QueryFilter**](QueryFilter.md) | | [optional] |
22
+ | **html_strip_mode** | **String** | Defines the mode for handling HTML markup in the highlight | [optional] |
23
+ | **limits_per_field** | **Boolean** | Determines whether the 'limit', 'limit_words', and 'limit_snippets' options operate as individual limits in each field of the document | [optional] |
24
+ | **no_match_size** | **Integer** | If set to 1, allows an empty string to be returned as a highlighting result | [optional] |
25
+ | **order** | **String** | Sets the sorting order of highlighted snippets | [optional] |
26
+ | **pre_tags** | **String** | Text inserted before each highlighted snippet | [optional][default to '<strong>'] |
27
+ | **post_tags** | **String** | Text inserted after each highlighted snippet | [optional][default to '</strong>'] |
28
+ | **start_snippet_id** | **Integer** | Sets the starting value of the %SNIPPET_ID% macro | [optional] |
29
+ | **use_boundaries** | **Boolean** | Defines whether to additionally break snippets by phrase boundary characters | [optional] |
30
+
31
+ ## Example
32
+
33
+ ```ruby
34
+ require 'manticore/client'
35
+
36
+ instance = Manticore::Client::Highlight.new(
37
+ fragment_size: null,
38
+ limit: null,
39
+ limit_snippets: null,
40
+ limit_words: null,
41
+ number_of_fragments: null,
42
+ after_match: null,
43
+ allow_empty: null,
44
+ around: null,
45
+ before_match: null,
46
+ emit_zones: null,
47
+ encoder: null,
48
+ fields: null,
49
+ force_all_words: null,
50
+ force_snippets: null,
51
+ highlight_query: null,
52
+ html_strip_mode: null,
53
+ limits_per_field: null,
54
+ no_match_size: null,
55
+ order: null,
56
+ pre_tags: null,
57
+ post_tags: null,
58
+ start_snippet_id: null,
59
+ use_boundaries: null
60
+ )
61
+ ```
62
+
@@ -0,0 +1,15 @@
1
+ # Manticore::Client::HighlightAllOfFields
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'manticore/client'
12
+
13
+ instance = Manticore::Client::HighlightAllOfFields.new()
14
+ ```
15
+
@@ -0,0 +1,26 @@
1
+ # Manticore::Client::HighlightFieldOption
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **fragment_size** | **Integer** | Maximum size of the text fragments in highlighted snippets per field | [optional] |
8
+ | **limit** | **Integer** | Maximum size of snippets per field | [optional] |
9
+ | **limit_snippets** | **Integer** | Maximum number of snippets per field | [optional] |
10
+ | **limit_words** | **Integer** | Maximum number of words per field | [optional] |
11
+ | **number_of_fragments** | **Integer** | Total number of highlighted fragments per field | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'manticore/client'
17
+
18
+ instance = Manticore::Client::HighlightFieldOption.new(
19
+ fragment_size: null,
20
+ limit: null,
21
+ limit_snippets: null,
22
+ limit_words: null,
23
+ number_of_fragments: null
24
+ )
25
+ ```
26
+
data/docs/HitsHits.md ADDED
@@ -0,0 +1,22 @@
1
+ # Manticore::Client::HitsHits
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_id** | **Integer** | The ID of the matched document | [optional] |
8
+ | **_score** | **Integer** | The score of the matched document | [optional] |
9
+ | **_source** | **Object** | The source data of the matched document | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'manticore/client'
15
+
16
+ instance = Manticore::Client::HitsHits.new(
17
+ _id: null,
18
+ _score: null,
19
+ _source: null
20
+ )
21
+ ```
22
+