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.
- checksums.yaml +7 -0
- data/.gitignore +39 -0
- data/.openapi-generator/FILES +149 -0
- data/.openapi-generator/VERSION +1 -0
- data/.openapi-generator-ignore +5 -0
- data/.rspec +2 -0
- data/.rubocop.yml +160 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +103 -0
- data/LICENSE.txt +21 -0
- data/README.md +136 -0
- data/Rakefile +10 -0
- data/docs/AggComposite.md +20 -0
- data/docs/AggCompositeSource.md +18 -0
- data/docs/AggCompositeTerm.md +18 -0
- data/docs/AggTerms.md +20 -0
- data/docs/Aggregation.md +22 -0
- data/docs/AutocompleteRequest.md +22 -0
- data/docs/BoolFilter.md +22 -0
- data/docs/BulkResponse.md +26 -0
- data/docs/DeleteDocumentRequest.md +24 -0
- data/docs/DeleteResponse.md +26 -0
- data/docs/ErrorResponse.md +20 -0
- data/docs/FulltextFilter.md +24 -0
- data/docs/GeoDistance.md +24 -0
- data/docs/GeoDistanceLocationAnchor.md +20 -0
- data/docs/Highlight.md +62 -0
- data/docs/HighlightAllOfFields.md +15 -0
- data/docs/HighlightFieldOption.md +26 -0
- data/docs/HitsHits.md +22 -0
- data/docs/IndexApi.md +401 -0
- data/docs/InsertDocumentRequest.md +24 -0
- data/docs/Join.md +24 -0
- data/docs/JoinCond.md +22 -0
- data/docs/JoinOn.md +22 -0
- data/docs/KnnQuery.md +28 -0
- data/docs/Match.md +22 -0
- data/docs/MatchAll.md +18 -0
- data/docs/PercolateRequest.md +18 -0
- data/docs/PercolateRequestQuery.md +18 -0
- data/docs/QueryFilter.md +34 -0
- data/docs/Range.md +24 -0
- data/docs/ReplaceDocumentRequest.md +18 -0
- data/docs/ResponseError.md +49 -0
- data/docs/ResponseErrorDetails.md +22 -0
- data/docs/SearchApi.md +204 -0
- data/docs/SearchQuery.md +36 -0
- data/docs/SearchRequest.md +46 -0
- data/docs/SearchResponse.md +30 -0
- data/docs/SearchResponseHits.md +24 -0
- data/docs/SourceRules.md +20 -0
- data/docs/SqlResponse.md +49 -0
- data/docs/SuccessResponse.md +28 -0
- data/docs/UpdateDocumentRequest.md +26 -0
- data/docs/UpdateResponse.md +24 -0
- data/docs/UtilsApi.md +76 -0
- data/lib/manticore/client/api/index_api.rb +442 -0
- data/lib/manticore/client/api/search_api.rb +232 -0
- data/lib/manticore/client/api/utils_api.rb +93 -0
- data/lib/manticore/client/api_client.rb +437 -0
- data/lib/manticore/client/api_error.rb +58 -0
- data/lib/manticore/client/configuration.rb +385 -0
- data/lib/manticore/client/models/agg_composite.rb +233 -0
- data/lib/manticore/client/models/agg_composite_source.rb +238 -0
- data/lib/manticore/client/models/agg_composite_term.rb +239 -0
- data/lib/manticore/client/models/agg_terms.rb +249 -0
- data/lib/manticore/client/models/aggregation.rb +240 -0
- data/lib/manticore/client/models/autocomplete_request.rb +276 -0
- data/lib/manticore/client/models/bool_filter.rb +247 -0
- data/lib/manticore/client/models/bulk_response.rb +264 -0
- data/lib/manticore/client/models/delete_document_request.rb +269 -0
- data/lib/manticore/client/models/delete_response.rb +262 -0
- data/lib/manticore/client/models/error_response.rb +250 -0
- data/lib/manticore/client/models/fulltext_filter.rb +252 -0
- data/lib/manticore/client/models/geo_distance.rb +306 -0
- data/lib/manticore/client/models/geo_distance_location_anchor.rb +232 -0
- data/lib/manticore/client/models/highlight.rb +525 -0
- data/lib/manticore/client/models/highlight_all_of_fields.rb +105 -0
- data/lib/manticore/client/models/highlight_field_option.rb +262 -0
- data/lib/manticore/client/models/hits_hits.rb +242 -0
- data/lib/manticore/client/models/insert_document_request.rb +286 -0
- data/lib/manticore/client/models/join.rb +327 -0
- data/lib/manticore/client/models/join_cond.rb +276 -0
- data/lib/manticore/client/models/join_on.rb +272 -0
- data/lib/manticore/client/models/knn_query.rb +307 -0
- data/lib/manticore/client/models/match.rb +290 -0
- data/lib/manticore/client/models/match_all.rb +262 -0
- data/lib/manticore/client/models/percolate_request.rb +238 -0
- data/lib/manticore/client/models/percolate_request_query.rb +238 -0
- data/lib/manticore/client/models/query_filter.rb +307 -0
- data/lib/manticore/client/models/range.rb +252 -0
- data/lib/manticore/client/models/replace_document_request.rb +239 -0
- data/lib/manticore/client/models/response_error.rb +105 -0
- data/lib/manticore/client/models/response_error_details.rb +261 -0
- data/lib/manticore/client/models/search_query.rb +316 -0
- data/lib/manticore/client/models/search_request.rb +382 -0
- data/lib/manticore/client/models/search_response.rb +281 -0
- data/lib/manticore/client/models/search_response_hits.rb +254 -0
- data/lib/manticore/client/models/source_rules.rb +236 -0
- data/lib/manticore/client/models/sql_response.rb +106 -0
- data/lib/manticore/client/models/success_response.rb +272 -0
- data/lib/manticore/client/models/update_document_request.rb +296 -0
- data/lib/manticore/client/models/update_response.rb +252 -0
- data/lib/manticore/client/version.rb +7 -0
- data/lib/manticore/client.rb +32 -0
- data/lib/manticore-client.rb +3 -0
- data/manticore-client.gemspec +34 -0
- data/spec/api/index_api_spec.rb +179 -0
- data/spec/api/search_api_spec.rb +94 -0
- data/spec/api/utils_api_spec.rb +100 -0
- data/spec/spec_helper.rb +92 -0
- data/spec/support/manticore_sql_helper.rb +33 -0
- metadata +218 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fb72a18507372a6ba6d8ed849f049cd41632390c0a7f0e2a94071f583380f649
|
4
|
+
data.tar.gz: 4304af2546bd12aba51dd1a06b66f872263274e815e13a330eefb16060a9fefd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cde7859cee0959839038a5623abc5674543248ccdcb2bfdca3e2dcc0bf87110d4535c6710cb8125a4af570f9446c9656d7892599543e8cca15f81cefe10a97be
|
7
|
+
data.tar.gz: 1ef43c514c1aeaab283b55d736a31724ca3a8c929bf14b0543b7863bd3f2dc6f6e13150544ae54ae7a09d004e6f5120e5084bfd019db96cda810a009e16f4be4
|
data/.gitignore
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Generated by: https://openapi-generator.tech
|
2
|
+
#
|
3
|
+
|
4
|
+
*.gem
|
5
|
+
*.rbc
|
6
|
+
/.config
|
7
|
+
/coverage/
|
8
|
+
/InstalledFiles
|
9
|
+
/pkg/
|
10
|
+
/spec/reports/
|
11
|
+
/spec/examples.txt
|
12
|
+
/test/tmp/
|
13
|
+
/test/version_tmp/
|
14
|
+
/tmp/
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
|
21
|
+
## Documentation cache and generated files:
|
22
|
+
/.yardoc/
|
23
|
+
/_yardoc/
|
24
|
+
/doc/
|
25
|
+
/rdoc/
|
26
|
+
|
27
|
+
## Environment normalization:
|
28
|
+
/.bundle/
|
29
|
+
/vendor/bundle
|
30
|
+
/lib/bundler/man/
|
31
|
+
|
32
|
+
# for a library or gem, you might want to ignore these files since the code is
|
33
|
+
# intended to run in multiple environments; otherwise, check them in:
|
34
|
+
# Gemfile.lock
|
35
|
+
# .ruby-version
|
36
|
+
# .ruby-gemset
|
37
|
+
|
38
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
39
|
+
.rvmrc
|
@@ -0,0 +1,149 @@
|
|
1
|
+
.gitignore
|
2
|
+
.gitlab-ci.yml
|
3
|
+
.openapi-generator-ignore
|
4
|
+
.rspec
|
5
|
+
.rubocop.yml
|
6
|
+
.travis.yml
|
7
|
+
Gemfile
|
8
|
+
README.md
|
9
|
+
Rakefile
|
10
|
+
docs/AggComposite.md
|
11
|
+
docs/AggCompositeSource.md
|
12
|
+
docs/AggCompositeTerm.md
|
13
|
+
docs/AggTerms.md
|
14
|
+
docs/Aggregation.md
|
15
|
+
docs/AutocompleteRequest.md
|
16
|
+
docs/BoolFilter.md
|
17
|
+
docs/BulkResponse.md
|
18
|
+
docs/DeleteDocumentRequest.md
|
19
|
+
docs/DeleteResponse.md
|
20
|
+
docs/ErrorResponse.md
|
21
|
+
docs/FulltextFilter.md
|
22
|
+
docs/GeoDistance.md
|
23
|
+
docs/GeoDistanceLocationAnchor.md
|
24
|
+
docs/Highlight.md
|
25
|
+
docs/HighlightAllOfFields.md
|
26
|
+
docs/HighlightFieldOption.md
|
27
|
+
docs/HitsHits.md
|
28
|
+
docs/IndexApi.md
|
29
|
+
docs/InsertDocumentRequest.md
|
30
|
+
docs/Join.md
|
31
|
+
docs/JoinCond.md
|
32
|
+
docs/JoinOn.md
|
33
|
+
docs/KnnQuery.md
|
34
|
+
docs/Match.md
|
35
|
+
docs/MatchAll.md
|
36
|
+
docs/PercolateRequest.md
|
37
|
+
docs/PercolateRequestQuery.md
|
38
|
+
docs/QueryFilter.md
|
39
|
+
docs/Range.md
|
40
|
+
docs/ReplaceDocumentRequest.md
|
41
|
+
docs/ResponseError.md
|
42
|
+
docs/ResponseErrorDetails.md
|
43
|
+
docs/SearchApi.md
|
44
|
+
docs/SearchQuery.md
|
45
|
+
docs/SearchRequest.md
|
46
|
+
docs/SearchResponse.md
|
47
|
+
docs/SearchResponseHits.md
|
48
|
+
docs/SourceRules.md
|
49
|
+
docs/SqlResponse.md
|
50
|
+
docs/SuccessResponse.md
|
51
|
+
docs/UpdateDocumentRequest.md
|
52
|
+
docs/UpdateResponse.md
|
53
|
+
docs/UtilsApi.md
|
54
|
+
git_push.sh
|
55
|
+
lib/manticore/client.rb
|
56
|
+
lib/manticore/client/api/index_api.rb
|
57
|
+
lib/manticore/client/api/search_api.rb
|
58
|
+
lib/manticore/client/api/utils_api.rb
|
59
|
+
lib/manticore/client/api_client.rb
|
60
|
+
lib/manticore/client/api_error.rb
|
61
|
+
lib/manticore/client/configuration.rb
|
62
|
+
lib/manticore/client/models/agg_composite.rb
|
63
|
+
lib/manticore/client/models/agg_composite_source.rb
|
64
|
+
lib/manticore/client/models/agg_composite_term.rb
|
65
|
+
lib/manticore/client/models/agg_terms.rb
|
66
|
+
lib/manticore/client/models/aggregation.rb
|
67
|
+
lib/manticore/client/models/autocomplete_request.rb
|
68
|
+
lib/manticore/client/models/bool_filter.rb
|
69
|
+
lib/manticore/client/models/bulk_response.rb
|
70
|
+
lib/manticore/client/models/delete_document_request.rb
|
71
|
+
lib/manticore/client/models/delete_response.rb
|
72
|
+
lib/manticore/client/models/error_response.rb
|
73
|
+
lib/manticore/client/models/fulltext_filter.rb
|
74
|
+
lib/manticore/client/models/geo_distance.rb
|
75
|
+
lib/manticore/client/models/geo_distance_location_anchor.rb
|
76
|
+
lib/manticore/client/models/highlight.rb
|
77
|
+
lib/manticore/client/models/highlight_all_of_fields.rb
|
78
|
+
lib/manticore/client/models/highlight_field_option.rb
|
79
|
+
lib/manticore/client/models/hits_hits.rb
|
80
|
+
lib/manticore/client/models/insert_document_request.rb
|
81
|
+
lib/manticore/client/models/join.rb
|
82
|
+
lib/manticore/client/models/join_cond.rb
|
83
|
+
lib/manticore/client/models/join_on.rb
|
84
|
+
lib/manticore/client/models/knn_query.rb
|
85
|
+
lib/manticore/client/models/match.rb
|
86
|
+
lib/manticore/client/models/match_all.rb
|
87
|
+
lib/manticore/client/models/percolate_request.rb
|
88
|
+
lib/manticore/client/models/percolate_request_query.rb
|
89
|
+
lib/manticore/client/models/query_filter.rb
|
90
|
+
lib/manticore/client/models/range.rb
|
91
|
+
lib/manticore/client/models/replace_document_request.rb
|
92
|
+
lib/manticore/client/models/response_error.rb
|
93
|
+
lib/manticore/client/models/response_error_details.rb
|
94
|
+
lib/manticore/client/models/search_query.rb
|
95
|
+
lib/manticore/client/models/search_request.rb
|
96
|
+
lib/manticore/client/models/search_response.rb
|
97
|
+
lib/manticore/client/models/search_response_hits.rb
|
98
|
+
lib/manticore/client/models/source_rules.rb
|
99
|
+
lib/manticore/client/models/sql_response.rb
|
100
|
+
lib/manticore/client/models/success_response.rb
|
101
|
+
lib/manticore/client/models/update_document_request.rb
|
102
|
+
lib/manticore/client/models/update_response.rb
|
103
|
+
lib/manticore/client/version.rb
|
104
|
+
manticore/client.gemspec
|
105
|
+
spec/api/index_api_spec.rb
|
106
|
+
spec/api/search_api_spec.rb
|
107
|
+
spec/api/utils_api_spec.rb
|
108
|
+
spec/models/agg_composite_source_spec.rb
|
109
|
+
spec/models/agg_composite_spec.rb
|
110
|
+
spec/models/agg_composite_term_spec.rb
|
111
|
+
spec/models/agg_terms_spec.rb
|
112
|
+
spec/models/aggregation_spec.rb
|
113
|
+
spec/models/autocomplete_request_spec.rb
|
114
|
+
spec/models/bool_filter_spec.rb
|
115
|
+
spec/models/bulk_response_spec.rb
|
116
|
+
spec/models/delete_document_request_spec.rb
|
117
|
+
spec/models/delete_response_spec.rb
|
118
|
+
spec/models/error_response_spec.rb
|
119
|
+
spec/models/fulltext_filter_spec.rb
|
120
|
+
spec/models/geo_distance_location_anchor_spec.rb
|
121
|
+
spec/models/geo_distance_spec.rb
|
122
|
+
spec/models/highlight_all_of_fields_spec.rb
|
123
|
+
spec/models/highlight_field_option_spec.rb
|
124
|
+
spec/models/highlight_spec.rb
|
125
|
+
spec/models/hits_hits_spec.rb
|
126
|
+
spec/models/insert_document_request_spec.rb
|
127
|
+
spec/models/join_cond_spec.rb
|
128
|
+
spec/models/join_on_spec.rb
|
129
|
+
spec/models/join_spec.rb
|
130
|
+
spec/models/knn_query_spec.rb
|
131
|
+
spec/models/match_all_spec.rb
|
132
|
+
spec/models/match_spec.rb
|
133
|
+
spec/models/percolate_request_query_spec.rb
|
134
|
+
spec/models/percolate_request_spec.rb
|
135
|
+
spec/models/query_filter_spec.rb
|
136
|
+
spec/models/range_spec.rb
|
137
|
+
spec/models/replace_document_request_spec.rb
|
138
|
+
spec/models/response_error_details_spec.rb
|
139
|
+
spec/models/response_error_spec.rb
|
140
|
+
spec/models/search_query_spec.rb
|
141
|
+
spec/models/search_request_spec.rb
|
142
|
+
spec/models/search_response_hits_spec.rb
|
143
|
+
spec/models/search_response_spec.rb
|
144
|
+
spec/models/source_rules_spec.rb
|
145
|
+
spec/models/sql_response_spec.rb
|
146
|
+
spec/models/success_response_spec.rb
|
147
|
+
spec/models/update_document_request_spec.rb
|
148
|
+
spec/models/update_response_spec.rb
|
149
|
+
spec/spec_helper.rb
|
@@ -0,0 +1 @@
|
|
1
|
+
7.13.0
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
plugins:
|
2
|
+
- rubocop-rspec
|
3
|
+
- rubocop-rake
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
TargetRubyVersion: 2.7
|
7
|
+
NewCops: enable
|
8
|
+
Exclude:
|
9
|
+
- '**/templates/**/*'
|
10
|
+
- '**/vendor/**/*'
|
11
|
+
- 'actionpack/lib/action_dispatch/journey/parser.rb'
|
12
|
+
- 'lib/manticore/client/**/*'
|
13
|
+
|
14
|
+
Naming/FileName:
|
15
|
+
Exclude:
|
16
|
+
- 'lib/manticore-client.rb'
|
17
|
+
|
18
|
+
# Prefer &&/|| over and/or.
|
19
|
+
Style/AndOr:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
# Align `when` with `case`.
|
23
|
+
Layout/CaseIndentation:
|
24
|
+
Enabled: true
|
25
|
+
|
26
|
+
# Align comments with method definitions.
|
27
|
+
Layout/CommentIndentation:
|
28
|
+
Enabled: true
|
29
|
+
|
30
|
+
Layout/ElseAlignment:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
Layout/EmptyLineAfterMagicComment:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
# In a regular class definition, no empty lines around the body.
|
37
|
+
Layout/EmptyLinesAroundClassBody:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
# In a regular method definition, no empty lines around the body.
|
41
|
+
Layout/EmptyLinesAroundMethodBody:
|
42
|
+
Enabled: true
|
43
|
+
|
44
|
+
# In a regular module definition, no empty lines around the body.
|
45
|
+
Layout/EmptyLinesAroundModuleBody:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Layout/FirstArgumentIndentation:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
52
|
+
Style/HashSyntax:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
# Method definitions after `private` or `protected` isolated calls need one
|
56
|
+
# extra level of indentation.
|
57
|
+
Layout/IndentationConsistency:
|
58
|
+
Enabled: true
|
59
|
+
EnforcedStyle: indented_internal_methods
|
60
|
+
|
61
|
+
# Two spaces, no tabs (for indentation).
|
62
|
+
Layout/IndentationWidth:
|
63
|
+
Enabled: true
|
64
|
+
|
65
|
+
Layout/LeadingCommentSpace:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Layout/SpaceAfterColon:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Layout/SpaceAfterComma:
|
72
|
+
Enabled: true
|
73
|
+
|
74
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
Layout/SpaceAroundKeyword:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
Layout/SpaceAroundOperators:
|
81
|
+
Enabled: true
|
82
|
+
|
83
|
+
Layout/SpaceBeforeComma:
|
84
|
+
Enabled: true
|
85
|
+
|
86
|
+
Layout/SpaceBeforeFirstArg:
|
87
|
+
Enabled: true
|
88
|
+
|
89
|
+
Style/DefWithParentheses:
|
90
|
+
Enabled: true
|
91
|
+
|
92
|
+
# Defining a method with parameters needs parentheses.
|
93
|
+
Style/MethodDefParentheses:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Style/FrozenStringLiteralComment:
|
97
|
+
Enabled: false
|
98
|
+
EnforcedStyle: always
|
99
|
+
|
100
|
+
# Use `foo {}` not `foo{}`.
|
101
|
+
Layout/SpaceBeforeBlockBraces:
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
# Use `foo { bar }` not `foo {bar}`.
|
105
|
+
Layout/SpaceInsideBlockBraces:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
# Use `{ a: 1 }` not `{a:1}`.
|
109
|
+
Layout/SpaceInsideHashLiteralBraces:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Layout/SpaceInsideParens:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
# Check quotes usage according to lint rule below.
|
116
|
+
Style/StringLiterals:
|
117
|
+
Enabled: true
|
118
|
+
EnforcedStyle: double_quotes
|
119
|
+
|
120
|
+
# Detect hard tabs, no hard tabs.
|
121
|
+
Layout/IndentationStyle:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
# Blank lines should not have any spaces.
|
125
|
+
Layout/TrailingEmptyLines:
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
# No trailing whitespace.
|
129
|
+
Layout/TrailingWhitespace:
|
130
|
+
Enabled: false
|
131
|
+
|
132
|
+
# Use quotes for string literals when they are enough.
|
133
|
+
Style/RedundantPercentQ:
|
134
|
+
Enabled: true
|
135
|
+
|
136
|
+
# Align `end` with the matching keyword or starting expression except for
|
137
|
+
# assignments, where it should be aligned with the LHS.
|
138
|
+
Layout/EndAlignment:
|
139
|
+
Enabled: true
|
140
|
+
EnforcedStyleAlignWith: variable
|
141
|
+
AutoCorrect: true
|
142
|
+
|
143
|
+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
144
|
+
Lint/RequireParentheses:
|
145
|
+
Enabled: true
|
146
|
+
|
147
|
+
Style/RedundantReturn:
|
148
|
+
Enabled: true
|
149
|
+
AllowMultipleReturnValues: true
|
150
|
+
|
151
|
+
Style/Semicolon:
|
152
|
+
Enabled: true
|
153
|
+
AllowAsExpressionSeparator: true
|
154
|
+
|
155
|
+
RSpec/ExampleLength:
|
156
|
+
Enabled: false
|
157
|
+
|
158
|
+
RSpec/MultipleExpectations:
|
159
|
+
Enabled: false
|
160
|
+
|
data/Gemfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
group :development, :test do
|
6
|
+
gem "pry-byebug"
|
7
|
+
gem "rake", "~> 13.0.1"
|
8
|
+
gem "rspec", "~> 3.6", ">= 3.6.0"
|
9
|
+
gem "rubocop", "~> 1.75", require: false
|
10
|
+
gem "rubocop-rake", require: false
|
11
|
+
gem "rubocop-rspec", require: false
|
12
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
manticore-client (1.0.0)
|
5
|
+
faraday (>= 1.0.1, < 3.0)
|
6
|
+
faraday-multipart
|
7
|
+
marcel
|
8
|
+
zeitwerk
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
ast (2.4.3)
|
14
|
+
byebug (12.0.0)
|
15
|
+
coderay (1.1.3)
|
16
|
+
diff-lcs (1.6.1)
|
17
|
+
faraday (2.13.1)
|
18
|
+
faraday-net_http (>= 2.0, < 3.5)
|
19
|
+
json
|
20
|
+
logger
|
21
|
+
faraday-multipart (1.1.0)
|
22
|
+
multipart-post (~> 2.0)
|
23
|
+
faraday-net_http (3.4.0)
|
24
|
+
net-http (>= 0.5.0)
|
25
|
+
json (2.11.3)
|
26
|
+
language_server-protocol (3.17.0.4)
|
27
|
+
lint_roller (1.1.0)
|
28
|
+
logger (1.7.0)
|
29
|
+
marcel (1.0.4)
|
30
|
+
method_source (1.1.0)
|
31
|
+
multipart-post (2.4.1)
|
32
|
+
net-http (0.6.0)
|
33
|
+
uri
|
34
|
+
parallel (1.27.0)
|
35
|
+
parser (3.3.8.0)
|
36
|
+
ast (~> 2.4.1)
|
37
|
+
racc
|
38
|
+
prism (1.4.0)
|
39
|
+
pry (0.15.2)
|
40
|
+
coderay (~> 1.1)
|
41
|
+
method_source (~> 1.0)
|
42
|
+
pry-byebug (3.11.0)
|
43
|
+
byebug (~> 12.0)
|
44
|
+
pry (>= 0.13, < 0.16)
|
45
|
+
racc (1.8.1)
|
46
|
+
rainbow (3.1.1)
|
47
|
+
rake (13.0.6)
|
48
|
+
regexp_parser (2.10.0)
|
49
|
+
rspec (3.13.0)
|
50
|
+
rspec-core (~> 3.13.0)
|
51
|
+
rspec-expectations (~> 3.13.0)
|
52
|
+
rspec-mocks (~> 3.13.0)
|
53
|
+
rspec-core (3.13.3)
|
54
|
+
rspec-support (~> 3.13.0)
|
55
|
+
rspec-expectations (3.13.4)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.13.0)
|
58
|
+
rspec-mocks (3.13.4)
|
59
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
+
rspec-support (~> 3.13.0)
|
61
|
+
rspec-support (3.13.3)
|
62
|
+
rubocop (1.75.5)
|
63
|
+
json (~> 2.3)
|
64
|
+
language_server-protocol (~> 3.17.0.2)
|
65
|
+
lint_roller (~> 1.1.0)
|
66
|
+
parallel (~> 1.10)
|
67
|
+
parser (>= 3.3.0.2)
|
68
|
+
rainbow (>= 2.2.2, < 4.0)
|
69
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
70
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
71
|
+
ruby-progressbar (~> 1.7)
|
72
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
73
|
+
rubocop-ast (1.44.1)
|
74
|
+
parser (>= 3.3.7.2)
|
75
|
+
prism (~> 1.4)
|
76
|
+
rubocop-rake (0.7.1)
|
77
|
+
lint_roller (~> 1.1)
|
78
|
+
rubocop (>= 1.72.1)
|
79
|
+
rubocop-rspec (3.6.0)
|
80
|
+
lint_roller (~> 1.1)
|
81
|
+
rubocop (~> 1.72, >= 1.72.1)
|
82
|
+
ruby-progressbar (1.13.0)
|
83
|
+
unicode-display_width (3.1.4)
|
84
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
85
|
+
unicode-emoji (4.0.4)
|
86
|
+
uri (1.0.3)
|
87
|
+
zeitwerk (2.7.2)
|
88
|
+
|
89
|
+
PLATFORMS
|
90
|
+
ruby
|
91
|
+
x86_64-darwin-23
|
92
|
+
|
93
|
+
DEPENDENCIES
|
94
|
+
manticore-client!
|
95
|
+
pry-byebug
|
96
|
+
rake (~> 13.0.1)
|
97
|
+
rspec (~> 3.6, >= 3.6.0)
|
98
|
+
rubocop (~> 1.75)
|
99
|
+
rubocop-rake
|
100
|
+
rubocop-rspec
|
101
|
+
|
102
|
+
BUNDLED WITH
|
103
|
+
2.6.8
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020-2023, Manticore Software LTD
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
# manticore-client
|
2
|
+
|
3
|
+

|
4
|
+

|
5
|
+
|
6
|
+
A Ruby client for [Manticore Search](https://manticoresearch.com), generated from the OpenAPI specification.
|
7
|
+
|
8
|
+
**API Version:** 5.0.0 • **Gem Version:** 1.0.0 • **Generator:** OpenAPI Generator v7.13.0
|
9
|
+
|
10
|
+
---
|
11
|
+
|
12
|
+
## Table of Contents
|
13
|
+
|
14
|
+
* [Installation](#installation)
|
15
|
+
* [Usage](#usage)
|
16
|
+
* [Configuration](#configuration)
|
17
|
+
* [Documentation](#documentation)
|
18
|
+
* [Development](#development)
|
19
|
+
* [Contributing](#contributing)
|
20
|
+
* [License](#license)
|
21
|
+
|
22
|
+
---
|
23
|
+
|
24
|
+
## Installation
|
25
|
+
|
26
|
+
### From RubyGems
|
27
|
+
|
28
|
+
Add to your `Gemfile`:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
gem 'manticore-client', '~> 1.0'
|
32
|
+
```
|
33
|
+
|
34
|
+
Then run:
|
35
|
+
|
36
|
+
```bash
|
37
|
+
bundle install
|
38
|
+
```
|
39
|
+
|
40
|
+
Or install directly:
|
41
|
+
|
42
|
+
```bash
|
43
|
+
gem install manticore-client
|
44
|
+
```
|
45
|
+
|
46
|
+
### From GitHub
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
# Gemfile
|
50
|
+
gem 'manticore-client', git: 'https://github.com/numbata/manticore-client.git'
|
51
|
+
```
|
52
|
+
|
53
|
+
## Usage
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
require 'manticore-client'
|
57
|
+
|
58
|
+
# Optionally configure credentials or host
|
59
|
+
Manticore::Client.configure do |config|
|
60
|
+
config.host = 'http://127.0.0.1:9308'
|
61
|
+
config.username = 'user'
|
62
|
+
config.password = 'pass'
|
63
|
+
end
|
64
|
+
|
65
|
+
# Create an API client instance
|
66
|
+
client = Manticore::Client::IndexApi.new
|
67
|
+
|
68
|
+
# Example: bulk operations
|
69
|
+
body = <<~NDJSON
|
70
|
+
{ "insert": { "index": "table_name", "id": 3, "doc": { "title": "New movie", "rating": 8.5 } } }
|
71
|
+
{ "delete": { "index": "table_name", "id": 2 } }
|
72
|
+
NDJSON
|
73
|
+
|
74
|
+
begin
|
75
|
+
response = client.bulk(body)
|
76
|
+
puts response
|
77
|
+
rescue Manticore::Client::ApiError => e
|
78
|
+
warn "API error: #{e.message} (status=#{e.code})"
|
79
|
+
end
|
80
|
+
```
|
81
|
+
|
82
|
+
## Configuration
|
83
|
+
|
84
|
+
You can override default settings by calling `configure`. Available options:
|
85
|
+
|
86
|
+
| Option | Default | Description |
|
87
|
+
| ---------- | ----------------------- | ------------------------------------- |
|
88
|
+
| `host` | `http://127.0.0.1:9308` | Base URL for the Manticore Search API |
|
89
|
+
| `username` | *nil* | HTTP Basic auth username |
|
90
|
+
| `password` | *nil* | HTTP Basic auth password |
|
91
|
+
| `timeout` | `60` | HTTP request timeout in seconds |
|
92
|
+
|
93
|
+
## Documentation
|
94
|
+
|
95
|
+
Generated API and model documentation is available under the `docs/` directory:
|
96
|
+
|
97
|
+
* [API Endpoints](docs/IndexApi.md)
|
98
|
+
* [Model Reference](docs/AggComposite.md)
|
99
|
+
|
100
|
+
Or browse online at [GitHub Pages](https://numbata.github.io/manticore-client).
|
101
|
+
|
102
|
+
## Development
|
103
|
+
|
104
|
+
1. Fork and clone this repository
|
105
|
+
2. Install dependencies:
|
106
|
+
|
107
|
+
```bash
|
108
|
+
bundle install
|
109
|
+
```
|
110
|
+
3. Run tests:
|
111
|
+
|
112
|
+
```bash
|
113
|
+
bundle exec rspec
|
114
|
+
```
|
115
|
+
4. Regenerate client after schema changes:
|
116
|
+
|
117
|
+
```bash
|
118
|
+
openapi-generator-cli generate \
|
119
|
+
-i https://raw.githubusercontent.com/manticoresoftware/openapi/master/manticore.yml \
|
120
|
+
-g ruby \
|
121
|
+
-o ./ \
|
122
|
+
--skip-overwrite \
|
123
|
+
--additional-properties=\
|
124
|
+
library=faraday,\
|
125
|
+
gemName=manticore/client,\
|
126
|
+
moduleName=Manticore::Client,\
|
127
|
+
useAutoload=true
|
128
|
+
```
|
129
|
+
|
130
|
+
## Contributing
|
131
|
+
|
132
|
+
Contributions are welcome! Please open issues and pull requests against `main`. Ensure your code passes lint and tests before submitting.
|
133
|
+
|
134
|
+
## License
|
135
|
+
|
136
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Manticore::Client::AggComposite
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **size** | **Integer** | Maximum number of composite buckets in the result | [optional] |
|
8
|
+
| **sources** | **Array<Hash<String, AggCompositeSource>>** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'manticore/client'
|
14
|
+
|
15
|
+
instance = Manticore::Client::AggComposite.new(
|
16
|
+
size: 1000,
|
17
|
+
sources: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Manticore::Client::AggCompositeSource
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **terms** | [**AggCompositeTerm**](AggCompositeTerm.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'manticore/client'
|
13
|
+
|
14
|
+
instance = Manticore::Client::AggCompositeSource.new(
|
15
|
+
terms: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|