├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ └── feature_request.yml └── workflows │ ├── checklist_validator.yml │ ├── publish.yml │ └── test.yml ├── .gitignore ├── .openapi-generator-ignore ├── .travis.yml ├── LICENSE.txt ├── README.md ├── build.gradle ├── build.sbt ├── docs ├── AggComposite.md ├── AggCompositeSource.md ├── AggCompositeTerm.md ├── AggTerms.md ├── Aggregation.md ├── AutocompleteRequest.md ├── BoolFilter.md ├── BulkResponse.md ├── DeleteDocumentRequest.md ├── DeleteResponse.md ├── ErrorResponse.md ├── FulltextFilter.md ├── GeoDistance.md ├── GeoDistanceLocationAnchor.md ├── Highlight.md ├── HighlightFieldOption.md ├── HitsHits.md ├── IndexApi.md ├── InsertDocumentRequest.md ├── Join.md ├── JoinCond.md ├── JoinOn.md ├── KnnQuery.md ├── Match.md ├── MatchAll.md ├── PercolateRequest.md ├── PercolateRequestQuery.md ├── QueryFilter.md ├── Range.md ├── ReplaceDocumentRequest.md ├── ResponseError.md ├── ResponseErrorDetails.md ├── SearchApi.md ├── SearchQuery.md ├── SearchRequest.md ├── SearchResponse.md ├── SearchResponseHits.md ├── SourceRules.md ├── SqlObjResponse.md ├── SqlResponse.md ├── SuccessResponse.md ├── UpdateDocumentRequest.md ├── UpdateResponse.md └── UtilsApi.md ├── git_push.sh ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── pom.xml ├── settings.gradle └── src ├── main ├── AndroidManifest.xml └── java │ └── com │ └── manticoresearch │ └── client │ ├── ApiClient.java │ ├── ApiException.java │ ├── ApiResponse.java │ ├── Configuration.java │ ├── JSON.java │ ├── JavaTimeFormatter.java │ ├── Pair.java │ ├── RFC3339DateFormat.java │ ├── ServerConfiguration.java │ ├── ServerVariable.java │ ├── StringUtil.java │ ├── api │ ├── IndexApi.java │ ├── SearchApi.java │ └── UtilsApi.java │ ├── auth │ ├── ApiKeyAuth.java │ ├── Authentication.java │ ├── HttpBasicAuth.java │ └── HttpBearerAuth.java │ └── model │ ├── AbstractOpenApiSchema.java │ ├── AggComposite.java │ ├── AggCompositeSource.java │ ├── AggCompositeTerm.java │ ├── AggTerms.java │ ├── Aggregation.java │ ├── AutocompleteRequest.java │ ├── BoolFilter.java │ ├── BulkResponse.java │ ├── DeleteDocumentRequest.java │ ├── DeleteResponse.java │ ├── ErrorResponse.java │ ├── FulltextFilter.java │ ├── GeoDistance.java │ ├── GeoDistanceLocationAnchor.java │ ├── Highlight.java │ ├── HighlightFieldOption.java │ ├── HitsHits.java │ ├── InsertDocumentRequest.java │ ├── Join.java │ ├── JoinCond.java │ ├── JoinOn.java │ ├── KnnQuery.java │ ├── Match.java │ ├── MatchAll.java │ ├── PercolateRequest.java │ ├── PercolateRequestQuery.java │ ├── QueryFilter.java │ ├── Range.java │ ├── ReplaceDocumentRequest.java │ ├── ResponseError.java │ ├── ResponseErrorDetails.java │ ├── SearchQuery.java │ ├── SearchRequest.java │ ├── SearchResponse.java │ ├── SearchResponseHits.java │ ├── SourceRules.java │ ├── SqlObjResponse.java │ ├── SqlResponse.java │ ├── SuccessResponse.java │ ├── UpdateDocumentRequest.java │ └── UpdateResponse.java └── test └── java └── com └── manticoresearch └── client ├── api ├── IndexApiTest.java ├── SearchApiTest.java └── UtilsApiTest.java └── model ├── AggCompositeSourceTest.java ├── AggCompositeTermTest.java ├── AggCompositeTest.java ├── AggTermsTest.java ├── AggregationTest.java ├── AutocompleteRequestTest.java ├── BoolFilterTest.java ├── BulkResponseTest.java ├── DeleteDocumentRequestTest.java ├── DeleteResponseTest.java ├── ErrorResponseTest.java ├── FulltextFilterTest.java ├── GeoDistanceLocationAnchorTest.java ├── GeoDistanceTest.java ├── HighlightFieldOptionTest.java ├── HighlightTest.java ├── HitsHitsTest.java ├── InsertDocumentRequestTest.java ├── JoinCondTest.java ├── JoinOnTest.java ├── JoinTest.java ├── KnnQueryTest.java ├── MatchAllTest.java ├── MatchTest.java ├── PercolateRequestQueryTest.java ├── PercolateRequestTest.java ├── QueryFilterTest.java ├── RangeTest.java ├── ReplaceDocumentRequestTest.java ├── ResponseErrorDetailsTest.java ├── ResponseErrorTest.java ├── SearchQueryTest.java ├── SearchRequestTest.java ├── SearchResponseHitsTest.java ├── SearchResponseTest.java ├── SourceRulesTest.java ├── SqlObjResponseTest.java ├── SqlResponseTest.java ├── SuccessResponseTest.java ├── UpdateDocumentRequestTest.java └── UpdateResponseTest.java /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: 🐞 Bug Report 2 | description: Submit a bug report 3 | labels: bug 4 | body: 5 | - type: markdown 6 | attributes: 7 | value: | 8 | Thank you for submitting a bug report. We appreciate your effort to provide detailed information. Please answer the following questions to help us identify and fix the bug. Thank you! 9 | - type: textarea 10 | id: proposal 11 | attributes: 12 | label: "Bug Description:" 13 | description: > 14 | Describe the bug in detail. Include a [Minimal Reproducible Example](https://en.wikipedia.org/wiki/Minimal_reproducible_example) (MRE) if possible. Place any code blocks within triple backticks: 15 | value: | 16 | ```bash 17 | # Example code block; replace with your code if applicable 18 | ``` 19 | validations: 20 | required: true 21 | - type: input 22 | id: version 23 | attributes: 24 | label: "Manticore Search Version:" 25 | description: > 26 | Provide the version of Manticore Search you are using. Execute `searchd -v` in the command line to find this information. 27 | validations: 28 | required: true 29 | - type: input 30 | id: os 31 | attributes: 32 | label: "Client Version:" 33 | description: > 34 | Specify the version of your Manticore client. 35 | validations: 36 | required: true 37 | - type: dropdown 38 | id: dev 39 | attributes: 40 | label: "Have you tried the latest development version of Manticore Search and the client?" 41 | multiple: false 42 | options: 43 | - "Yes" 44 | - "No" 45 | - type: markdown 46 | attributes: 47 | value: "## Thank you for completing the form! For an expedited solution, consider our [professional services](https://manticoresearch.com/services/)." 48 | - type: textarea 49 | id: checklist 50 | attributes: 51 | label: "Internal Checklist:" 52 | description: > 53 | **For Manticore Team Use Only** — Please do not edit this section. This checklist will be completed by the Manticore team as they manage the issue. 54 | value: | 55 | To be completed by the assignee. Check off tasks that have been completed or are not applicable. 56 |
57 | 58 | - [ ] Implementation completed 59 | - [ ] Tests developed 60 | - [ ] Documentation updated 61 | - [ ] Documentation reviewed 62 | 63 |
64 | validations: 65 | required: true 66 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: 🌟 Feature Request 2 | description: Submit a proposal for a new feature or enhancement 3 | body: 4 | - type: textarea 5 | id: proposal 6 | attributes: 7 | label: "Proposal:" 8 | description: > 9 | Please describe your proposal in detail. 10 | Include why you believe this feature should be added and what use cases it supports. 11 | If applicable, add any examples or code snippets inside triple backticks to clarify your proposal. 12 | validations: 13 | required: true 14 | - type: markdown 15 | attributes: 16 | value: "## Thank you for completing the form! If you are interested in sponsoring the development of this feature, consider our [professional services](https://manticoresearch.com/services/)." 17 | - type: textarea 18 | id: checklist 19 | attributes: 20 | label: "Checklist:" 21 | description: > 22 | **For Manticore Team Use Only** — Please do not edit this section. This checklist will be completed by the Manticore team as they manage the issue. 23 | value: | 24 | To be completed by the assignee. Check off tasks that have been completed or are not applicable. 25 |
26 | 27 | - [ ] Implementation completed 28 | - [ ] Tests developed 29 | - [ ] Documentation updated 30 | - [ ] Documentation reviewed 31 | - [x] OpenAPI YAML updated and issue created to rebuild clients 32 | 33 |
34 | validations: 35 | required: true 36 | -------------------------------------------------------------------------------- /.github/workflows/checklist_validator.yml: -------------------------------------------------------------------------------- 1 | name: 📝 Checklist Validator 2 | run-name: 📝 Checklist Validator for issue ${{ github.event.issue.number }} 3 | 4 | on: 5 | issues: 6 | types: 7 | - closed 8 | 9 | jobs: 10 | checklist-validation: 11 | name: ✅ Checklist Completion Check 12 | runs-on: ubuntu-22.04 13 | steps: 14 | - uses: manticoresoftware/manticoresearch/actions/checklist-validator@master 15 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: Publishing 2 | 3 | on: [push] 4 | 5 | jobs: 6 | test: 7 | uses: ./.github/workflows/test.yml 8 | publish: 9 | name: Publish the client to the public registry 10 | needs: [test] 11 | runs-on: ubuntu-22.04 12 | env: 13 | MVNSETTINGS: ${{ secrets.MVNSETTINGS_NEW }} 14 | PRIVATEKEY: ${{ secrets.PRIVATEKEY }} 15 | GPGKEY: ${{ secrets.GPGKEY }} 16 | strategy: 17 | matrix: 18 | java: [ '17' ] 19 | services: 20 | manticoresearch-manticore: 21 | image: manticoresearch/manticore:dev 22 | env: 23 | EXTRA: 1 24 | ports: 25 | - 9408:9308 26 | steps: 27 | - uses: actions/checkout@v2 28 | - name: Set up JDK 29 | uses: actions/setup-java@v2 30 | with: 31 | java-version: ${{ matrix.java }} 32 | distribution: 'temurin' 33 | cache: maven 34 | - name: Check for dev-version 35 | if: ${{ contains(github.ref, 'master') }} 36 | run: | 37 | VERSION=`git log -1 --date=format:"%y%m%d%H" --format=%cd-%h|head` 38 | echo "version $VERSION" 39 | sed -i -E "s/(\)([0-9]\.[0-9]\.)(.*)(\<)/\1\2$VERSION\4/1" pom.xml 40 | - name: Publish 41 | run: | 42 | sleep 3m 43 | mkdir -p ~/.m2 44 | export GPG_TTY=$(tty) 45 | export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED" 46 | echo "$MVNSETTINGS" > ~/.m2/settings.xml 47 | echo "import" 48 | echo "$PRIVATEKEY" > ~/key 49 | gpg2 --import --batch ~/key 50 | echo "verify" 51 | mvn install -Dmaven.test.skip.exec=true -DskipTests=true -Dmaven.test.skip=true -Dgpg.passphrase=$GPGKEY 52 | echo "deploy" 53 | mvn clean deploy -Pgpg-key1 -PsonatypeDeploy -e -X 54 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven 3 | # 4 | # This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) 5 | 6 | name: Testing 7 | 8 | on: [workflow_call] 9 | 10 | jobs: 11 | build: 12 | name: Running basic tests 13 | runs-on: ubuntu-22.04 14 | strategy: 15 | matrix: 16 | java: [ '17', '21' ] 17 | 18 | services: 19 | manticoresearch-manticore: 20 | image: manticoresearch/manticore:dev 21 | env: 22 | EXTRA: 1 23 | ports: 24 | - 9408:9308 25 | 26 | steps: 27 | - uses: actions/checkout@v2 28 | - name: Set up JDK 29 | uses: actions/setup-java@v2 30 | with: 31 | java-version: ${{ matrix.java }} 32 | distribution: 'temurin' 33 | cache: maven 34 | - run: | 35 | sleep 3m 36 | mvn test 37 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # exclude jar for gradle wrapper 12 | !gradle/wrapper/*.jar 13 | 14 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 15 | hs_err_pid* 16 | 17 | # build files 18 | **/target 19 | target 20 | .gradle 21 | build 22 | .project -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Generated by OpenAPI Generator: https://openapi-generator.tech 3 | # 4 | # Ref: https://docs.travis-ci.com/user/languages/java/ 5 | # 6 | language: java 7 | jdk: 8 | - openjdk12 9 | - openjdk11 10 | - openjdk10 11 | - openjdk9 12 | - openjdk8 13 | before_install: 14 | # ensure gradlew has proper permission 15 | - chmod a+x ./gradlew 16 | script: 17 | # test using maven 18 | #- mvn test 19 | # test using gradle 20 | - gradle test 21 | # test using sbt 22 | # - sbt test 23 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2020-2025, 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. -------------------------------------------------------------------------------- /build.sbt: -------------------------------------------------------------------------------- 1 | lazy val root = (project in file(".")). 2 | settings( 3 | organization := "com.manticoresearch", 4 | name := "manticoresearch", 5 | version := "8.0.0", 6 | scalaVersion := "2.11.4", 7 | scalacOptions ++= Seq("-feature"), 8 | Compile / javacOptions ++= Seq("-Xlint:deprecation"), 9 | Compile / packageDoc / publishArtifact := false, 10 | resolvers += Resolver.mavenLocal, 11 | libraryDependencies ++= Seq( 12 | "com.google.code.findbugs" % "jsr305" % "3.0.0", 13 | "io.swagger" % "swagger-annotations" % "1.6.5", 14 | "org.glassfish.jersey.core" % "jersey-client" % "3.0.4", 15 | "org.glassfish.jersey.inject" % "jersey-hk2" % "3.0.4", 16 | "org.glassfish.jersey.media" % "jersey-media-multipart" % "3.0.4", 17 | "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "3.0.4", 18 | "org.glassfish.jersey.connectors" % "jersey-apache-connector" % "3.0.4", 19 | "com.fasterxml.jackson.core" % "jackson-core" % "2.17.1" % "compile", 20 | "com.fasterxml.jackson.core" % "jackson-annotations" % "2.17.1" % "compile", 21 | "com.fasterxml.jackson.core" % "jackson-databind" % "2.17.1" % "compile", 22 | "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.17.1" % "compile", 23 | "org.openapitools" % "jackson-databind-nullable" % "0.2.6" % "compile", 24 | "jakarta.annotation" % "jakarta.annotation-api" % "2.1.0" % "compile", 25 | "org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test" 26 | ) 27 | ) 28 | -------------------------------------------------------------------------------- /docs/AggComposite.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AggComposite 4 | 5 | Object to perform composite aggregation, i.e., grouping search results by multiple fields 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**size** | **Integer** | Maximum number of composite buckets in the result | [optional] | 12 | |**sources** | **List<Map<String, AggCompositeSource>>** | | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/AggCompositeSource.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AggCompositeSource 4 | 5 | Object containing terms used for composite aggregation. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**terms** | [**AggCompositeTerm**](AggCompositeTerm.md) | | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/AggCompositeTerm.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AggCompositeTerm 4 | 5 | Object representing a term to be used in composite aggregation. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**field** | **String** | Name of field to operate with | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/AggTerms.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AggTerms 4 | 5 | Object containing term fields to aggregate on 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**field** | **String** | Name of attribute to aggregate by | | 12 | |**size** | **Integer** | Maximum number of buckets in the result | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Aggregation.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Aggregation 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**terms** | [**AggTerms**](AggTerms.md) | | [optional] | 11 | |**sort** | **List<Object>** | | [optional] | 12 | |**composite** | [**AggComposite**](AggComposite.md) | | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/AutocompleteRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AutocompleteRequest 4 | 5 | Object containing the data for performing an autocomplete search. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**table** | **String** | The table to perform the search on | | 12 | |**query** | **String** | The beginning of the string to autocomplete | | 13 | |**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] | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/BoolFilter.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # BoolFilter 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**must** | [**List<QueryFilter>**](QueryFilter.md) | Query clauses that must match for the document to be included | [optional] | 11 | |**mustNot** | [**List<QueryFilter>**](QueryFilter.md) | Query clauses that must not match for the document to be included | [optional] | 12 | |**should** | [**List<QueryFilter>**](QueryFilter.md) | Query clauses that should be matched, but are not required | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/BulkResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # BulkResponse 4 | 5 | Success response for bulk search requests 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**items** | **List<Object>** | List of results | [optional] | 12 | |**errors** | **Boolean** | Errors occurred during the bulk operation | [optional] | 13 | |**error** | **String** | Error message describing an error if such occurred | [optional] | 14 | |**currentLine** | **Integer** | Number of the row returned in the response | [optional] | 15 | |**skippedLines** | **Integer** | Number of rows skipped in the response | [optional] | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/DeleteDocumentRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeleteDocumentRequest 4 | 5 | Payload for delete request. Documents can be deleted either one by one by specifying the document id or by providing a query object. For more information see [Delete API](https://manual.manticoresearch.com/Deleting_documents) 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**table** | **String** | Table name | | 12 | |**cluster** | **String** | Cluster name | [optional] | 13 | |**id** | **Long** | The ID of document for deletion | [optional] | 14 | |**query** | **Object** | Defines the criteria to match documents for deletion | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/DeleteResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeleteResponse 4 | 5 | Response object for successful delete request 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**table** | **String** | The name of the table from which the document was deleted | [optional] | 12 | |**deleted** | **Integer** | Number of documents deleted | [optional] | 13 | |**id** | **Long** | The ID of the deleted document. If multiple documents are deleted, the ID of the first deleted document is returned | [optional] | 14 | |**found** | **Boolean** | Indicates whether any documents to be deleted were found | [optional] | 15 | |**result** | **String** | Result of the delete operation, typically 'deleted' | [optional] | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/ErrorResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ErrorResponse 4 | 5 | Error response object containing information about the error and a status code 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**error** | [**ResponseError**](ResponseError.md) | | | 12 | |**status** | **Integer** | HTTP status code of the error response | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/FulltextFilter.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # FulltextFilter 4 | 5 | Defines a type of filter for full-text search queries 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**queryString** | **String** | Filter object defining a query string | [optional] | 12 | |**match** | **Object** | Filter object defining a match keyword passed as a string or in a Match object | [optional] | 13 | |**matchPhrase** | **Object** | Filter object defining a match phrase | [optional] | 14 | |**matchAll** | **Object** | Filter object to select all documents | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/GeoDistance.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GeoDistance 4 | 5 | Object to perform geo-distance based filtering on queries 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**locationAnchor** | [**GeoDistanceLocationAnchor**](GeoDistanceLocationAnchor.md) | | [optional] | 12 | |**locationSource** | **Object** | Field name in the document that contains location data | [optional] | 13 | |**distanceType** | [**DistanceTypeEnum**](#DistanceTypeEnum) | Algorithm used to calculate the distance | [optional] | 14 | |**distance** | **Object** | The distance from the anchor point to filter results by | [optional] | 15 | 16 | 17 | 18 | ## Enum: DistanceTypeEnum 19 | 20 | | Name | Value | 21 | |---- | -----| 22 | | ADAPTIVE | "adaptive" | 23 | | HAVERSINE | "haversine" | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/GeoDistanceLocationAnchor.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GeoDistanceLocationAnchor 4 | 5 | Specifies the location of the pin point used for search 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**lat** | **Object** | Latitude of the anchor point | [optional] | 12 | |**lon** | **Object** | Longitude of the anchor point | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Highlight.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Highlight 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**fragmentSize** | **Object** | Maximum size of the text fragments in highlighted snippets per field | [optional] | 11 | |**limit** | **Object** | Maximum size of snippets per field | [optional] | 12 | |**limitSnippets** | **Object** | Maximum number of snippets per field | [optional] | 13 | |**limitWords** | **Object** | Maximum number of words per field | [optional] | 14 | |**numberOfFragments** | **Object** | Total number of highlighted fragments per field | [optional] | 15 | |**afterMatch** | **String** | Text inserted after the matched term, typically used for HTML formatting | [optional] | 16 | |**allowEmpty** | **Boolean** | Permits an empty string to be returned as the highlighting result. Otherwise, the beginning of the original text would be returned | [optional] | 17 | |**around** | **Integer** | Number of words around the match to include in the highlight | [optional] | 18 | |**beforeMatch** | **String** | Text inserted before the match, typically used for HTML formatting | [optional] | 19 | |**emitZones** | **Boolean** | Emits an HTML tag with the enclosing zone name before each highlighted snippet | [optional] | 20 | |**encoder** | [**EncoderEnum**](#EncoderEnum) | If set to 'html', retains HTML markup when highlighting | [optional] | 21 | |**fields** | **Object** | | [optional] | 22 | |**forceAllWords** | **Boolean** | Ignores the length limit until the result includes all keywords | [optional] | 23 | |**forceSnippets** | **Boolean** | Forces snippet generation even if limits allow highlighting the entire text | [optional] | 24 | |**highlightQuery** | [**QueryFilter**](QueryFilter.md) | | [optional] | 25 | |**htmlStripMode** | [**HtmlStripModeEnum**](#HtmlStripModeEnum) | Defines the mode for handling HTML markup in the highlight | [optional] | 26 | |**limitsPerField** | **Boolean** | Determines whether the 'limit', 'limit_words', and 'limit_snippets' options operate as individual limits in each field of the document | [optional] | 27 | |**noMatchSize** | [**NoMatchSizeEnum**](#NoMatchSizeEnum) | If set to 1, allows an empty string to be returned as a highlighting result | [optional] | 28 | |**order** | [**OrderEnum**](#OrderEnum) | Sets the sorting order of highlighted snippets | [optional] | 29 | |**preTags** | **String** | Text inserted before each highlighted snippet | [optional] | 30 | |**postTags** | **String** | Text inserted after each highlighted snippet | [optional] | 31 | |**startSnippetId** | **Integer** | Sets the starting value of the %SNIPPET_ID% macro | [optional] | 32 | |**useBoundaries** | **Boolean** | Defines whether to additionally break snippets by phrase boundary characters | [optional] | 33 | 34 | 35 | 36 | ## Enum: EncoderEnum 37 | 38 | | Name | Value | 39 | |---- | -----| 40 | | DEFAULT | "default" | 41 | | HTML | "html" | 42 | 43 | 44 | 45 | ## Enum: HtmlStripModeEnum 46 | 47 | | Name | Value | 48 | |---- | -----| 49 | | NONE | "none" | 50 | | STRIP | "strip" | 51 | | INDEX | "index" | 52 | | RETAIN | "retain" | 53 | 54 | 55 | 56 | ## Enum: NoMatchSizeEnum 57 | 58 | | Name | Value | 59 | |---- | -----| 60 | | NUMBER_0 | 0 | 61 | | NUMBER_1 | 1 | 62 | 63 | 64 | 65 | ## Enum: OrderEnum 66 | 67 | | Name | Value | 68 | |---- | -----| 69 | | ASC | "asc" | 70 | | DESC | "desc" | 71 | | SCORE | "score" | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /docs/HighlightFieldOption.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # HighlightFieldOption 4 | 5 | Options for controlling the behavior of highlighting on a per-field basis 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**fragmentSize** | **Integer** | Maximum size of the text fragments in highlighted snippets per field | [optional] | 12 | |**limit** | **Integer** | Maximum size of snippets per field | [optional] | 13 | |**limitSnippets** | **Integer** | Maximum number of snippets per field | [optional] | 14 | |**limitWords** | **Integer** | Maximum number of words per field | [optional] | 15 | |**numberOfFragments** | **Integer** | Total number of highlighted fragments per field | [optional] | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/HitsHits.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # HitsHits 4 | 5 | Search hit representing a matched document 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**id** | **Long** | The ID of the matched document | [optional] | 12 | |**score** | **Integer** | The score of the matched document | [optional] | 13 | |**source** | **Object** | The source data of the matched document | [optional] | 14 | |**knnDist** | **BigDecimal** | The knn distance of the matched document returned for knn queries | [optional] | 15 | |**highlight** | **Object** | The highlighting-related data of the matched document | [optional] | 16 | |**table** | **String** | The table name of the matched document returned for percolate queries | [optional] | 17 | |**typeColon** | **String** | The type of the matched document returned for percolate queries | [optional] | 18 | |**fields** | **Object** | The percolate-related fields of the matched document returned for percolate queries | [optional] | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/InsertDocumentRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # InsertDocumentRequest 4 | 5 | Object containing data for inserting a new document into the table 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**table** | **String** | Name of the table to insert the document into | | 12 | |**cluster** | **String** | Name of the cluster to insert the document into | [optional] | 13 | |**id** | **Long** | Document ID. If not provided, an ID will be auto-generated | [optional] | 14 | |**doc** | **Object** | Object containing document data | | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/Join.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Join 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**type** | [**TypeEnum**](#TypeEnum) | Type of the join operation | | 11 | |**on** | [**List<JoinOn>**](JoinOn.md) | List of objects defining joined tables | | 12 | |**query** | [**FulltextFilter**](FulltextFilter.md) | | [optional] | 13 | |**table** | **String** | Basic table of the join operation | | 14 | 15 | 16 | 17 | ## Enum: TypeEnum 18 | 19 | | Name | Value | 20 | |---- | -----| 21 | | INNER | "inner" | 22 | | LEFT | "left" | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /docs/JoinCond.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # JoinCond 4 | 5 | Object representing the conditions used to perform the join operation 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**field** | **String** | Field to join on | | 12 | |**table** | **String** | Joined table | | 13 | |**type** | **Object** | | [optional] | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/JoinOn.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # JoinOn 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**right** | [**JoinCond**](JoinCond.md) | | [optional] | 11 | |**left** | [**JoinCond**](JoinCond.md) | | [optional] | 12 | |**operator** | [**OperatorEnum**](#OperatorEnum) | | [optional] | 13 | 14 | 15 | 16 | ## Enum: OperatorEnum 17 | 18 | | Name | Value | 19 | |---- | -----| 20 | | EQ | "eq" | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/KnnQuery.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # KnnQuery 4 | 5 | Object representing a k-nearest neighbor search query 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**field** | **String** | Field to perform the k-nearest neighbor search on | | 12 | |**k** | **Integer** | The number of nearest neighbors to return | | 13 | |**queryVector** | **List<BigDecimal>** | The vector used as input for the KNN search | [optional] | 14 | |**docId** | **Long** | The docuemnt ID used as input for the KNN search | [optional] | 15 | |**ef** | **Integer** | Optional parameter controlling the accuracy of the search | [optional] | 16 | |**filter** | [**QueryFilter**](QueryFilter.md) | | [optional] | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/Match.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Match 4 | 5 | Filter helper object defining a match keyword and match options 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**query** | **String** | | | 12 | |**operator** | [**OperatorEnum**](#OperatorEnum) | | [optional] | 13 | |**boost** | **BigDecimal** | | [optional] | 14 | 15 | 16 | 17 | ## Enum: OperatorEnum 18 | 19 | | Name | Value | 20 | |---- | -----| 21 | | OR | "or" | 22 | | AND | "and" | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /docs/MatchAll.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # MatchAll 4 | 5 | Filter helper object defining the 'match all'' condition 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**all** | [**AllEnum**](#AllEnum) | | | 12 | 13 | 14 | 15 | ## Enum: AllEnum 16 | 17 | | Name | Value | 18 | |---- | -----| 19 | | _ | "{}" | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/PercolateRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PercolateRequest 4 | 5 | Object containing the query for percolating documents against stored queries in a percolate table 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**query** | [**PercolateRequestQuery**](PercolateRequestQuery.md) | | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/PercolateRequestQuery.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PercolateRequestQuery 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**percolate** | **Object** | Object representing the document to percolate | | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/QueryFilter.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # QueryFilter 4 | 5 | Object used to apply various conditions, such as full-text matching or attribute filtering, to a search query 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**queryString** | **Object** | Filter object defining a query string | [optional] | 12 | |**match** | **Object** | Filter object defining a match keyword passed as a string or in a Match object | [optional] | 13 | |**matchPhrase** | **Object** | Filter object defining a match phrase | [optional] | 14 | |**matchAll** | **Object** | Filter object to select all documents | [optional] | 15 | |**bool** | [**BoolFilter**](BoolFilter.md) | | [optional] | 16 | |**equals** | **Object** | | [optional] | 17 | |**in** | **Object** | Filter to match a given set of attribute values. | [optional] | 18 | |**range** | **Object** | Filter to match a given range of attribute values passed in Range objects | [optional] | 19 | |**geoDistance** | [**GeoDistance**](GeoDistance.md) | | [optional] | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/Range.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Range 4 | 5 | Filter helper object defining the 'range' condition 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**lt** | **Object** | | [optional] | 12 | |**lte** | **Object** | | [optional] | 13 | |**gt** | **Object** | | [optional] | 14 | |**gte** | **Object** | | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/ReplaceDocumentRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ReplaceDocumentRequest 4 | 5 | Object containing the document data for replacing an existing document in a table. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**doc** | **Object** | Object containing the new document data to replace the existing one. | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ResponseError.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ResponseError 4 | 5 | ## oneOf schemas 6 | * [ResponseErrorDetails](ResponseErrorDetails.md) 7 | * [String](String.md) 8 | 9 | ## Example 10 | ```java 11 | // Import classes: 12 | import com.manticoresearch.client.model.ResponseError; 13 | import com.manticoresearch.client.model.ResponseErrorDetails; 14 | import com.manticoresearch.client.model.String; 15 | 16 | public class Example { 17 | public static void main(String[] args) { 18 | ResponseError exampleResponseError = new ResponseError(); 19 | 20 | // create a new ResponseErrorDetails 21 | ResponseErrorDetails exampleResponseErrorDetails = new ResponseErrorDetails(); 22 | // set ResponseError to ResponseErrorDetails 23 | exampleResponseError.setActualInstance(exampleResponseErrorDetails); 24 | // to get back the ResponseErrorDetails set earlier 25 | ResponseErrorDetails testResponseErrorDetails = (ResponseErrorDetails) exampleResponseError.getActualInstance(); 26 | 27 | // create a new String 28 | String exampleString = new String(); 29 | // set ResponseError to String 30 | exampleResponseError.setActualInstance(exampleString); 31 | // to get back the String set earlier 32 | String testString = (String) exampleResponseError.getActualInstance(); 33 | } 34 | } 35 | ``` 36 | 37 | 38 | -------------------------------------------------------------------------------- /docs/ResponseErrorDetails.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ResponseErrorDetails 4 | 5 | Detailed error information returned in case of an error response 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**type** | **String** | Type or category of the error | | 12 | |**reason** | **String** | Detailed explanation of why the error occurred | [optional] | 13 | |**table** | **String** | The table related to the error, if applicable | [optional] | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/SearchQuery.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SearchQuery 4 | 5 | Defines a query structure for performing search operations 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**queryString** | **Object** | Filter object defining a query string | [optional] | 12 | |**match** | **Object** | Filter object defining a match keyword passed as a string or in a Match object | [optional] | 13 | |**matchPhrase** | **Object** | Filter object defining a match phrase | [optional] | 14 | |**matchAll** | **Object** | Filter object to select all documents | [optional] | 15 | |**bool** | [**BoolFilter**](BoolFilter.md) | | [optional] | 16 | |**equals** | **Object** | | [optional] | 17 | |**in** | **Object** | Filter to match a given set of attribute values. | [optional] | 18 | |**range** | **Object** | Filter to match a given range of attribute values passed in Range objects | [optional] | 19 | |**geoDistance** | [**GeoDistance**](GeoDistance.md) | | [optional] | 20 | |**highlight** | [**Highlight**](Highlight.md) | | [optional] | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/SearchRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SearchRequest 4 | 5 | Request object for search operation 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**table** | **String** | The table to perform the search on | | 12 | |**query** | [**SearchQuery**](SearchQuery.md) | | [optional] | 13 | |**join** | [**List<Join>**](Join.md) | Join clause to combine search data from multiple tables | [optional] | 14 | |**highlight** | [**Highlight**](Highlight.md) | | [optional] | 15 | |**limit** | **Integer** | Maximum number of results to return | [optional] | 16 | |**knn** | [**KnnQuery**](KnnQuery.md) | | [optional] | 17 | |**aggs** | | Defines aggregation settings for grouping results | [optional] | 18 | |**expressions** | | Expressions to calculate additional values for the result | [optional] | 19 | |**maxMatches** | **Integer** | Maximum number of matches allowed in the result | [optional] | 20 | |**offset** | **Integer** | Starting point for pagination of the result | [optional] | 21 | |**options** | **Object** | Additional search options | [optional] | 22 | |**profile** | **Boolean** | Enable or disable profiling of the search request | [optional] | 23 | |**sort** | **Object** | | [optional] | 24 | |**source** | **Object** | | [optional] | 25 | |**trackScores** | **Boolean** | Enable or disable result weight calculation used for sorting | [optional] | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /docs/SearchResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SearchResponse 4 | 5 | Response object containing the results of a search request 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**took** | **Integer** | Time taken to execute the search | [optional] | 12 | |**timedOut** | **Boolean** | Indicates whether the search operation timed out | [optional] | 13 | |**aggregations** | **Object** | Aggregated search results grouped by the specified criteria | [optional] | 14 | |**hits** | [**SearchResponseHits**](SearchResponseHits.md) | | [optional] | 15 | |**profile** | **Object** | Profile information about the search execution, if profiling is enabled | [optional] | 16 | |**scroll** | **String** | Scroll token to be used fo pagination | [optional] | 17 | |**warning** | **Object** | Warnings encountered during the search operation | [optional] | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/SearchResponseHits.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SearchResponseHits 4 | 5 | Object containing the search hits, which represent the documents that matched the query. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**maxScore** | **Integer** | Maximum score among the matched documents | [optional] | 12 | |**total** | **Integer** | Total number of matched documents | [optional] | 13 | |**totalRelation** | **String** | Indicates whether the total number of hits is accurate or an estimate | [optional] | 14 | |**hits** | [**List<HitsHits>**](HitsHits.md) | Array of hit objects, each representing a matched document | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/SourceRules.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SourceRules 4 | 5 | Defines which fields to include or exclude in the response for a search query 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**includes** | **Object** | List of fields to include in the response | [optional] | 12 | |**excludes** | **Object** | List of fields to exclude from the response | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/SqlObjResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SqlObjResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**hits** | **Object** | | | 11 | |**took** | **BigDecimal** | | [optional] | 12 | |**timedOut** | **Boolean** | | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/SqlResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SqlResponse 4 | 5 | List of responses from executed SQL queries 6 | 7 | ## oneOf schemas 8 | * [List](List.md) 9 | * [SqlObjResponse](SqlObjResponse.md) 10 | 11 | ## Example 12 | ```java 13 | // Import classes: 14 | import com.manticoresearch.client.model.SqlResponse; 15 | import com.manticoresearch.client.model.List; 16 | import com.manticoresearch.client.model.SqlObjResponse; 17 | 18 | public class Example { 19 | public static void main(String[] args) { 20 | SqlResponse exampleSqlResponse = new SqlResponse(); 21 | 22 | // create a new List 23 | List exampleList = new List(); 24 | // set SqlResponse to List 25 | exampleSqlResponse.setActualInstance(exampleList); 26 | // to get back the List set earlier 27 | List testList = (List) exampleSqlResponse.getActualInstance(); 28 | 29 | // create a new SqlObjResponse 30 | SqlObjResponse exampleSqlObjResponse = new SqlObjResponse(); 31 | // set SqlResponse to SqlObjResponse 32 | exampleSqlResponse.setActualInstance(exampleSqlObjResponse); 33 | // to get back the SqlObjResponse set earlier 34 | SqlObjResponse testSqlObjResponse = (SqlObjResponse) exampleSqlResponse.getActualInstance(); 35 | } 36 | } 37 | ``` 38 | 39 | 40 | -------------------------------------------------------------------------------- /docs/SuccessResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SuccessResponse 4 | 5 | Response object indicating the success of an operation, such as inserting or updating a document 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**table** | **String** | Name of the document table | [optional] | 12 | |**id** | **Long** | ID of the document affected by the request operation | [optional] | 13 | |**created** | **Boolean** | Indicates whether the document was created as a result of the operation | [optional] | 14 | |**result** | **String** | Result of the operation, typically 'created', 'updated', or 'deleted' | [optional] | 15 | |**found** | **Boolean** | Indicates whether the document was found in the table | [optional] | 16 | |**status** | **Integer** | HTTP status code representing the result of the operation | [optional] | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/UpdateDocumentRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateDocumentRequest 4 | 5 | Payload for updating a document or multiple documents in a table 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**table** | **String** | Name of the document table | | 12 | |**cluster** | **String** | Name of the document cluster | [optional] | 13 | |**doc** | **Object** | Object containing the document fields to update | | 14 | |**id** | **Long** | Document ID | [optional] | 15 | |**query** | [**QueryFilter**](QueryFilter.md) | | [optional] | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/UpdateResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateResponse 4 | 5 | Success response returned after updating one or more documents 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**table** | **String** | Name of the document table | [optional] | 12 | |**updated** | **Integer** | Number of documents updated | [optional] | 13 | |**id** | **Long** | Document ID | [optional] | 14 | |**result** | **String** | Result of the update operation, typically 'updated' | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/UtilsApi.md: -------------------------------------------------------------------------------- 1 | # UtilsApi 2 | 3 | All URIs are relative to *http://127.0.0.1:9308* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**sql**](UtilsApi.md#sql) | **POST** /sql | Perform SQL requests 8 | 9 | 10 | 11 | ## sql 12 | 13 | > Map<String, Array> sql(body, rawResponse) 14 | 15 | Perform SQL requests 16 | 17 | Run a query in SQL format. 18 | Expects a query string passed through `body` parameter and `rawResponse` parameter that defines a format of response: 19 | * `rawResponse` parameter can be set to false for Select only queries, e.g., `SELECT * FROM mytable`. 20 | * `rawResponse` parameter can be set to true for any type of query (including Select qieries as well) , e.g., `SHOW TABLES`. 21 | The query string must stay as it is, no URL encoding is needed. 22 | The response object depends on the query executed. In select mode the response has same format as `/search` operation. 23 | 24 | 25 | ### Example 26 | 27 | ```java 28 | // Import classes: 29 | import com.manticoresearch.client.ApiClient; 30 | import com.manticoresearch.client.ApiException; 31 | import com.manticoresearch.client.Configuration; 32 | import com.manticoresearch.client.model.*; 33 | import com.manticoresearch.client.api.UtilsApi; 34 | 35 | public class Example { 36 | public static void main(String[] args) { 37 | ApiClient defaultClient = Configuration.getDefaultApiClient(); 38 | defaultClient.setBasePath("http://127.0.0.1:9308"); 39 | 40 | UtilsApi utilsApi = new UtilsApi(defaultClient); 41 | 42 | try { 43 | Object sqlresult = utilsApi.sql("SHOW TABLES"); 44 | System.out.println(sqlresult); 45 | } catch (ApiException e) { 46 | System.err.println("Exception when calling UtilsApi#sql"); 47 | System.err.println("Status code: " + e.getCode()); 48 | System.err.println("Reason: " + e.getResponseBody()); 49 | System.err.println("Response headers: " + e.getResponseHeaders()); 50 | e.printStackTrace(); 51 | } 52 | } 53 | } 54 | ``` 55 | 56 | ### Parameters 57 | 58 | 59 | Name | Type | Description | Notes 60 | ------------- | ------------- | ------------- | ------------- 61 | **body** | **String**| A query string. | 62 | **rawResponse** | **Boolean**| Defines a format of response. Can be set to false for Select only queries or set to true for any queries (including Select queries). | 63 | 64 | ### Return type 65 | 66 | **Map<String, Array>** 67 | 68 | ### Authorization 69 | 70 | No authorization required 71 | 72 | ### HTTP request headers 73 | 74 | - **Content-Type**: text/plain 75 | - **Accept**: application/json 76 | 77 | ### HTTP response details 78 | | Status code | Description | Response headers | 79 | |-------------|-------------|------------------| 80 | | **200** | In case of SELECT-only in mode none the response schema is the same as of `search`. In case of `mode=raw` the response depends on the query executed. | - | 81 | | **0** | error | - | 82 | 83 | -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | git_host=$4 10 | 11 | if [ "$git_host" = "" ]; then 12 | git_host="github.com" 13 | echo "[INFO] No command line input provided. Set \$git_host to $git_host" 14 | fi 15 | 16 | if [ "$git_user_id" = "" ]; then 17 | git_user_id="manticoresoftware" 18 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 19 | fi 20 | 21 | if [ "$git_repo_id" = "" ]; then 22 | git_repo_id="manticoresearch-java" 23 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 24 | fi 25 | 26 | if [ "$release_note" = "" ]; then 27 | release_note="Minor update" 28 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 29 | fi 30 | 31 | # Initialize the local directory as a Git repository 32 | git init 33 | 34 | # Adds the files in the local repository and stages them for commit. 35 | git add . 36 | 37 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 38 | git commit -m "$release_note" 39 | 40 | # Sets the new remote 41 | git_remote=$(git remote) 42 | if [ "$git_remote" = "" ]; then # git remote not defined 43 | 44 | if [ "$GIT_TOKEN" = "" ]; then 45 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." 46 | git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git 47 | else 48 | git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git 49 | fi 50 | 51 | fi 52 | 53 | git pull origin master 54 | 55 | # Pushes (Forces) the changes in the local repository up to the remote repository 56 | echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" 57 | git push origin master 2>&1 | grep -v 'To https' 58 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). 2 | # To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. 3 | # 4 | # Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties 5 | # For example, uncomment below to build for Android 6 | #target = android 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manticoresoftware/manticoresearch-java/44ce0ad086e1c7fd4dd84fa9fab4cf5061b7da0b/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%"=="" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%"=="" set DIRNAME=. 29 | @rem This is normally unused 30 | set APP_BASE_NAME=%~n0 31 | set APP_HOME=%DIRNAME% 32 | 33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 35 | 36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 38 | 39 | @rem Find java.exe 40 | if defined JAVA_HOME goto findJavaFromJavaHome 41 | 42 | set JAVA_EXE=java.exe 43 | %JAVA_EXE% -version >NUL 2>&1 44 | if %ERRORLEVEL% equ 0 goto execute 45 | 46 | echo. 1>&2 47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 48 | echo. 1>&2 49 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 50 | echo location of your Java installation. 1>&2 51 | 52 | goto fail 53 | 54 | :findJavaFromJavaHome 55 | set JAVA_HOME=%JAVA_HOME:"=% 56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 57 | 58 | if exist "%JAVA_EXE%" goto execute 59 | 60 | echo. 1>&2 61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 62 | echo. 1>&2 63 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 64 | echo location of your Java installation. 1>&2 65 | 66 | goto fail 67 | 68 | :execute 69 | @rem Setup the command line 70 | 71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 72 | 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if %ERRORLEVEL% equ 0 goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | set EXIT_CODE=%ERRORLEVEL% 85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 87 | exit /b %EXIT_CODE% 88 | 89 | :mainEnd 90 | if "%OS%"=="Windows_NT" endlocal 91 | 92 | :omega 93 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "manticoresearch" -------------------------------------------------------------------------------- /src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/ApiException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client; 15 | 16 | import java.util.Map; 17 | import java.util.List; 18 | 19 | /** 20 | * API Exception 21 | */ 22 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 23 | public class ApiException extends Exception { 24 | private static final long serialVersionUID = 1L; 25 | 26 | private int code = 0; 27 | private Map> responseHeaders = null; 28 | private String responseBody = null; 29 | 30 | public ApiException() {} 31 | 32 | public ApiException(Throwable throwable) { 33 | super(throwable); 34 | } 35 | 36 | public ApiException(String message) { 37 | super(message); 38 | } 39 | 40 | public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { 41 | super(message, throwable); 42 | this.code = code; 43 | this.responseHeaders = responseHeaders; 44 | this.responseBody = responseBody; 45 | } 46 | 47 | public ApiException(String message, int code, Map> responseHeaders, String responseBody) { 48 | this(message, (Throwable) null, code, responseHeaders, responseBody); 49 | } 50 | 51 | public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { 52 | this(message, throwable, code, responseHeaders, null); 53 | } 54 | 55 | public ApiException(int code, Map> responseHeaders, String responseBody) { 56 | this((String) null, (Throwable) null, code, responseHeaders, responseBody); 57 | } 58 | 59 | public ApiException(int code, String message) { 60 | super(message); 61 | this.code = code; 62 | } 63 | 64 | public ApiException(int code, String message, Map> responseHeaders, String responseBody) { 65 | this(code, message); 66 | this.responseHeaders = responseHeaders; 67 | this.responseBody = responseBody; 68 | } 69 | 70 | /** 71 | * Get the HTTP status code. 72 | * 73 | * @return HTTP status code 74 | */ 75 | public int getCode() { 76 | return code; 77 | } 78 | 79 | /** 80 | * Get the HTTP response headers. 81 | * 82 | * @return A map of list of string 83 | */ 84 | public Map> getResponseHeaders() { 85 | return responseHeaders; 86 | } 87 | 88 | /** 89 | * Get the HTTP response body. 90 | * 91 | * @return Response body in the form of string 92 | */ 93 | public String getResponseBody() { 94 | return responseBody; 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/ApiResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client; 15 | 16 | import java.util.List; 17 | import java.util.Map; 18 | 19 | /** 20 | * API response returned by API call. 21 | * 22 | * @param The type of data that is deserialized from response body 23 | */ 24 | public class ApiResponse { 25 | private final int statusCode; 26 | private final Map> headers; 27 | private final T data; 28 | 29 | /** 30 | * @param statusCode The status code of HTTP response 31 | * @param headers The headers of HTTP response 32 | */ 33 | public ApiResponse(int statusCode, Map> headers) { 34 | this(statusCode, headers, null); 35 | } 36 | 37 | /** 38 | * @param statusCode The status code of HTTP response 39 | * @param headers The headers of HTTP response 40 | * @param data The object deserialized from response bod 41 | */ 42 | public ApiResponse(int statusCode, Map> headers, T data) { 43 | this.statusCode = statusCode; 44 | this.headers = headers; 45 | this.data = data; 46 | } 47 | 48 | /** 49 | * Get the status code 50 | * 51 | * @return status code 52 | */ 53 | public int getStatusCode() { 54 | return statusCode; 55 | } 56 | 57 | /** 58 | * Get the headers 59 | * 60 | * @return map of headers 61 | */ 62 | public Map> getHeaders() { 63 | return headers; 64 | } 65 | 66 | /** 67 | * Get the data 68 | * 69 | * @return data 70 | */ 71 | public T getData() { 72 | return data; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/Configuration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client; 15 | 16 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 17 | public class Configuration { 18 | public static final String VERSION = "8.0.0"; 19 | 20 | private static ApiClient defaultApiClient = new ApiClient(); 21 | 22 | /** 23 | * Get the default API client, which would be used when creating API 24 | * instances without providing an API client. 25 | * 26 | * @return Default API client 27 | */ 28 | public static ApiClient getDefaultApiClient() { 29 | return defaultApiClient; 30 | } 31 | 32 | /** 33 | * Set the default API client, which would be used when creating API 34 | * instances without providing an API client. 35 | * 36 | * @param apiClient API client 37 | */ 38 | public static void setDefaultApiClient(ApiClient apiClient) { 39 | defaultApiClient = apiClient; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/JavaTimeFormatter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | package com.manticoresearch.client; 14 | 15 | import java.time.OffsetDateTime; 16 | import java.time.format.DateTimeFormatter; 17 | import java.time.format.DateTimeParseException; 18 | 19 | /** 20 | * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. 21 | * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. 22 | */ 23 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 24 | public class JavaTimeFormatter { 25 | 26 | private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; 27 | 28 | /** 29 | * Get the date format used to parse/format {@code OffsetDateTime} parameters. 30 | * @return DateTimeFormatter 31 | */ 32 | public DateTimeFormatter getOffsetDateTimeFormatter() { 33 | return offsetDateTimeFormatter; 34 | } 35 | 36 | /** 37 | * Set the date format used to parse/format {@code OffsetDateTime} parameters. 38 | * @param offsetDateTimeFormatter {@code DateTimeFormatter} 39 | */ 40 | public void setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter) { 41 | this.offsetDateTimeFormatter = offsetDateTimeFormatter; 42 | } 43 | 44 | /** 45 | * Parse the given string into {@code OffsetDateTime} object. 46 | * @param str String 47 | * @return {@code OffsetDateTime} 48 | */ 49 | public OffsetDateTime parseOffsetDateTime(String str) { 50 | try { 51 | return OffsetDateTime.parse(str, offsetDateTimeFormatter); 52 | } catch (DateTimeParseException e) { 53 | throw new RuntimeException(e); 54 | } 55 | } 56 | /** 57 | * Format the given {@code OffsetDateTime} object into string. 58 | * @param offsetDateTime {@code OffsetDateTime} 59 | * @return {@code OffsetDateTime} in string format 60 | */ 61 | public String formatOffsetDateTime(OffsetDateTime offsetDateTime) { 62 | return offsetDateTimeFormatter.format(offsetDateTime); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/Pair.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client; 15 | 16 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 17 | public class Pair { 18 | private String name = ""; 19 | private String value = ""; 20 | 21 | public Pair (String name, String value) { 22 | setName(name); 23 | setValue(value); 24 | } 25 | 26 | private void setName(String name) { 27 | if (!isValidString(name)) { 28 | return; 29 | } 30 | 31 | this.name = name; 32 | } 33 | 34 | private void setValue(String value) { 35 | if (!isValidString(value)) { 36 | return; 37 | } 38 | 39 | this.value = value; 40 | } 41 | 42 | public String getName() { 43 | return this.name; 44 | } 45 | 46 | public String getValue() { 47 | return this.value; 48 | } 49 | 50 | private boolean isValidString(String arg) { 51 | if (arg == null) { 52 | return false; 53 | } 54 | 55 | return true; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/RFC3339DateFormat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | package com.manticoresearch.client; 14 | 15 | import com.fasterxml.jackson.databind.util.StdDateFormat; 16 | 17 | import java.text.DateFormat; 18 | import java.text.FieldPosition; 19 | import java.text.ParsePosition; 20 | import java.util.Date; 21 | import java.text.DecimalFormat; 22 | import java.util.GregorianCalendar; 23 | import java.util.TimeZone; 24 | 25 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 26 | public class RFC3339DateFormat extends DateFormat { 27 | private static final long serialVersionUID = 1L; 28 | private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); 29 | 30 | private final StdDateFormat fmt = new StdDateFormat() 31 | .withTimeZone(TIMEZONE_Z) 32 | .withColonInTimeZone(true); 33 | 34 | public RFC3339DateFormat() { 35 | this.calendar = new GregorianCalendar(); 36 | this.numberFormat = new DecimalFormat(); 37 | } 38 | 39 | @Override 40 | public Date parse(String source) { 41 | return parse(source, new ParsePosition(0)); 42 | } 43 | 44 | @Override 45 | public Date parse(String source, ParsePosition pos) { 46 | return fmt.parse(source, pos); 47 | } 48 | 49 | @Override 50 | public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { 51 | return fmt.format(date, toAppendTo, fieldPosition); 52 | } 53 | 54 | @Override 55 | public Object clone() { 56 | return super.clone(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/ServerConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client; 15 | 16 | import java.util.Map; 17 | 18 | /** 19 | * Representing a Server configuration. 20 | */ 21 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 22 | public class ServerConfiguration { 23 | public String URL; 24 | public String description; 25 | public Map variables; 26 | 27 | /** 28 | * @param URL A URL to the target host. 29 | * @param description A description of the host designated by the URL. 30 | * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. 31 | */ 32 | public ServerConfiguration(String URL, String description, Map variables) { 33 | this.URL = URL; 34 | this.description = description; 35 | this.variables = variables; 36 | } 37 | 38 | /** 39 | * Format URL template using given variables. 40 | * 41 | * @param variables A map between a variable name and its value. 42 | * @return Formatted URL. 43 | */ 44 | public String URL(Map variables) { 45 | String url = this.URL; 46 | 47 | // go through variables and replace placeholders 48 | for (Map.Entry variable: this.variables.entrySet()) { 49 | String name = variable.getKey(); 50 | ServerVariable serverVariable = variable.getValue(); 51 | String value = serverVariable.defaultValue; 52 | 53 | if (variables != null && variables.containsKey(name)) { 54 | value = variables.get(name); 55 | if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { 56 | throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); 57 | } 58 | } 59 | url = url.replace("{" + name + "}", value); 60 | } 61 | return url; 62 | } 63 | 64 | /** 65 | * Format URL template using default server variables. 66 | * 67 | * @return Formatted URL. 68 | */ 69 | public String URL() { 70 | return URL(null); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/ServerVariable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client; 15 | 16 | import java.util.HashSet; 17 | 18 | /** 19 | * Representing a Server Variable for server URL template substitution. 20 | */ 21 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 22 | public class ServerVariable { 23 | public String description; 24 | public String defaultValue; 25 | public HashSet enumValues = null; 26 | 27 | /** 28 | * @param description A description for the server variable. 29 | * @param defaultValue The default value to use for substitution. 30 | * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. 31 | */ 32 | public ServerVariable(String description, String defaultValue, HashSet enumValues) { 33 | this.description = description; 34 | this.defaultValue = defaultValue; 35 | this.enumValues = enumValues; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/StringUtil.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client; 15 | 16 | import java.util.Collection; 17 | import java.util.Iterator; 18 | 19 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 20 | public class StringUtil { 21 | /** 22 | * Check if the given array contains the given value (with case-insensitive comparison). 23 | * 24 | * @param array The array 25 | * @param value The value to search 26 | * @return true if the array contains the value 27 | */ 28 | public static boolean containsIgnoreCase(String[] array, String value) { 29 | for (String str : array) { 30 | if (value == null && str == null) { 31 | return true; 32 | } 33 | if (value != null && value.equalsIgnoreCase(str)) { 34 | return true; 35 | } 36 | } 37 | return false; 38 | } 39 | 40 | /** 41 | * Join an array of strings with the given separator. 42 | *

43 | * Note: This might be replaced by utility method from commons-lang or guava someday 44 | * if one of those libraries is added as dependency. 45 | *

46 | * 47 | * @param array The array of strings 48 | * @param separator The separator 49 | * @return the resulting string 50 | */ 51 | public static String join(String[] array, String separator) { 52 | int len = array.length; 53 | if (len == 0) { 54 | return ""; 55 | } 56 | 57 | StringBuilder out = new StringBuilder(); 58 | out.append(array[0]); 59 | for (int i = 1; i < len; i++) { 60 | out.append(separator).append(array[i]); 61 | } 62 | return out.toString(); 63 | } 64 | 65 | /** 66 | * Join a list of strings with the given separator. 67 | * 68 | * @param list The list of strings 69 | * @param separator The separator 70 | * @return the resulting string 71 | */ 72 | public static String join(Collection list, String separator) { 73 | Iterator iterator = list.iterator(); 74 | StringBuilder out = new StringBuilder(); 75 | if (iterator.hasNext()) { 76 | out.append(iterator.next()); 77 | } 78 | while (iterator.hasNext()) { 79 | out.append(separator).append(iterator.next()); 80 | } 81 | return out.toString(); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/auth/ApiKeyAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.auth; 15 | 16 | import com.manticoresearch.client.Pair; 17 | import com.manticoresearch.client.ApiException; 18 | 19 | import java.net.URI; 20 | import java.util.Map; 21 | import java.util.List; 22 | 23 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 24 | public class ApiKeyAuth implements Authentication { 25 | private final String location; 26 | private final String paramName; 27 | 28 | private String apiKey; 29 | private String apiKeyPrefix; 30 | 31 | public ApiKeyAuth(String location, String paramName) { 32 | this.location = location; 33 | this.paramName = paramName; 34 | } 35 | 36 | public String getLocation() { 37 | return location; 38 | } 39 | 40 | public String getParamName() { 41 | return paramName; 42 | } 43 | 44 | public String getApiKey() { 45 | return apiKey; 46 | } 47 | 48 | public void setApiKey(String apiKey) { 49 | this.apiKey = apiKey; 50 | } 51 | 52 | public String getApiKeyPrefix() { 53 | return apiKeyPrefix; 54 | } 55 | 56 | public void setApiKeyPrefix(String apiKeyPrefix) { 57 | this.apiKeyPrefix = apiKeyPrefix; 58 | } 59 | 60 | @Override 61 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { 62 | if (apiKey == null) { 63 | return; 64 | } 65 | String value; 66 | if (apiKeyPrefix != null) { 67 | value = apiKeyPrefix + " " + apiKey; 68 | } else { 69 | value = apiKey; 70 | } 71 | if ("query".equals(location)) { 72 | queryParams.add(new Pair(paramName, value)); 73 | } else if ("header".equals(location)) { 74 | headerParams.put(paramName, value); 75 | } else if ("cookie".equals(location)) { 76 | cookieParams.put(paramName, value); 77 | } 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/auth/Authentication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.auth; 15 | 16 | import com.manticoresearch.client.Pair; 17 | import com.manticoresearch.client.ApiException; 18 | 19 | import java.net.URI; 20 | import java.util.Map; 21 | import java.util.List; 22 | 23 | public interface Authentication { 24 | /** 25 | * Apply authentication settings to header and query params. 26 | * 27 | * @param queryParams List of query parameters 28 | * @param headerParams Map of header parameters 29 | * @param cookieParams Map of cookie parameters 30 | */ 31 | void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/auth/HttpBasicAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.auth; 15 | 16 | import com.manticoresearch.client.Pair; 17 | import com.manticoresearch.client.ApiException; 18 | 19 | import java.util.Base64; 20 | import java.nio.charset.StandardCharsets; 21 | 22 | import java.net.URI; 23 | import java.util.Map; 24 | import java.util.List; 25 | 26 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 27 | public class HttpBasicAuth implements Authentication { 28 | private String username; 29 | private String password; 30 | 31 | public String getUsername() { 32 | return username; 33 | } 34 | 35 | public void setUsername(String username) { 36 | this.username = username; 37 | } 38 | 39 | public String getPassword() { 40 | return password; 41 | } 42 | 43 | public void setPassword(String password) { 44 | this.password = password; 45 | } 46 | 47 | @Override 48 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { 49 | if (username == null && password == null) { 50 | return; 51 | } 52 | String str = (username == null ? "" : username) + ":" + (password == null ? "" : password); 53 | headerParams.put("Authorization", "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8))); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/auth/HttpBearerAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.auth; 15 | 16 | import com.manticoresearch.client.Pair; 17 | import com.manticoresearch.client.ApiException; 18 | 19 | import java.net.URI; 20 | import java.util.Map; 21 | import java.util.List; 22 | 23 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 24 | public class HttpBearerAuth implements Authentication { 25 | private final String scheme; 26 | private String bearerToken; 27 | 28 | public HttpBearerAuth(String scheme) { 29 | this.scheme = scheme; 30 | } 31 | 32 | /** 33 | * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. 34 | * 35 | * @return The bearer token 36 | */ 37 | public String getBearerToken() { 38 | return bearerToken; 39 | } 40 | 41 | /** 42 | * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. 43 | * 44 | * @param bearerToken The bearer token to send in the Authorization header 45 | */ 46 | public void setBearerToken(String bearerToken) { 47 | this.bearerToken = bearerToken; 48 | } 49 | 50 | @Override 51 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { 52 | if(bearerToken == null) { 53 | return; 54 | } 55 | 56 | headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); 57 | } 58 | 59 | private static String upperCaseBearer(String scheme) { 60 | return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/AbstractOpenApiSchema.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.manticoresearch.client.ApiException; 17 | import java.util.Objects; 18 | import java.lang.reflect.Type; 19 | import java.util.Map; 20 | import jakarta.ws.rs.core.GenericType; 21 | 22 | import com.fasterxml.jackson.annotation.JsonValue; 23 | 24 | /** 25 | * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec 26 | */ 27 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 28 | public abstract class AbstractOpenApiSchema { 29 | 30 | // store the actual instance of the schema/object 31 | private Object instance; 32 | 33 | // is nullable 34 | private Boolean isNullable; 35 | 36 | // schema type (e.g. oneOf, anyOf) 37 | private final String schemaType; 38 | 39 | public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { 40 | this.schemaType = schemaType; 41 | this.isNullable = isNullable; 42 | } 43 | 44 | /** 45 | * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object 46 | * 47 | * @return an instance of the actual schema/object 48 | */ 49 | public abstract Map> getSchemas(); 50 | 51 | /** 52 | * Get the actual instance 53 | * 54 | * @return an instance of the actual schema/object 55 | */ 56 | @JsonValue 57 | public Object getActualInstance() {return instance;} 58 | 59 | /** 60 | * Set the actual instance 61 | * 62 | * @param instance the actual instance of the schema/object 63 | */ 64 | public void setActualInstance(Object instance) {this.instance = instance;} 65 | 66 | /** 67 | * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well 68 | * 69 | * @return an instance of the actual schema/object 70 | */ 71 | public Object getActualInstanceRecursively() { 72 | return getActualInstanceRecursively(this); 73 | } 74 | 75 | private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { 76 | if (object.getActualInstance() == null) { 77 | return null; 78 | } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { 79 | return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); 80 | } else { 81 | return object.getActualInstance(); 82 | } 83 | } 84 | 85 | /** 86 | * Get the schema type (e.g. anyOf, oneOf) 87 | * 88 | * @return the schema type 89 | */ 90 | public String getSchemaType() { 91 | return schemaType; 92 | } 93 | 94 | @Override 95 | public String toString() { 96 | StringBuilder sb = new StringBuilder(); 97 | sb.append("class ").append(getClass()).append(" {\n"); 98 | sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); 99 | sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); 100 | sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); 101 | sb.append("}"); 102 | return sb.toString(); 103 | } 104 | 105 | /** 106 | * Convert the given object to string with each line indented by 4 spaces 107 | * (except the first line). 108 | */ 109 | private String toIndentedString(Object o) { 110 | if (o == null) { 111 | return "null"; 112 | } 113 | return o.toString().replace("\n", "\n "); 114 | } 115 | 116 | public boolean equals(Object o) { 117 | if (this == o) { 118 | return true; 119 | } 120 | if (o == null || getClass() != o.getClass()) { 121 | return false; 122 | } 123 | AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; 124 | return Objects.equals(this.instance, a.instance) && 125 | Objects.equals(this.isNullable, a.isNullable) && 126 | Objects.equals(this.schemaType, a.schemaType); 127 | } 128 | 129 | @Override 130 | public int hashCode() { 131 | return Objects.hash(instance, isNullable, schemaType); 132 | } 133 | 134 | /** 135 | * Is nullable 136 | * 137 | * @return true if it's nullable 138 | */ 139 | public Boolean isNullable() { 140 | if (Boolean.TRUE.equals(isNullable)) { 141 | return Boolean.TRUE; 142 | } else { 143 | return Boolean.FALSE; 144 | } 145 | } 146 | 147 | 148 | 149 | } 150 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/AggComposite.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import com.manticoresearch.client.model.AggCompositeSource; 25 | import java.util.ArrayList; 26 | import java.util.Arrays; 27 | import java.util.List; 28 | import java.util.Map; 29 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 30 | import com.manticoresearch.client.JSON; 31 | 32 | 33 | /** 34 | * Object to perform composite aggregation, i.e., grouping search results by multiple fields 35 | */ 36 | @JsonPropertyOrder({ 37 | AggComposite.JSON_PROPERTY_SIZE, 38 | AggComposite.JSON_PROPERTY_SOURCES 39 | }) 40 | @JsonTypeName("aggComposite") 41 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 42 | public class AggComposite { 43 | public static final String JSON_PROPERTY_SIZE = "size"; 44 | private Integer size; 45 | 46 | public static final String JSON_PROPERTY_SOURCES = "sources"; 47 | private List> sources; 48 | 49 | public AggComposite() { 50 | } 51 | 52 | public AggComposite size(Integer size) { 53 | this.size = size; 54 | return this; 55 | } 56 | 57 | /** 58 | * Maximum number of composite buckets in the result 59 | * @return size 60 | */ 61 | @jakarta.annotation.Nullable 62 | @JsonProperty(JSON_PROPERTY_SIZE) 63 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 64 | 65 | public Integer getSize() { 66 | return size; 67 | } 68 | 69 | 70 | @JsonProperty(JSON_PROPERTY_SIZE) 71 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 72 | public void setSize(Integer size) { 73 | this.size = size; 74 | } 75 | 76 | 77 | public AggComposite sources(List> sources) { 78 | this.sources = sources; 79 | return this; 80 | } 81 | 82 | public AggComposite addItem(Map sourcesItem) { 83 | if (this.sources == null) { 84 | this.sources = new ArrayList<>(); 85 | } 86 | this.sources.add(sourcesItem); 87 | return this; 88 | } 89 | 90 | /** 91 | * Get sources 92 | * @return sources 93 | */ 94 | @jakarta.annotation.Nullable 95 | @JsonProperty(JSON_PROPERTY_SOURCES) 96 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 97 | 98 | public List> getSources() { 99 | return sources; 100 | } 101 | 102 | 103 | @JsonProperty(JSON_PROPERTY_SOURCES) 104 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 105 | public void setSources(List> sources) { 106 | this.sources = sources; 107 | } 108 | 109 | 110 | /** 111 | * Return true if this aggComposite object is equal to o. 112 | */ 113 | @Override 114 | public boolean equals(Object o) { 115 | if (this == o) { 116 | return true; 117 | } 118 | if (o == null || getClass() != o.getClass()) { 119 | return false; 120 | } 121 | AggComposite aggComposite = (AggComposite) o; 122 | return Objects.equals(this.size, aggComposite.size) && 123 | Objects.equals(this.sources, aggComposite.sources); 124 | } 125 | 126 | @Override 127 | public int hashCode() { 128 | return Objects.hash(size, sources); 129 | } 130 | 131 | @Override 132 | public String toString() { 133 | StringBuilder sb = new StringBuilder(); 134 | sb.append("class AggComposite {\n"); 135 | sb.append(" size: ").append(toIndentedString(size)).append("\n"); 136 | sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); 137 | sb.append("}"); 138 | return sb.toString(); 139 | } 140 | 141 | /** 142 | * Convert the given object to string with each line indented by 4 spaces 143 | * (except the first line). 144 | */ 145 | private String toIndentedString(Object o) { 146 | if (o == null) { 147 | return "null"; 148 | } 149 | return o.toString().replace("\n", "\n "); 150 | } 151 | 152 | } 153 | 154 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/AggCompositeSource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import com.manticoresearch.client.model.AggCompositeTerm; 25 | import java.util.Arrays; 26 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 27 | import com.manticoresearch.client.JSON; 28 | 29 | 30 | /** 31 | * Object containing terms used for composite aggregation. 32 | */ 33 | @JsonPropertyOrder({ 34 | AggCompositeSource.JSON_PROPERTY_TERMS 35 | }) 36 | @JsonTypeName("aggCompositeSource") 37 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 38 | public class AggCompositeSource { 39 | public static final String JSON_PROPERTY_TERMS = "terms"; 40 | private AggCompositeTerm terms; 41 | 42 | public AggCompositeSource() { 43 | } 44 | 45 | public AggCompositeSource terms(AggCompositeTerm terms) { 46 | this.terms = terms; 47 | return this; 48 | } 49 | 50 | /** 51 | * Get terms 52 | * @return terms 53 | */ 54 | @jakarta.annotation.Nonnull 55 | @JsonProperty(JSON_PROPERTY_TERMS) 56 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 57 | 58 | public AggCompositeTerm getTerms() { 59 | return terms; 60 | } 61 | 62 | 63 | @JsonProperty(JSON_PROPERTY_TERMS) 64 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 65 | public void setTerms(AggCompositeTerm terms) { 66 | this.terms = terms; 67 | } 68 | 69 | 70 | /** 71 | * Return true if this aggCompositeSource object is equal to o. 72 | */ 73 | @Override 74 | public boolean equals(Object o) { 75 | if (this == o) { 76 | return true; 77 | } 78 | if (o == null || getClass() != o.getClass()) { 79 | return false; 80 | } 81 | AggCompositeSource aggCompositeSource = (AggCompositeSource) o; 82 | return Objects.equals(this.terms, aggCompositeSource.terms); 83 | } 84 | 85 | @Override 86 | public int hashCode() { 87 | return Objects.hash(terms); 88 | } 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class AggCompositeSource {\n"); 94 | sb.append(" terms: ").append(toIndentedString(terms)).append("\n"); 95 | sb.append("}"); 96 | return sb.toString(); 97 | } 98 | 99 | /** 100 | * Convert the given object to string with each line indented by 4 spaces 101 | * (except the first line). 102 | */ 103 | private String toIndentedString(Object o) { 104 | if (o == null) { 105 | return "null"; 106 | } 107 | return o.toString().replace("\n", "\n "); 108 | } 109 | 110 | } 111 | 112 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/AggCompositeTerm.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import java.util.Arrays; 25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 26 | import com.manticoresearch.client.JSON; 27 | 28 | 29 | /** 30 | * Object representing a term to be used in composite aggregation. 31 | */ 32 | @JsonPropertyOrder({ 33 | AggCompositeTerm.JSON_PROPERTY_FIELD 34 | }) 35 | @JsonTypeName("aggCompositeTerm") 36 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 37 | public class AggCompositeTerm { 38 | public static final String JSON_PROPERTY_FIELD = "field"; 39 | private String field; 40 | 41 | public AggCompositeTerm() { 42 | } 43 | 44 | public AggCompositeTerm field(String field) { 45 | this.field = field; 46 | return this; 47 | } 48 | 49 | /** 50 | * Name of field to operate with 51 | * @return field 52 | */ 53 | @jakarta.annotation.Nonnull 54 | @JsonProperty(JSON_PROPERTY_FIELD) 55 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 56 | 57 | public String getField() { 58 | return field; 59 | } 60 | 61 | 62 | @JsonProperty(JSON_PROPERTY_FIELD) 63 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 64 | public void setField(String field) { 65 | this.field = field; 66 | } 67 | 68 | 69 | /** 70 | * Return true if this aggCompositeTerm object is equal to o. 71 | */ 72 | @Override 73 | public boolean equals(Object o) { 74 | if (this == o) { 75 | return true; 76 | } 77 | if (o == null || getClass() != o.getClass()) { 78 | return false; 79 | } 80 | AggCompositeTerm aggCompositeTerm = (AggCompositeTerm) o; 81 | return Objects.equals(this.field, aggCompositeTerm.field); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(field); 87 | } 88 | 89 | @Override 90 | public String toString() { 91 | StringBuilder sb = new StringBuilder(); 92 | sb.append("class AggCompositeTerm {\n"); 93 | sb.append(" field: ").append(toIndentedString(field)).append("\n"); 94 | sb.append("}"); 95 | return sb.toString(); 96 | } 97 | 98 | /** 99 | * Convert the given object to string with each line indented by 4 spaces 100 | * (except the first line). 101 | */ 102 | private String toIndentedString(Object o) { 103 | if (o == null) { 104 | return "null"; 105 | } 106 | return o.toString().replace("\n", "\n "); 107 | } 108 | 109 | } 110 | 111 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/AggTerms.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import java.util.Arrays; 25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 26 | import com.manticoresearch.client.JSON; 27 | 28 | 29 | /** 30 | * Object containing term fields to aggregate on 31 | */ 32 | @JsonPropertyOrder({ 33 | AggTerms.JSON_PROPERTY_FIELD, 34 | AggTerms.JSON_PROPERTY_SIZE 35 | }) 36 | @JsonTypeName("aggTerms") 37 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 38 | public class AggTerms { 39 | public static final String JSON_PROPERTY_FIELD = "field"; 40 | private String field; 41 | 42 | public static final String JSON_PROPERTY_SIZE = "size"; 43 | private Integer size; 44 | 45 | public AggTerms() { 46 | } 47 | 48 | public AggTerms field(String field) { 49 | this.field = field; 50 | return this; 51 | } 52 | 53 | /** 54 | * Name of attribute to aggregate by 55 | * @return field 56 | */ 57 | @jakarta.annotation.Nonnull 58 | @JsonProperty(JSON_PROPERTY_FIELD) 59 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 60 | 61 | public String getField() { 62 | return field; 63 | } 64 | 65 | 66 | @JsonProperty(JSON_PROPERTY_FIELD) 67 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 68 | public void setField(String field) { 69 | this.field = field; 70 | } 71 | 72 | 73 | public AggTerms size(Integer size) { 74 | this.size = size; 75 | return this; 76 | } 77 | 78 | /** 79 | * Maximum number of buckets in the result 80 | * @return size 81 | */ 82 | @jakarta.annotation.Nullable 83 | @JsonProperty(JSON_PROPERTY_SIZE) 84 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 85 | 86 | public Integer getSize() { 87 | return size; 88 | } 89 | 90 | 91 | @JsonProperty(JSON_PROPERTY_SIZE) 92 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 93 | public void setSize(Integer size) { 94 | this.size = size; 95 | } 96 | 97 | 98 | /** 99 | * Return true if this aggTerms object is equal to o. 100 | */ 101 | @Override 102 | public boolean equals(Object o) { 103 | if (this == o) { 104 | return true; 105 | } 106 | if (o == null || getClass() != o.getClass()) { 107 | return false; 108 | } 109 | AggTerms aggTerms = (AggTerms) o; 110 | return Objects.equals(this.field, aggTerms.field) && 111 | Objects.equals(this.size, aggTerms.size); 112 | } 113 | 114 | @Override 115 | public int hashCode() { 116 | return Objects.hash(field, size); 117 | } 118 | 119 | @Override 120 | public String toString() { 121 | StringBuilder sb = new StringBuilder(); 122 | sb.append("class AggTerms {\n"); 123 | sb.append(" field: ").append(toIndentedString(field)).append("\n"); 124 | sb.append(" size: ").append(toIndentedString(size)).append("\n"); 125 | sb.append("}"); 126 | return sb.toString(); 127 | } 128 | 129 | /** 130 | * Convert the given object to string with each line indented by 4 spaces 131 | * (except the first line). 132 | */ 133 | private String toIndentedString(Object o) { 134 | if (o == null) { 135 | return "null"; 136 | } 137 | return o.toString().replace("\n", "\n "); 138 | } 139 | 140 | } 141 | 142 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/Aggregation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import com.manticoresearch.client.model.AggComposite; 25 | import com.manticoresearch.client.model.AggTerms; 26 | import java.util.ArrayList; 27 | import java.util.Arrays; 28 | import java.util.List; 29 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 30 | import com.manticoresearch.client.JSON; 31 | 32 | 33 | /** 34 | * Aggregation 35 | */ 36 | @JsonPropertyOrder({ 37 | Aggregation.JSON_PROPERTY_TERMS, 38 | Aggregation.JSON_PROPERTY_SORT, 39 | Aggregation.JSON_PROPERTY_COMPOSITE 40 | }) 41 | @JsonTypeName("aggregation") 42 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 43 | public class Aggregation { 44 | public static final String JSON_PROPERTY_TERMS = "terms"; 45 | private AggTerms terms; 46 | 47 | public static final String JSON_PROPERTY_SORT = "sort"; 48 | private List sort; 49 | 50 | public static final String JSON_PROPERTY_COMPOSITE = "composite"; 51 | private AggComposite composite; 52 | 53 | public Aggregation() { 54 | } 55 | 56 | public Aggregation terms(AggTerms terms) { 57 | this.terms = terms; 58 | return this; 59 | } 60 | 61 | /** 62 | * Get terms 63 | * @return terms 64 | */ 65 | @jakarta.annotation.Nullable 66 | @JsonProperty(JSON_PROPERTY_TERMS) 67 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 68 | 69 | public AggTerms getTerms() { 70 | return terms; 71 | } 72 | 73 | 74 | @JsonProperty(JSON_PROPERTY_TERMS) 75 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 76 | public void setTerms(AggTerms terms) { 77 | this.terms = terms; 78 | } 79 | 80 | 81 | public Aggregation sort(List sort) { 82 | this.sort = sort; 83 | return this; 84 | } 85 | 86 | public Aggregation addItem(Object sortItem) { 87 | if (this.sort == null) { 88 | this.sort = new ArrayList<>(); 89 | } 90 | this.sort.add(sortItem); 91 | return this; 92 | } 93 | 94 | /** 95 | * Get sort 96 | * @return sort 97 | */ 98 | @jakarta.annotation.Nullable 99 | @JsonProperty(JSON_PROPERTY_SORT) 100 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 101 | 102 | public List getSort() { 103 | return sort; 104 | } 105 | 106 | 107 | @JsonProperty(JSON_PROPERTY_SORT) 108 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 109 | public void setSort(List sort) { 110 | this.sort = sort; 111 | } 112 | 113 | 114 | public Aggregation composite(AggComposite composite) { 115 | this.composite = composite; 116 | return this; 117 | } 118 | 119 | /** 120 | * Get composite 121 | * @return composite 122 | */ 123 | @jakarta.annotation.Nullable 124 | @JsonProperty(JSON_PROPERTY_COMPOSITE) 125 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 126 | 127 | public AggComposite getComposite() { 128 | return composite; 129 | } 130 | 131 | 132 | @JsonProperty(JSON_PROPERTY_COMPOSITE) 133 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 134 | public void setComposite(AggComposite composite) { 135 | this.composite = composite; 136 | } 137 | 138 | 139 | /** 140 | * Return true if this aggregation object is equal to o. 141 | */ 142 | @Override 143 | public boolean equals(Object o) { 144 | if (this == o) { 145 | return true; 146 | } 147 | if (o == null || getClass() != o.getClass()) { 148 | return false; 149 | } 150 | Aggregation aggregation = (Aggregation) o; 151 | return Objects.equals(this.terms, aggregation.terms) && 152 | Objects.equals(this.sort, aggregation.sort) && 153 | Objects.equals(this.composite, aggregation.composite); 154 | } 155 | 156 | @Override 157 | public int hashCode() { 158 | return Objects.hash(terms, sort, composite); 159 | } 160 | 161 | @Override 162 | public String toString() { 163 | StringBuilder sb = new StringBuilder(); 164 | sb.append("class Aggregation {\n"); 165 | sb.append(" terms: ").append(toIndentedString(terms)).append("\n"); 166 | sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); 167 | sb.append(" composite: ").append(toIndentedString(composite)).append("\n"); 168 | sb.append("}"); 169 | return sb.toString(); 170 | } 171 | 172 | /** 173 | * Convert the given object to string with each line indented by 4 spaces 174 | * (except the first line). 175 | */ 176 | private String toIndentedString(Object o) { 177 | if (o == null) { 178 | return "null"; 179 | } 180 | return o.toString().replace("\n", "\n "); 181 | } 182 | 183 | } 184 | 185 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/ErrorResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import com.manticoresearch.client.model.ResponseError; 25 | import java.util.Arrays; 26 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 27 | import com.manticoresearch.client.JSON; 28 | 29 | 30 | /** 31 | * Error response object containing information about the error and a status code 32 | */ 33 | @JsonPropertyOrder({ 34 | ErrorResponse.JSON_PROPERTY_ERROR, 35 | ErrorResponse.JSON_PROPERTY_STATUS 36 | }) 37 | @JsonTypeName("errorResponse") 38 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 39 | public class ErrorResponse { 40 | public static final String JSON_PROPERTY_ERROR = "error"; 41 | private ResponseError error; 42 | 43 | public static final String JSON_PROPERTY_STATUS = "status"; 44 | private Integer status = 500; 45 | 46 | public ErrorResponse() { 47 | } 48 | 49 | public ErrorResponse error(ResponseError error) { 50 | this.error = error; 51 | return this; 52 | } 53 | 54 | /** 55 | * Get error 56 | * @return error 57 | */ 58 | @jakarta.annotation.Nonnull 59 | @JsonProperty(JSON_PROPERTY_ERROR) 60 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 61 | 62 | public ResponseError getError() { 63 | return error; 64 | } 65 | 66 | 67 | @JsonProperty(JSON_PROPERTY_ERROR) 68 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 69 | public void setError(ResponseError error) { 70 | this.error = error; 71 | } 72 | 73 | 74 | public ErrorResponse status(Integer status) { 75 | this.status = status; 76 | return this; 77 | } 78 | 79 | /** 80 | * HTTP status code of the error response 81 | * @return status 82 | */ 83 | @jakarta.annotation.Nullable 84 | @JsonProperty(JSON_PROPERTY_STATUS) 85 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 86 | 87 | public Integer getStatus() { 88 | return status; 89 | } 90 | 91 | 92 | @JsonProperty(JSON_PROPERTY_STATUS) 93 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 94 | public void setStatus(Integer status) { 95 | this.status = status; 96 | } 97 | 98 | 99 | /** 100 | * Return true if this errorResponse object is equal to o. 101 | */ 102 | @Override 103 | public boolean equals(Object o) { 104 | if (this == o) { 105 | return true; 106 | } 107 | if (o == null || getClass() != o.getClass()) { 108 | return false; 109 | } 110 | ErrorResponse errorResponse = (ErrorResponse) o; 111 | return Objects.equals(this.error, errorResponse.error) && 112 | Objects.equals(this.status, errorResponse.status); 113 | } 114 | 115 | @Override 116 | public int hashCode() { 117 | return Objects.hash(error, status); 118 | } 119 | 120 | @Override 121 | public String toString() { 122 | StringBuilder sb = new StringBuilder(); 123 | sb.append("class ErrorResponse {\n"); 124 | sb.append(" error: ").append(toIndentedString(error)).append("\n"); 125 | sb.append(" status: ").append(toIndentedString(status)).append("\n"); 126 | sb.append("}"); 127 | return sb.toString(); 128 | } 129 | 130 | /** 131 | * Convert the given object to string with each line indented by 4 spaces 132 | * (except the first line). 133 | */ 134 | private String toIndentedString(Object o) { 135 | if (o == null) { 136 | return "null"; 137 | } 138 | return o.toString().replace("\n", "\n "); 139 | } 140 | 141 | } 142 | 143 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/MatchAll.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import java.util.Arrays; 25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 26 | import com.manticoresearch.client.JSON; 27 | 28 | 29 | /** 30 | * Filter helper object defining the 'match all'' condition 31 | */ 32 | @JsonPropertyOrder({ 33 | MatchAll.JSON_PROPERTY_ALL 34 | }) 35 | @JsonTypeName("match_all") 36 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 37 | public class MatchAll { 38 | /** 39 | * Gets or Sets all 40 | */ 41 | public enum AllEnum { 42 | _("{}"); 43 | 44 | private String value; 45 | 46 | AllEnum(String value) { 47 | this.value = value; 48 | } 49 | 50 | @JsonValue 51 | public String getValue() { 52 | return value; 53 | } 54 | 55 | @Override 56 | public String toString() { 57 | return String.valueOf(value); 58 | } 59 | 60 | @JsonCreator 61 | public static AllEnum fromValue(String value) { 62 | for (AllEnum b : AllEnum.values()) { 63 | if (b.value.equals(value)) { 64 | return b; 65 | } 66 | } 67 | throw new IllegalArgumentException("Unexpected value '" + value + "'"); 68 | } 69 | } 70 | 71 | public static final String JSON_PROPERTY_ALL = "_all"; 72 | private AllEnum all; 73 | 74 | public MatchAll() { 75 | } 76 | 77 | public MatchAll all(AllEnum all) { 78 | this.all = all; 79 | return this; 80 | } 81 | 82 | /** 83 | * Get all 84 | * @return all 85 | */ 86 | @jakarta.annotation.Nonnull 87 | @JsonProperty(JSON_PROPERTY_ALL) 88 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 89 | 90 | public AllEnum getAll() { 91 | return all; 92 | } 93 | 94 | 95 | @JsonProperty(JSON_PROPERTY_ALL) 96 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 97 | public void setAll(AllEnum all) { 98 | this.all = all; 99 | } 100 | 101 | 102 | /** 103 | * Return true if this match_all object is equal to o. 104 | */ 105 | @Override 106 | public boolean equals(Object o) { 107 | if (this == o) { 108 | return true; 109 | } 110 | if (o == null || getClass() != o.getClass()) { 111 | return false; 112 | } 113 | MatchAll matchAll = (MatchAll) o; 114 | return Objects.equals(this.all, matchAll.all); 115 | } 116 | 117 | @Override 118 | public int hashCode() { 119 | return Objects.hash(all); 120 | } 121 | 122 | @Override 123 | public String toString() { 124 | StringBuilder sb = new StringBuilder(); 125 | sb.append("class MatchAll {\n"); 126 | sb.append(" all: ").append(toIndentedString(all)).append("\n"); 127 | sb.append("}"); 128 | return sb.toString(); 129 | } 130 | 131 | /** 132 | * Convert the given object to string with each line indented by 4 spaces 133 | * (except the first line). 134 | */ 135 | private String toIndentedString(Object o) { 136 | if (o == null) { 137 | return "null"; 138 | } 139 | return o.toString().replace("\n", "\n "); 140 | } 141 | 142 | } 143 | 144 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/PercolateRequest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import com.manticoresearch.client.model.PercolateRequestQuery; 25 | import java.util.Arrays; 26 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 27 | import com.manticoresearch.client.JSON; 28 | 29 | 30 | /** 31 | * Object containing the query for percolating documents against stored queries in a percolate table 32 | */ 33 | @JsonPropertyOrder({ 34 | PercolateRequest.JSON_PROPERTY_QUERY 35 | }) 36 | @JsonTypeName("percolateRequest") 37 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 38 | public class PercolateRequest { 39 | public static final String JSON_PROPERTY_QUERY = "query"; 40 | private PercolateRequestQuery query; 41 | 42 | public PercolateRequest() { 43 | } 44 | 45 | public PercolateRequest query(PercolateRequestQuery query) { 46 | this.query = query; 47 | return this; 48 | } 49 | 50 | /** 51 | * Get query 52 | * @return query 53 | */ 54 | @jakarta.annotation.Nonnull 55 | @JsonProperty(JSON_PROPERTY_QUERY) 56 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 57 | 58 | public PercolateRequestQuery getQuery() { 59 | return query; 60 | } 61 | 62 | 63 | @JsonProperty(JSON_PROPERTY_QUERY) 64 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 65 | public void setQuery(PercolateRequestQuery query) { 66 | this.query = query; 67 | } 68 | 69 | 70 | /** 71 | * Return true if this percolateRequest object is equal to o. 72 | */ 73 | @Override 74 | public boolean equals(Object o) { 75 | if (this == o) { 76 | return true; 77 | } 78 | if (o == null || getClass() != o.getClass()) { 79 | return false; 80 | } 81 | PercolateRequest percolateRequest = (PercolateRequest) o; 82 | return Objects.equals(this.query, percolateRequest.query); 83 | } 84 | 85 | @Override 86 | public int hashCode() { 87 | return Objects.hash(query); 88 | } 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class PercolateRequest {\n"); 94 | sb.append(" query: ").append(toIndentedString(query)).append("\n"); 95 | sb.append("}"); 96 | return sb.toString(); 97 | } 98 | 99 | /** 100 | * Convert the given object to string with each line indented by 4 spaces 101 | * (except the first line). 102 | */ 103 | private String toIndentedString(Object o) { 104 | if (o == null) { 105 | return "null"; 106 | } 107 | return o.toString().replace("\n", "\n "); 108 | } 109 | 110 | } 111 | 112 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/PercolateRequestQuery.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import java.util.Arrays; 25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 26 | import com.manticoresearch.client.JSON; 27 | 28 | 29 | /** 30 | * PercolateRequestQuery 31 | */ 32 | @JsonPropertyOrder({ 33 | PercolateRequestQuery.JSON_PROPERTY_PERCOLATE 34 | }) 35 | @JsonTypeName("percolateRequest_query") 36 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 37 | public class PercolateRequestQuery { 38 | public static final String JSON_PROPERTY_PERCOLATE = "percolate"; 39 | private Object percolate; 40 | 41 | public PercolateRequestQuery() { 42 | } 43 | 44 | public PercolateRequestQuery percolate(Object percolate) { 45 | this.percolate = percolate; 46 | return this; 47 | } 48 | 49 | /** 50 | * Object representing the document to percolate 51 | * @return percolate 52 | */ 53 | @jakarta.annotation.Nonnull 54 | @JsonProperty(JSON_PROPERTY_PERCOLATE) 55 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 56 | 57 | public Object getPercolate() { 58 | return percolate; 59 | } 60 | 61 | 62 | @JsonProperty(JSON_PROPERTY_PERCOLATE) 63 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 64 | public void setPercolate(Object percolate) { 65 | this.percolate = percolate; 66 | } 67 | 68 | 69 | /** 70 | * Return true if this percolateRequest_query object is equal to o. 71 | */ 72 | @Override 73 | public boolean equals(Object o) { 74 | if (this == o) { 75 | return true; 76 | } 77 | if (o == null || getClass() != o.getClass()) { 78 | return false; 79 | } 80 | PercolateRequestQuery percolateRequestQuery = (PercolateRequestQuery) o; 81 | return Objects.equals(this.percolate, percolateRequestQuery.percolate); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(percolate); 87 | } 88 | 89 | @Override 90 | public String toString() { 91 | StringBuilder sb = new StringBuilder(); 92 | sb.append("class PercolateRequestQuery {\n"); 93 | sb.append(" percolate: ").append(toIndentedString(percolate)).append("\n"); 94 | sb.append("}"); 95 | return sb.toString(); 96 | } 97 | 98 | /** 99 | * Convert the given object to string with each line indented by 4 spaces 100 | * (except the first line). 101 | */ 102 | private String toIndentedString(Object o) { 103 | if (o == null) { 104 | return "null"; 105 | } 106 | return o.toString().replace("\n", "\n "); 107 | } 108 | 109 | } 110 | 111 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/ReplaceDocumentRequest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import java.util.Arrays; 25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 26 | import com.manticoresearch.client.JSON; 27 | 28 | 29 | /** 30 | * Object containing the document data for replacing an existing document in a table. 31 | */ 32 | @JsonPropertyOrder({ 33 | ReplaceDocumentRequest.JSON_PROPERTY_DOC 34 | }) 35 | @JsonTypeName("replaceDocumentRequest") 36 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 37 | public class ReplaceDocumentRequest { 38 | public static final String JSON_PROPERTY_DOC = "doc"; 39 | private Object doc; 40 | 41 | public ReplaceDocumentRequest() { 42 | } 43 | 44 | public ReplaceDocumentRequest doc(Object doc) { 45 | this.doc = doc; 46 | return this; 47 | } 48 | 49 | /** 50 | * Object containing the new document data to replace the existing one. 51 | * @return doc 52 | */ 53 | @jakarta.annotation.Nonnull 54 | @JsonProperty(JSON_PROPERTY_DOC) 55 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 56 | 57 | public Object getDoc() { 58 | return doc; 59 | } 60 | 61 | 62 | @JsonProperty(JSON_PROPERTY_DOC) 63 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 64 | public void setDoc(Object doc) { 65 | this.doc = doc; 66 | } 67 | 68 | 69 | /** 70 | * Return true if this replaceDocumentRequest object is equal to o. 71 | */ 72 | @Override 73 | public boolean equals(Object o) { 74 | if (this == o) { 75 | return true; 76 | } 77 | if (o == null || getClass() != o.getClass()) { 78 | return false; 79 | } 80 | ReplaceDocumentRequest replaceDocumentRequest = (ReplaceDocumentRequest) o; 81 | return Objects.equals(this.doc, replaceDocumentRequest.doc); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(doc); 87 | } 88 | 89 | @Override 90 | public String toString() { 91 | StringBuilder sb = new StringBuilder(); 92 | sb.append("class ReplaceDocumentRequest {\n"); 93 | sb.append(" doc: ").append(toIndentedString(doc)).append("\n"); 94 | sb.append("}"); 95 | return sb.toString(); 96 | } 97 | 98 | /** 99 | * Convert the given object to string with each line indented by 4 spaces 100 | * (except the first line). 101 | */ 102 | private String toIndentedString(Object o) { 103 | if (o == null) { 104 | return "null"; 105 | } 106 | return o.toString().replace("\n", "\n "); 107 | } 108 | 109 | } 110 | 111 | -------------------------------------------------------------------------------- /src/main/java/com/manticoresearch/client/model/SqlObjResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import java.util.Objects; 17 | import java.util.Map; 18 | import java.util.HashMap; 19 | import com.fasterxml.jackson.annotation.JsonInclude; 20 | import com.fasterxml.jackson.annotation.JsonProperty; 21 | import com.fasterxml.jackson.annotation.JsonCreator; 22 | import com.fasterxml.jackson.annotation.JsonTypeName; 23 | import com.fasterxml.jackson.annotation.JsonValue; 24 | import java.math.BigDecimal; 25 | import java.util.Arrays; 26 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; 27 | import com.manticoresearch.client.JSON; 28 | 29 | 30 | /** 31 | * SqlObjResponse 32 | */ 33 | @JsonPropertyOrder({ 34 | SqlObjResponse.JSON_PROPERTY_HITS, 35 | SqlObjResponse.JSON_PROPERTY_TOOK, 36 | SqlObjResponse.JSON_PROPERTY_TIMED_OUT 37 | }) 38 | @JsonTypeName("sqlObjResponse") 39 | @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-01T10:06:34.794647478Z[Etc/UTC]", comments = "Generator version: 7.3.0-SNAPSHOT") 40 | public class SqlObjResponse { 41 | public static final String JSON_PROPERTY_HITS = "hits"; 42 | private Object hits; 43 | 44 | public static final String JSON_PROPERTY_TOOK = "took"; 45 | private BigDecimal took; 46 | 47 | public static final String JSON_PROPERTY_TIMED_OUT = "timed_out"; 48 | private Boolean timedOut; 49 | 50 | public SqlObjResponse() { 51 | } 52 | 53 | public SqlObjResponse hits(Object hits) { 54 | this.hits = hits; 55 | return this; 56 | } 57 | 58 | /** 59 | * Get hits 60 | * @return hits 61 | */ 62 | @jakarta.annotation.Nonnull 63 | @JsonProperty(JSON_PROPERTY_HITS) 64 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 65 | 66 | public Object getHits() { 67 | return hits; 68 | } 69 | 70 | 71 | @JsonProperty(JSON_PROPERTY_HITS) 72 | @JsonInclude(value = JsonInclude.Include.ALWAYS) 73 | public void setHits(Object hits) { 74 | this.hits = hits; 75 | } 76 | 77 | 78 | public SqlObjResponse took(BigDecimal took) { 79 | this.took = took; 80 | return this; 81 | } 82 | 83 | /** 84 | * Get took 85 | * @return took 86 | */ 87 | @jakarta.annotation.Nullable 88 | @JsonProperty(JSON_PROPERTY_TOOK) 89 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 90 | 91 | public BigDecimal getTook() { 92 | return took; 93 | } 94 | 95 | 96 | @JsonProperty(JSON_PROPERTY_TOOK) 97 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 98 | public void setTook(BigDecimal took) { 99 | this.took = took; 100 | } 101 | 102 | 103 | public SqlObjResponse timedOut(Boolean timedOut) { 104 | this.timedOut = timedOut; 105 | return this; 106 | } 107 | 108 | /** 109 | * Get timedOut 110 | * @return timedOut 111 | */ 112 | @jakarta.annotation.Nullable 113 | @JsonProperty(JSON_PROPERTY_TIMED_OUT) 114 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 115 | 116 | public Boolean getTimedOut() { 117 | return timedOut; 118 | } 119 | 120 | 121 | @JsonProperty(JSON_PROPERTY_TIMED_OUT) 122 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) 123 | public void setTimedOut(Boolean timedOut) { 124 | this.timedOut = timedOut; 125 | } 126 | 127 | 128 | /** 129 | * Return true if this sqlObjResponse object is equal to o. 130 | */ 131 | @Override 132 | public boolean equals(Object o) { 133 | if (this == o) { 134 | return true; 135 | } 136 | if (o == null || getClass() != o.getClass()) { 137 | return false; 138 | } 139 | SqlObjResponse sqlObjResponse = (SqlObjResponse) o; 140 | return Objects.equals(this.hits, sqlObjResponse.hits) && 141 | Objects.equals(this.took, sqlObjResponse.took) && 142 | Objects.equals(this.timedOut, sqlObjResponse.timedOut); 143 | } 144 | 145 | @Override 146 | public int hashCode() { 147 | return Objects.hash(hits, took, timedOut); 148 | } 149 | 150 | @Override 151 | public String toString() { 152 | StringBuilder sb = new StringBuilder(); 153 | sb.append("class SqlObjResponse {\n"); 154 | sb.append(" hits: ").append(toIndentedString(hits)).append("\n"); 155 | sb.append(" took: ").append(toIndentedString(took)).append("\n"); 156 | sb.append(" timedOut: ").append(toIndentedString(timedOut)).append("\n"); 157 | sb.append("}"); 158 | return sb.toString(); 159 | } 160 | 161 | /** 162 | * Convert the given object to string with each line indented by 4 spaces 163 | * (except the first line). 164 | */ 165 | private String toIndentedString(Object o) { 166 | if (o == null) { 167 | return "null"; 168 | } 169 | return o.toString().replace("\n", "\n "); 170 | } 171 | 172 | } 173 | 174 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/api/UtilsApiTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 3.3.1 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.api; 15 | 16 | import com.manticoresearch.client.*; 17 | import com.manticoresearch.client.auth.*; 18 | import com.manticoresearch.client.model.*; 19 | import com.manticoresearch.client.model.ErrorResponse; 20 | 21 | import static org.junit.jupiter.api.Assertions.fail; 22 | 23 | import org.junit.jupiter.api.BeforeEach; 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | import java.util.Arrays; 29 | import java.util.ArrayList; 30 | import java.util.HashMap; 31 | import java.util.List; 32 | import java.util.Map; 33 | 34 | import java.math.BigDecimal; 35 | /** 36 | * API tests for UtilsApi 37 | */ 38 | public class UtilsApiTest { 39 | 40 | private static final String BASE_PATH = "http://localhost:9408"; 41 | private IndexApi indexApi; 42 | private SearchApi searchApi; 43 | private UtilsApi utilsApi; 44 | 45 | @BeforeEach 46 | public void setUp() { 47 | try { 48 | ApiClient client = Configuration.getDefaultApiClient(); 49 | client.setBasePath(BASE_PATH); 50 | indexApi = new IndexApi(client); 51 | searchApi = new SearchApi(client); 52 | utilsApi = new UtilsApi(client); 53 | utilsApi.sql("DROP TABLE IF EXISTS movies", true); 54 | utilsApi.sql("DROP TABLE IF EXISTS products", true); 55 | } catch (ApiException e) { 56 | System.err.println("Exception when setting up tests"); 57 | System.err.println("Status code: " + e.getCode()); 58 | System.err.println("Reason: " + e.getResponseBody()); 59 | System.err.println("Response headers: " + e.getResponseHeaders()); 60 | e.printStackTrace(); 61 | } 62 | } 63 | 64 | interface PercolateSubTests { 65 | void BuildPercolateRequestData() throws ApiException; 66 | } 67 | 68 | interface SearchSubTests { 69 | void BuildSearchRequestData() throws ApiException; 70 | void TestBasicSearch(SearchRequest searchRequest) throws ApiException; 71 | void TestSearchSort(SearchRequest searchRequest) throws ApiException; 72 | void TestSearchExpressions(SearchRequest searchRequest) throws ApiException; 73 | void TestSearchAggregations(SearchRequest searchRequest) throws ApiException; 74 | void TestSearchHighlight(SearchRequest searchRequest) throws ApiException; 75 | void TestSearchFulltextFilters(SearchRequest searchRequest) throws ApiException; 76 | void TestSearchAttrFilters(SearchRequest searchRequest) throws ApiException; 77 | void TestSearchBoolFilter(SearchRequest searchRequest) throws ApiException; 78 | } 79 | 80 | /** 81 | * Perform SQL requests 82 | * 83 | * Run a query in SQL format. Expects a query string passed through `body` parameter and optional `raw_response` parameter that defines a format of response. `raw_response` can be set to `False` for Select queries only, e.g., `SELECT * FROM mytable` The query string must stay as it is, no URL encoding is needed. The response object depends on the query executed. In select mode the response has same format as `/search` operation. 84 | * 85 | * @throws ApiException if the Api call fails 86 | */ 87 | @Test 88 | public void sqlTest() throws ApiException { 89 | //String body = null; 90 | //Boolean rawResponse = null; 91 | //List response = api.sql(body, rawResponse); 92 | // TODO: test validations 93 | try { 94 | ApiClient client = Configuration.getDefaultApiClient(); 95 | client.setBasePath(BASE_PATH); 96 | UtilsApi utilsApi = new UtilsApi(client); 97 | 98 | String sql ="DROP TABLE IF EXISTS products"; 99 | Object sqlresult = utilsApi.sql(sql, true); 100 | System.out.println(sqlresult); 101 | 102 | sqlresult = utilsApi.sql("CREATE TABLE IF NOT EXISTS products (title text, price float, sizes multi, meta json, coeff float, tags1 multi, tags2 multi)", true); 103 | System.out.println(sqlresult); 104 | 105 | sql ="SELECT * FROM products"; 106 | sqlresult = utilsApi.sql(sql, false); 107 | System.out.println(sqlresult); 108 | 109 | sql ="SELECT * FROM products"; 110 | sqlresult = utilsApi.sql(sql, false); 111 | System.out.println(sqlresult); 112 | 113 | sql ="TRUNCATE TABLE products"; 114 | sqlresult = utilsApi.sql(sql, true); 115 | System.out.println(sqlresult); 116 | 117 | sqlresult = utilsApi.sql("SHOW TABLES", true); 118 | System.out.println(sqlresult); 119 | 120 | System.out.println("Util tests finished"); 121 | } catch (ApiException e) { 122 | e.printStackTrace(); 123 | fail("Test failed: " + e.getResponseBody()); 124 | } 125 | 126 | } 127 | 128 | } 129 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/AggCompositeSourceTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.AggCompositeTerm; 22 | import java.util.Arrays; 23 | 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for AggCompositeSource 30 | */ 31 | public class AggCompositeSourceTest { 32 | private final AggCompositeSource model = new AggCompositeSource(); 33 | 34 | /** 35 | * Model tests for AggCompositeSource 36 | */ 37 | @Test 38 | public void testAggCompositeSource() { 39 | // TODO: test AggCompositeSource 40 | } 41 | 42 | /** 43 | * Test the property 'terms' 44 | */ 45 | @Test 46 | public void termsTest() { 47 | // TODO: test terms 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/AggCompositeTermTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for AggCompositeTerm 29 | */ 30 | public class AggCompositeTermTest { 31 | private final AggCompositeTerm model = new AggCompositeTerm(); 32 | 33 | /** 34 | * Model tests for AggCompositeTerm 35 | */ 36 | @Test 37 | public void testAggCompositeTerm() { 38 | // TODO: test AggCompositeTerm 39 | } 40 | 41 | /** 42 | * Test the property 'field' 43 | */ 44 | @Test 45 | public void fieldTest() { 46 | // TODO: test field 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/AggCompositeTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.AggCompositeSource; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | import java.util.Map; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for AggComposite 33 | */ 34 | public class AggCompositeTest { 35 | private final AggComposite model = new AggComposite(); 36 | 37 | /** 38 | * Model tests for AggComposite 39 | */ 40 | @Test 41 | public void testAggComposite() { 42 | // TODO: test AggComposite 43 | } 44 | 45 | /** 46 | * Test the property 'size' 47 | */ 48 | @Test 49 | public void sizeTest() { 50 | // TODO: test size 51 | } 52 | 53 | /** 54 | * Test the property 'sources' 55 | */ 56 | @Test 57 | public void sourcesTest() { 58 | // TODO: test sources 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/AggTermsTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for AggTerms 29 | */ 30 | public class AggTermsTest { 31 | private final AggTerms model = new AggTerms(); 32 | 33 | /** 34 | * Model tests for AggTerms 35 | */ 36 | @Test 37 | public void testAggTerms() { 38 | // TODO: test AggTerms 39 | } 40 | 41 | /** 42 | * Test the property 'field' 43 | */ 44 | @Test 45 | public void fieldTest() { 46 | // TODO: test field 47 | } 48 | 49 | /** 50 | * Test the property 'size' 51 | */ 52 | @Test 53 | public void sizeTest() { 54 | // TODO: test size 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/AggregationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.AggComposite; 22 | import com.manticoresearch.client.model.AggTerms; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for Aggregation 33 | */ 34 | public class AggregationTest { 35 | private final Aggregation model = new Aggregation(); 36 | 37 | /** 38 | * Model tests for Aggregation 39 | */ 40 | @Test 41 | public void testAggregation() { 42 | // TODO: test Aggregation 43 | } 44 | 45 | /** 46 | * Test the property 'terms' 47 | */ 48 | @Test 49 | public void termsTest() { 50 | // TODO: test terms 51 | } 52 | 53 | /** 54 | * Test the property 'sort' 55 | */ 56 | @Test 57 | public void sortTest() { 58 | // TODO: test sort 59 | } 60 | 61 | /** 62 | * Test the property 'composite' 63 | */ 64 | @Test 65 | public void compositeTest() { 66 | // TODO: test composite 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/AutocompleteRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for AutocompleteRequest 29 | */ 30 | public class AutocompleteRequestTest { 31 | private final AutocompleteRequest model = new AutocompleteRequest(); 32 | 33 | /** 34 | * Model tests for AutocompleteRequest 35 | */ 36 | @Test 37 | public void testAutocompleteRequest() { 38 | // TODO: test AutocompleteRequest 39 | } 40 | 41 | /** 42 | * Test the property 'table' 43 | */ 44 | @Test 45 | public void tableTest() { 46 | // TODO: test table 47 | } 48 | 49 | /** 50 | * Test the property 'query' 51 | */ 52 | @Test 53 | public void queryTest() { 54 | // TODO: test query 55 | } 56 | 57 | /** 58 | * Test the property 'options' 59 | */ 60 | @Test 61 | public void optionsTest() { 62 | // TODO: test options 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/BoolFilterTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.QueryFilter; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | 26 | import org.junit.jupiter.api.Assertions; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for BoolFilter 32 | */ 33 | public class BoolFilterTest { 34 | private final BoolFilter model = new BoolFilter(); 35 | 36 | /** 37 | * Model tests for BoolFilter 38 | */ 39 | @Test 40 | public void testBoolFilter() { 41 | // TODO: test BoolFilter 42 | } 43 | 44 | /** 45 | * Test the property 'must' 46 | */ 47 | @Test 48 | public void mustTest() { 49 | // TODO: test must 50 | } 51 | 52 | /** 53 | * Test the property 'mustNot' 54 | */ 55 | @Test 56 | public void mustNotTest() { 57 | // TODO: test mustNot 58 | } 59 | 60 | /** 61 | * Test the property 'should' 62 | */ 63 | @Test 64 | public void shouldTest() { 65 | // TODO: test should 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/BulkResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.ArrayList; 22 | import java.util.Arrays; 23 | import java.util.List; 24 | 25 | import org.junit.jupiter.api.Assertions; 26 | import org.junit.jupiter.api.Disabled; 27 | import org.junit.jupiter.api.Test; 28 | 29 | /** 30 | * Model tests for BulkResponse 31 | */ 32 | public class BulkResponseTest { 33 | private final BulkResponse model = new BulkResponse(); 34 | 35 | /** 36 | * Model tests for BulkResponse 37 | */ 38 | @Test 39 | public void testBulkResponse() { 40 | // TODO: test BulkResponse 41 | } 42 | 43 | /** 44 | * Test the property 'items' 45 | */ 46 | @Test 47 | public void itemsTest() { 48 | // TODO: test items 49 | } 50 | 51 | /** 52 | * Test the property 'errors' 53 | */ 54 | @Test 55 | public void errorsTest() { 56 | // TODO: test errors 57 | } 58 | 59 | /** 60 | * Test the property 'error' 61 | */ 62 | @Test 63 | public void errorTest() { 64 | // TODO: test error 65 | } 66 | 67 | /** 68 | * Test the property 'currentLine' 69 | */ 70 | @Test 71 | public void currentLineTest() { 72 | // TODO: test currentLine 73 | } 74 | 75 | /** 76 | * Test the property 'skippedLines' 77 | */ 78 | @Test 79 | public void skippedLinesTest() { 80 | // TODO: test skippedLines 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/DeleteDocumentRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for DeleteDocumentRequest 29 | */ 30 | public class DeleteDocumentRequestTest { 31 | private final DeleteDocumentRequest model = new DeleteDocumentRequest(); 32 | 33 | /** 34 | * Model tests for DeleteDocumentRequest 35 | */ 36 | @Test 37 | public void testDeleteDocumentRequest() { 38 | // TODO: test DeleteDocumentRequest 39 | } 40 | 41 | /** 42 | * Test the property 'table' 43 | */ 44 | @Test 45 | public void tableTest() { 46 | // TODO: test table 47 | } 48 | 49 | /** 50 | * Test the property 'cluster' 51 | */ 52 | @Test 53 | public void clusterTest() { 54 | // TODO: test cluster 55 | } 56 | 57 | /** 58 | * Test the property 'id' 59 | */ 60 | @Test 61 | public void idTest() { 62 | // TODO: test id 63 | } 64 | 65 | /** 66 | * Test the property 'query' 67 | */ 68 | @Test 69 | public void queryTest() { 70 | // TODO: test query 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/DeleteResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for DeleteResponse 29 | */ 30 | public class DeleteResponseTest { 31 | private final DeleteResponse model = new DeleteResponse(); 32 | 33 | /** 34 | * Model tests for DeleteResponse 35 | */ 36 | @Test 37 | public void testDeleteResponse() { 38 | // TODO: test DeleteResponse 39 | } 40 | 41 | /** 42 | * Test the property 'table' 43 | */ 44 | @Test 45 | public void tableTest() { 46 | // TODO: test table 47 | } 48 | 49 | /** 50 | * Test the property 'deleted' 51 | */ 52 | @Test 53 | public void deletedTest() { 54 | // TODO: test deleted 55 | } 56 | 57 | /** 58 | * Test the property 'id' 59 | */ 60 | @Test 61 | public void idTest() { 62 | // TODO: test id 63 | } 64 | 65 | /** 66 | * Test the property 'found' 67 | */ 68 | @Test 69 | public void foundTest() { 70 | // TODO: test found 71 | } 72 | 73 | /** 74 | * Test the property 'result' 75 | */ 76 | @Test 77 | public void resultTest() { 78 | // TODO: test result 79 | } 80 | 81 | } 82 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/ErrorResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.ResponseError; 22 | import java.util.Arrays; 23 | 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for ErrorResponse 30 | */ 31 | public class ErrorResponseTest { 32 | private final ErrorResponse model = new ErrorResponse(); 33 | 34 | /** 35 | * Model tests for ErrorResponse 36 | */ 37 | @Test 38 | public void testErrorResponse() { 39 | // TODO: test ErrorResponse 40 | } 41 | 42 | /** 43 | * Test the property 'error' 44 | */ 45 | @Test 46 | public void errorTest() { 47 | // TODO: test error 48 | } 49 | 50 | /** 51 | * Test the property 'status' 52 | */ 53 | @Test 54 | public void statusTest() { 55 | // TODO: test status 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/FulltextFilterTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for FulltextFilter 29 | */ 30 | public class FulltextFilterTest { 31 | private final FulltextFilter model = new FulltextFilter(); 32 | 33 | /** 34 | * Model tests for FulltextFilter 35 | */ 36 | @Test 37 | public void testFulltextFilter() { 38 | // TODO: test FulltextFilter 39 | } 40 | 41 | /** 42 | * Test the property 'queryString' 43 | */ 44 | @Test 45 | public void queryStringTest() { 46 | // TODO: test queryString 47 | } 48 | 49 | /** 50 | * Test the property 'match' 51 | */ 52 | @Test 53 | public void matchTest() { 54 | // TODO: test match 55 | } 56 | 57 | /** 58 | * Test the property 'matchPhrase' 59 | */ 60 | @Test 61 | public void matchPhraseTest() { 62 | // TODO: test matchPhrase 63 | } 64 | 65 | /** 66 | * Test the property 'matchAll' 67 | */ 68 | @Test 69 | public void matchAllTest() { 70 | // TODO: test matchAll 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/GeoDistanceLocationAnchorTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | import org.openapitools.jackson.nullable.JsonNullable; 23 | import com.fasterxml.jackson.annotation.JsonIgnore; 24 | import org.openapitools.jackson.nullable.JsonNullable; 25 | import java.util.NoSuchElementException; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for GeoDistanceLocationAnchor 33 | */ 34 | public class GeoDistanceLocationAnchorTest { 35 | private final GeoDistanceLocationAnchor model = new GeoDistanceLocationAnchor(); 36 | 37 | /** 38 | * Model tests for GeoDistanceLocationAnchor 39 | */ 40 | @Test 41 | public void testGeoDistanceLocationAnchor() { 42 | // TODO: test GeoDistanceLocationAnchor 43 | } 44 | 45 | /** 46 | * Test the property 'lat' 47 | */ 48 | @Test 49 | public void latTest() { 50 | // TODO: test lat 51 | } 52 | 53 | /** 54 | * Test the property 'lon' 55 | */ 56 | @Test 57 | public void lonTest() { 58 | // TODO: test lon 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/GeoDistanceTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.GeoDistanceLocationAnchor; 22 | import java.util.Arrays; 23 | import org.openapitools.jackson.nullable.JsonNullable; 24 | import com.fasterxml.jackson.annotation.JsonIgnore; 25 | import org.openapitools.jackson.nullable.JsonNullable; 26 | import java.util.NoSuchElementException; 27 | 28 | import org.junit.jupiter.api.Assertions; 29 | import org.junit.jupiter.api.Disabled; 30 | import org.junit.jupiter.api.Test; 31 | 32 | /** 33 | * Model tests for GeoDistance 34 | */ 35 | public class GeoDistanceTest { 36 | private final GeoDistance model = new GeoDistance(); 37 | 38 | /** 39 | * Model tests for GeoDistance 40 | */ 41 | @Test 42 | public void testGeoDistance() { 43 | // TODO: test GeoDistance 44 | } 45 | 46 | /** 47 | * Test the property 'locationAnchor' 48 | */ 49 | @Test 50 | public void locationAnchorTest() { 51 | // TODO: test locationAnchor 52 | } 53 | 54 | /** 55 | * Test the property 'locationSource' 56 | */ 57 | @Test 58 | public void locationSourceTest() { 59 | // TODO: test locationSource 60 | } 61 | 62 | /** 63 | * Test the property 'distanceType' 64 | */ 65 | @Test 66 | public void distanceTypeTest() { 67 | // TODO: test distanceType 68 | } 69 | 70 | /** 71 | * Test the property 'distance' 72 | */ 73 | @Test 74 | public void distanceTest() { 75 | // TODO: test distance 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/HighlightFieldOptionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for HighlightFieldOption 29 | */ 30 | public class HighlightFieldOptionTest { 31 | private final HighlightFieldOption model = new HighlightFieldOption(); 32 | 33 | /** 34 | * Model tests for HighlightFieldOption 35 | */ 36 | @Test 37 | public void testHighlightFieldOption() { 38 | // TODO: test HighlightFieldOption 39 | } 40 | 41 | /** 42 | * Test the property 'fragmentSize' 43 | */ 44 | @Test 45 | public void fragmentSizeTest() { 46 | // TODO: test fragmentSize 47 | } 48 | 49 | /** 50 | * Test the property 'limit' 51 | */ 52 | @Test 53 | public void limitTest() { 54 | // TODO: test limit 55 | } 56 | 57 | /** 58 | * Test the property 'limitSnippets' 59 | */ 60 | @Test 61 | public void limitSnippetsTest() { 62 | // TODO: test limitSnippets 63 | } 64 | 65 | /** 66 | * Test the property 'limitWords' 67 | */ 68 | @Test 69 | public void limitWordsTest() { 70 | // TODO: test limitWords 71 | } 72 | 73 | /** 74 | * Test the property 'numberOfFragments' 75 | */ 76 | @Test 77 | public void numberOfFragmentsTest() { 78 | // TODO: test numberOfFragments 79 | } 80 | 81 | } 82 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/HitsHitsTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.math.BigDecimal; 22 | import java.util.Arrays; 23 | 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for HitsHits 30 | */ 31 | public class HitsHitsTest { 32 | private final HitsHits model = new HitsHits(); 33 | 34 | /** 35 | * Model tests for HitsHits 36 | */ 37 | @Test 38 | public void testHitsHits() { 39 | // TODO: test HitsHits 40 | } 41 | 42 | /** 43 | * Test the property 'id' 44 | */ 45 | @Test 46 | public void idTest() { 47 | // TODO: test id 48 | } 49 | 50 | /** 51 | * Test the property 'score' 52 | */ 53 | @Test 54 | public void scoreTest() { 55 | // TODO: test score 56 | } 57 | 58 | /** 59 | * Test the property 'source' 60 | */ 61 | @Test 62 | public void sourceTest() { 63 | // TODO: test source 64 | } 65 | 66 | /** 67 | * Test the property 'knnDist' 68 | */ 69 | @Test 70 | public void knnDistTest() { 71 | // TODO: test knnDist 72 | } 73 | 74 | /** 75 | * Test the property 'highlight' 76 | */ 77 | @Test 78 | public void highlightTest() { 79 | // TODO: test highlight 80 | } 81 | 82 | /** 83 | * Test the property 'table' 84 | */ 85 | @Test 86 | public void tableTest() { 87 | // TODO: test table 88 | } 89 | 90 | /** 91 | * Test the property 'typeColon' 92 | */ 93 | @Test 94 | public void typeColonTest() { 95 | // TODO: test typeColon 96 | } 97 | 98 | /** 99 | * Test the property 'fields' 100 | */ 101 | @Test 102 | public void fieldsTest() { 103 | // TODO: test fields 104 | } 105 | 106 | } 107 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/InsertDocumentRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for InsertDocumentRequest 29 | */ 30 | public class InsertDocumentRequestTest { 31 | private final InsertDocumentRequest model = new InsertDocumentRequest(); 32 | 33 | /** 34 | * Model tests for InsertDocumentRequest 35 | */ 36 | @Test 37 | public void testInsertDocumentRequest() { 38 | // TODO: test InsertDocumentRequest 39 | } 40 | 41 | /** 42 | * Test the property 'table' 43 | */ 44 | @Test 45 | public void tableTest() { 46 | // TODO: test table 47 | } 48 | 49 | /** 50 | * Test the property 'cluster' 51 | */ 52 | @Test 53 | public void clusterTest() { 54 | // TODO: test cluster 55 | } 56 | 57 | /** 58 | * Test the property 'id' 59 | */ 60 | @Test 61 | public void idTest() { 62 | // TODO: test id 63 | } 64 | 65 | /** 66 | * Test the property 'doc' 67 | */ 68 | @Test 69 | public void docTest() { 70 | // TODO: test doc 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/JoinCondTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | import org.openapitools.jackson.nullable.JsonNullable; 23 | import com.fasterxml.jackson.annotation.JsonIgnore; 24 | import org.openapitools.jackson.nullable.JsonNullable; 25 | import java.util.NoSuchElementException; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for JoinCond 33 | */ 34 | public class JoinCondTest { 35 | private final JoinCond model = new JoinCond(); 36 | 37 | /** 38 | * Model tests for JoinCond 39 | */ 40 | @Test 41 | public void testJoinCond() { 42 | // TODO: test JoinCond 43 | } 44 | 45 | /** 46 | * Test the property 'field' 47 | */ 48 | @Test 49 | public void fieldTest() { 50 | // TODO: test field 51 | } 52 | 53 | /** 54 | * Test the property 'table' 55 | */ 56 | @Test 57 | public void tableTest() { 58 | // TODO: test table 59 | } 60 | 61 | /** 62 | * Test the property 'type' 63 | */ 64 | @Test 65 | public void typeTest() { 66 | // TODO: test type 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/JoinOnTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.JoinCond; 22 | import java.util.Arrays; 23 | 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for JoinOn 30 | */ 31 | public class JoinOnTest { 32 | private final JoinOn model = new JoinOn(); 33 | 34 | /** 35 | * Model tests for JoinOn 36 | */ 37 | @Test 38 | public void testJoinOn() { 39 | // TODO: test JoinOn 40 | } 41 | 42 | /** 43 | * Test the property 'right' 44 | */ 45 | @Test 46 | public void rightTest() { 47 | // TODO: test right 48 | } 49 | 50 | /** 51 | * Test the property 'left' 52 | */ 53 | @Test 54 | public void leftTest() { 55 | // TODO: test left 56 | } 57 | 58 | /** 59 | * Test the property 'operator' 60 | */ 61 | @Test 62 | public void operatorTest() { 63 | // TODO: test operator 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/JoinTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.FulltextFilter; 22 | import com.manticoresearch.client.model.JoinOn; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for Join 33 | */ 34 | public class JoinTest { 35 | private final Join model = new Join(); 36 | 37 | /** 38 | * Model tests for Join 39 | */ 40 | @Test 41 | public void testJoin() { 42 | // TODO: test Join 43 | } 44 | 45 | /** 46 | * Test the property 'type' 47 | */ 48 | @Test 49 | public void typeTest() { 50 | // TODO: test type 51 | } 52 | 53 | /** 54 | * Test the property 'on' 55 | */ 56 | @Test 57 | public void onTest() { 58 | // TODO: test on 59 | } 60 | 61 | /** 62 | * Test the property 'query' 63 | */ 64 | @Test 65 | public void queryTest() { 66 | // TODO: test query 67 | } 68 | 69 | /** 70 | * Test the property 'table' 71 | */ 72 | @Test 73 | public void tableTest() { 74 | // TODO: test table 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/KnnQueryTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.QueryFilter; 22 | import java.math.BigDecimal; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for KnnQuery 33 | */ 34 | public class KnnQueryTest { 35 | private final KnnQuery model = new KnnQuery(); 36 | 37 | /** 38 | * Model tests for KnnQuery 39 | */ 40 | @Test 41 | public void testKnnQuery() { 42 | // TODO: test KnnQuery 43 | } 44 | 45 | /** 46 | * Test the property 'field' 47 | */ 48 | @Test 49 | public void fieldTest() { 50 | // TODO: test field 51 | } 52 | 53 | /** 54 | * Test the property 'k' 55 | */ 56 | @Test 57 | public void kTest() { 58 | // TODO: test k 59 | } 60 | 61 | /** 62 | * Test the property 'queryVector' 63 | */ 64 | @Test 65 | public void queryVectorTest() { 66 | // TODO: test queryVector 67 | } 68 | 69 | /** 70 | * Test the property 'docId' 71 | */ 72 | @Test 73 | public void docIdTest() { 74 | // TODO: test docId 75 | } 76 | 77 | /** 78 | * Test the property 'ef' 79 | */ 80 | @Test 81 | public void efTest() { 82 | // TODO: test ef 83 | } 84 | 85 | /** 86 | * Test the property 'filter' 87 | */ 88 | @Test 89 | public void filterTest() { 90 | // TODO: test filter 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/MatchAllTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for MatchAll 29 | */ 30 | public class MatchAllTest { 31 | private final MatchAll model = new MatchAll(); 32 | 33 | /** 34 | * Model tests for MatchAll 35 | */ 36 | @Test 37 | public void testMatchAll() { 38 | // TODO: test MatchAll 39 | } 40 | 41 | /** 42 | * Test the property 'all' 43 | */ 44 | @Test 45 | public void allTest() { 46 | // TODO: test all 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/MatchTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.math.BigDecimal; 22 | import java.util.Arrays; 23 | 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for Match 30 | */ 31 | public class MatchTest { 32 | private final Match model = new Match(); 33 | 34 | /** 35 | * Model tests for Match 36 | */ 37 | @Test 38 | public void testMatch() { 39 | // TODO: test Match 40 | } 41 | 42 | /** 43 | * Test the property 'query' 44 | */ 45 | @Test 46 | public void queryTest() { 47 | // TODO: test query 48 | } 49 | 50 | /** 51 | * Test the property 'operator' 52 | */ 53 | @Test 54 | public void operatorTest() { 55 | // TODO: test operator 56 | } 57 | 58 | /** 59 | * Test the property 'boost' 60 | */ 61 | @Test 62 | public void boostTest() { 63 | // TODO: test boost 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/PercolateRequestQueryTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for PercolateRequestQuery 29 | */ 30 | public class PercolateRequestQueryTest { 31 | private final PercolateRequestQuery model = new PercolateRequestQuery(); 32 | 33 | /** 34 | * Model tests for PercolateRequestQuery 35 | */ 36 | @Test 37 | public void testPercolateRequestQuery() { 38 | // TODO: test PercolateRequestQuery 39 | } 40 | 41 | /** 42 | * Test the property 'percolate' 43 | */ 44 | @Test 45 | public void percolateTest() { 46 | // TODO: test percolate 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/PercolateRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.PercolateRequestQuery; 22 | import java.util.Arrays; 23 | 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for PercolateRequest 30 | */ 31 | public class PercolateRequestTest { 32 | private final PercolateRequest model = new PercolateRequest(); 33 | 34 | /** 35 | * Model tests for PercolateRequest 36 | */ 37 | @Test 38 | public void testPercolateRequest() { 39 | // TODO: test PercolateRequest 40 | } 41 | 42 | /** 43 | * Test the property 'query' 44 | */ 45 | @Test 46 | public void queryTest() { 47 | // TODO: test query 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/QueryFilterTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.BoolFilter; 22 | import com.manticoresearch.client.model.GeoDistance; 23 | import java.util.Arrays; 24 | import org.openapitools.jackson.nullable.JsonNullable; 25 | import com.fasterxml.jackson.annotation.JsonIgnore; 26 | import org.openapitools.jackson.nullable.JsonNullable; 27 | import java.util.NoSuchElementException; 28 | 29 | import org.junit.jupiter.api.Assertions; 30 | import org.junit.jupiter.api.Disabled; 31 | import org.junit.jupiter.api.Test; 32 | 33 | /** 34 | * Model tests for QueryFilter 35 | */ 36 | public class QueryFilterTest { 37 | private final QueryFilter model = new QueryFilter(); 38 | 39 | /** 40 | * Model tests for QueryFilter 41 | */ 42 | @Test 43 | public void testQueryFilter() { 44 | // TODO: test QueryFilter 45 | } 46 | 47 | /** 48 | * Test the property 'queryString' 49 | */ 50 | @Test 51 | public void queryStringTest() { 52 | // TODO: test queryString 53 | } 54 | 55 | /** 56 | * Test the property 'match' 57 | */ 58 | @Test 59 | public void matchTest() { 60 | // TODO: test match 61 | } 62 | 63 | /** 64 | * Test the property 'matchPhrase' 65 | */ 66 | @Test 67 | public void matchPhraseTest() { 68 | // TODO: test matchPhrase 69 | } 70 | 71 | /** 72 | * Test the property 'matchAll' 73 | */ 74 | @Test 75 | public void matchAllTest() { 76 | // TODO: test matchAll 77 | } 78 | 79 | /** 80 | * Test the property 'bool' 81 | */ 82 | @Test 83 | public void boolTest() { 84 | // TODO: test bool 85 | } 86 | 87 | /** 88 | * Test the property 'equals' 89 | */ 90 | @Test 91 | public void equalsTest() { 92 | // TODO: test equals 93 | } 94 | 95 | /** 96 | * Test the property 'in' 97 | */ 98 | @Test 99 | public void inTest() { 100 | // TODO: test in 101 | } 102 | 103 | /** 104 | * Test the property 'range' 105 | */ 106 | @Test 107 | public void rangeTest() { 108 | // TODO: test range 109 | } 110 | 111 | /** 112 | * Test the property 'geoDistance' 113 | */ 114 | @Test 115 | public void geoDistanceTest() { 116 | // TODO: test geoDistance 117 | } 118 | 119 | } 120 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/RangeTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | import org.openapitools.jackson.nullable.JsonNullable; 23 | import com.fasterxml.jackson.annotation.JsonIgnore; 24 | import org.openapitools.jackson.nullable.JsonNullable; 25 | import java.util.NoSuchElementException; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for Range 33 | */ 34 | public class RangeTest { 35 | private final Range model = new Range(); 36 | 37 | /** 38 | * Model tests for Range 39 | */ 40 | @Test 41 | public void testRange() { 42 | // TODO: test Range 43 | } 44 | 45 | /** 46 | * Test the property 'lt' 47 | */ 48 | @Test 49 | public void ltTest() { 50 | // TODO: test lt 51 | } 52 | 53 | /** 54 | * Test the property 'lte' 55 | */ 56 | @Test 57 | public void lteTest() { 58 | // TODO: test lte 59 | } 60 | 61 | /** 62 | * Test the property 'gt' 63 | */ 64 | @Test 65 | public void gtTest() { 66 | // TODO: test gt 67 | } 68 | 69 | /** 70 | * Test the property 'gte' 71 | */ 72 | @Test 73 | public void gteTest() { 74 | // TODO: test gte 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/ReplaceDocumentRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for ReplaceDocumentRequest 29 | */ 30 | public class ReplaceDocumentRequestTest { 31 | private final ReplaceDocumentRequest model = new ReplaceDocumentRequest(); 32 | 33 | /** 34 | * Model tests for ReplaceDocumentRequest 35 | */ 36 | @Test 37 | public void testReplaceDocumentRequest() { 38 | // TODO: test ReplaceDocumentRequest 39 | } 40 | 41 | /** 42 | * Test the property 'doc' 43 | */ 44 | @Test 45 | public void docTest() { 46 | // TODO: test doc 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/ResponseErrorDetailsTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | import org.openapitools.jackson.nullable.JsonNullable; 23 | import com.fasterxml.jackson.annotation.JsonIgnore; 24 | import org.openapitools.jackson.nullable.JsonNullable; 25 | import java.util.NoSuchElementException; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for ResponseErrorDetails 33 | */ 34 | public class ResponseErrorDetailsTest { 35 | private final ResponseErrorDetails model = new ResponseErrorDetails(); 36 | 37 | /** 38 | * Model tests for ResponseErrorDetails 39 | */ 40 | @Test 41 | public void testResponseErrorDetails() { 42 | // TODO: test ResponseErrorDetails 43 | } 44 | 45 | /** 46 | * Test the property 'type' 47 | */ 48 | @Test 49 | public void typeTest() { 50 | // TODO: test type 51 | } 52 | 53 | /** 54 | * Test the property 'reason' 55 | */ 56 | @Test 57 | public void reasonTest() { 58 | // TODO: test reason 59 | } 60 | 61 | /** 62 | * Test the property 'table' 63 | */ 64 | @Test 65 | public void tableTest() { 66 | // TODO: test table 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/ResponseErrorTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.ResponseErrorDetails; 22 | import java.util.Arrays; 23 | import org.openapitools.jackson.nullable.JsonNullable; 24 | import com.fasterxml.jackson.annotation.JsonIgnore; 25 | import org.openapitools.jackson.nullable.JsonNullable; 26 | import java.util.NoSuchElementException; 27 | 28 | import org.junit.jupiter.api.Assertions; 29 | import org.junit.jupiter.api.Disabled; 30 | import org.junit.jupiter.api.Test; 31 | 32 | /** 33 | * Model tests for ResponseError 34 | */ 35 | public class ResponseErrorTest { 36 | private final ResponseError model = new ResponseError(); 37 | 38 | /** 39 | * Model tests for ResponseError 40 | */ 41 | @Test 42 | public void testResponseError() { 43 | // TODO: test ResponseError 44 | } 45 | 46 | /** 47 | * Test the property 'type' 48 | */ 49 | @Test 50 | public void typeTest() { 51 | // TODO: test type 52 | } 53 | 54 | /** 55 | * Test the property 'reason' 56 | */ 57 | @Test 58 | public void reasonTest() { 59 | // TODO: test reason 60 | } 61 | 62 | /** 63 | * Test the property 'table' 64 | */ 65 | @Test 66 | public void tableTest() { 67 | // TODO: test table 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/SearchQueryTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.BoolFilter; 22 | import com.manticoresearch.client.model.GeoDistance; 23 | import com.manticoresearch.client.model.Highlight; 24 | import java.util.Arrays; 25 | import org.openapitools.jackson.nullable.JsonNullable; 26 | import com.fasterxml.jackson.annotation.JsonIgnore; 27 | import org.openapitools.jackson.nullable.JsonNullable; 28 | import java.util.NoSuchElementException; 29 | 30 | import org.junit.jupiter.api.Assertions; 31 | import org.junit.jupiter.api.Disabled; 32 | import org.junit.jupiter.api.Test; 33 | 34 | /** 35 | * Model tests for SearchQuery 36 | */ 37 | public class SearchQueryTest { 38 | private final SearchQuery model = new SearchQuery(); 39 | 40 | /** 41 | * Model tests for SearchQuery 42 | */ 43 | @Test 44 | public void testSearchQuery() { 45 | // TODO: test SearchQuery 46 | } 47 | 48 | /** 49 | * Test the property 'queryString' 50 | */ 51 | @Test 52 | public void queryStringTest() { 53 | // TODO: test queryString 54 | } 55 | 56 | /** 57 | * Test the property 'match' 58 | */ 59 | @Test 60 | public void matchTest() { 61 | // TODO: test match 62 | } 63 | 64 | /** 65 | * Test the property 'matchPhrase' 66 | */ 67 | @Test 68 | public void matchPhraseTest() { 69 | // TODO: test matchPhrase 70 | } 71 | 72 | /** 73 | * Test the property 'matchAll' 74 | */ 75 | @Test 76 | public void matchAllTest() { 77 | // TODO: test matchAll 78 | } 79 | 80 | /** 81 | * Test the property 'bool' 82 | */ 83 | @Test 84 | public void boolTest() { 85 | // TODO: test bool 86 | } 87 | 88 | /** 89 | * Test the property 'equals' 90 | */ 91 | @Test 92 | public void equalsTest() { 93 | // TODO: test equals 94 | } 95 | 96 | /** 97 | * Test the property 'in' 98 | */ 99 | @Test 100 | public void inTest() { 101 | // TODO: test in 102 | } 103 | 104 | /** 105 | * Test the property 'range' 106 | */ 107 | @Test 108 | public void rangeTest() { 109 | // TODO: test range 110 | } 111 | 112 | /** 113 | * Test the property 'geoDistance' 114 | */ 115 | @Test 116 | public void geoDistanceTest() { 117 | // TODO: test geoDistance 118 | } 119 | 120 | /** 121 | * Test the property 'highlight' 122 | */ 123 | @Test 124 | public void highlightTest() { 125 | // TODO: test highlight 126 | } 127 | 128 | } 129 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/SearchRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.Aggregation; 22 | import com.manticoresearch.client.model.Highlight; 23 | import com.manticoresearch.client.model.Join; 24 | import com.manticoresearch.client.model.KnnQuery; 25 | import com.manticoresearch.client.model.SearchQuery; 26 | import java.util.ArrayList; 27 | import java.util.Arrays; 28 | import java.util.HashMap; 29 | import java.util.List; 30 | import java.util.Map; 31 | import org.openapitools.jackson.nullable.JsonNullable; 32 | import com.fasterxml.jackson.annotation.JsonIgnore; 33 | import org.openapitools.jackson.nullable.JsonNullable; 34 | import java.util.NoSuchElementException; 35 | 36 | import org.junit.jupiter.api.Assertions; 37 | import org.junit.jupiter.api.Disabled; 38 | import org.junit.jupiter.api.Test; 39 | 40 | /** 41 | * Model tests for SearchRequest 42 | */ 43 | public class SearchRequestTest { 44 | private final SearchRequest model = new SearchRequest(); 45 | 46 | /** 47 | * Model tests for SearchRequest 48 | */ 49 | @Test 50 | public void testSearchRequest() { 51 | // TODO: test SearchRequest 52 | } 53 | 54 | /** 55 | * Test the property 'table' 56 | */ 57 | @Test 58 | public void tableTest() { 59 | // TODO: test table 60 | } 61 | 62 | /** 63 | * Test the property 'query' 64 | */ 65 | @Test 66 | public void queryTest() { 67 | // TODO: test query 68 | } 69 | 70 | /** 71 | * Test the property 'join' 72 | */ 73 | @Test 74 | public void joinTest() { 75 | // TODO: test join 76 | } 77 | 78 | /** 79 | * Test the property 'highlight' 80 | */ 81 | @Test 82 | public void highlightTest() { 83 | // TODO: test highlight 84 | } 85 | 86 | /** 87 | * Test the property 'limit' 88 | */ 89 | @Test 90 | public void limitTest() { 91 | // TODO: test limit 92 | } 93 | 94 | /** 95 | * Test the property 'knn' 96 | */ 97 | @Test 98 | public void knnTest() { 99 | // TODO: test knn 100 | } 101 | 102 | /** 103 | * Test the property 'aggs' 104 | */ 105 | @Test 106 | public void aggsTest() { 107 | // TODO: test aggs 108 | } 109 | 110 | /** 111 | * Test the property 'expressions' 112 | */ 113 | @Test 114 | public void expressionsTest() { 115 | // TODO: test expressions 116 | } 117 | 118 | /** 119 | * Test the property 'maxMatches' 120 | */ 121 | @Test 122 | public void maxMatchesTest() { 123 | // TODO: test maxMatches 124 | } 125 | 126 | /** 127 | * Test the property 'offset' 128 | */ 129 | @Test 130 | public void offsetTest() { 131 | // TODO: test offset 132 | } 133 | 134 | /** 135 | * Test the property 'options' 136 | */ 137 | @Test 138 | public void optionsTest() { 139 | // TODO: test options 140 | } 141 | 142 | /** 143 | * Test the property 'profile' 144 | */ 145 | @Test 146 | public void profileTest() { 147 | // TODO: test profile 148 | } 149 | 150 | /** 151 | * Test the property 'sort' 152 | */ 153 | @Test 154 | public void sortTest() { 155 | // TODO: test sort 156 | } 157 | 158 | /** 159 | * Test the property 'source' 160 | */ 161 | @Test 162 | public void sourceTest() { 163 | // TODO: test source 164 | } 165 | 166 | /** 167 | * Test the property 'trackScores' 168 | */ 169 | @Test 170 | public void trackScoresTest() { 171 | // TODO: test trackScores 172 | } 173 | 174 | } 175 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/SearchResponseHitsTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.HitsHits; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | 26 | import org.junit.jupiter.api.Assertions; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for SearchResponseHits 32 | */ 33 | public class SearchResponseHitsTest { 34 | private final SearchResponseHits model = new SearchResponseHits(); 35 | 36 | /** 37 | * Model tests for SearchResponseHits 38 | */ 39 | @Test 40 | public void testSearchResponseHits() { 41 | // TODO: test SearchResponseHits 42 | } 43 | 44 | /** 45 | * Test the property 'maxScore' 46 | */ 47 | @Test 48 | public void maxScoreTest() { 49 | // TODO: test maxScore 50 | } 51 | 52 | /** 53 | * Test the property 'total' 54 | */ 55 | @Test 56 | public void totalTest() { 57 | // TODO: test total 58 | } 59 | 60 | /** 61 | * Test the property 'totalRelation' 62 | */ 63 | @Test 64 | public void totalRelationTest() { 65 | // TODO: test totalRelation 66 | } 67 | 68 | /** 69 | * Test the property 'hits' 70 | */ 71 | @Test 72 | public void hitsTest() { 73 | // TODO: test hits 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/SearchResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.SearchResponseHits; 22 | import java.util.Arrays; 23 | 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for SearchResponse 30 | */ 31 | public class SearchResponseTest { 32 | private final SearchResponse model = new SearchResponse(); 33 | 34 | /** 35 | * Model tests for SearchResponse 36 | */ 37 | @Test 38 | public void testSearchResponse() { 39 | // TODO: test SearchResponse 40 | } 41 | 42 | /** 43 | * Test the property 'took' 44 | */ 45 | @Test 46 | public void tookTest() { 47 | // TODO: test took 48 | } 49 | 50 | /** 51 | * Test the property 'timedOut' 52 | */ 53 | @Test 54 | public void timedOutTest() { 55 | // TODO: test timedOut 56 | } 57 | 58 | /** 59 | * Test the property 'aggregations' 60 | */ 61 | @Test 62 | public void aggregationsTest() { 63 | // TODO: test aggregations 64 | } 65 | 66 | /** 67 | * Test the property 'hits' 68 | */ 69 | @Test 70 | public void hitsTest() { 71 | // TODO: test hits 72 | } 73 | 74 | /** 75 | * Test the property 'profile' 76 | */ 77 | @Test 78 | public void profileTest() { 79 | // TODO: test profile 80 | } 81 | 82 | /** 83 | * Test the property 'scroll' 84 | */ 85 | @Test 86 | public void scrollTest() { 87 | // TODO: test scroll 88 | } 89 | 90 | /** 91 | * Test the property 'warning' 92 | */ 93 | @Test 94 | public void warningTest() { 95 | // TODO: test warning 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/SourceRulesTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | import org.openapitools.jackson.nullable.JsonNullable; 23 | import com.fasterxml.jackson.annotation.JsonIgnore; 24 | import org.openapitools.jackson.nullable.JsonNullable; 25 | import java.util.NoSuchElementException; 26 | 27 | import org.junit.jupiter.api.Assertions; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for SourceRules 33 | */ 34 | public class SourceRulesTest { 35 | private final SourceRules model = new SourceRules(); 36 | 37 | /** 38 | * Model tests for SourceRules 39 | */ 40 | @Test 41 | public void testSourceRules() { 42 | // TODO: test SourceRules 43 | } 44 | 45 | /** 46 | * Test the property 'includes' 47 | */ 48 | @Test 49 | public void includesTest() { 50 | // TODO: test includes 51 | } 52 | 53 | /** 54 | * Test the property 'excludes' 55 | */ 56 | @Test 57 | public void excludesTest() { 58 | // TODO: test excludes 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/SqlObjResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.math.BigDecimal; 22 | import java.util.Arrays; 23 | 24 | import org.junit.jupiter.api.Assertions; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for SqlObjResponse 30 | */ 31 | public class SqlObjResponseTest { 32 | private final SqlObjResponse model = new SqlObjResponse(); 33 | 34 | /** 35 | * Model tests for SqlObjResponse 36 | */ 37 | @Test 38 | public void testSqlObjResponse() { 39 | // TODO: test SqlObjResponse 40 | } 41 | 42 | /** 43 | * Test the property 'hits' 44 | */ 45 | @Test 46 | public void hitsTest() { 47 | // TODO: test hits 48 | } 49 | 50 | /** 51 | * Test the property 'took' 52 | */ 53 | @Test 54 | public void tookTest() { 55 | // TODO: test took 56 | } 57 | 58 | /** 59 | * Test the property 'timedOut' 60 | */ 61 | @Test 62 | public void timedOutTest() { 63 | // TODO: test timedOut 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/SqlResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.SqlObjResponse; 22 | import java.util.Arrays; 23 | import org.openapitools.jackson.nullable.JsonNullable; 24 | import com.fasterxml.jackson.annotation.JsonIgnore; 25 | import org.openapitools.jackson.nullable.JsonNullable; 26 | import java.util.NoSuchElementException; 27 | 28 | import org.junit.jupiter.api.Assertions; 29 | import org.junit.jupiter.api.Disabled; 30 | import org.junit.jupiter.api.Test; 31 | 32 | /** 33 | * Model tests for SqlResponse 34 | */ 35 | public class SqlResponseTest { 36 | private final SqlResponse model = new SqlResponse(); 37 | 38 | /** 39 | * Model tests for SqlResponse 40 | */ 41 | @Test 42 | public void testSqlResponse() { 43 | // TODO: test SqlResponse 44 | } 45 | 46 | /** 47 | * Test the property 'hits' 48 | */ 49 | @Test 50 | public void hitsTest() { 51 | // TODO: test hits 52 | } 53 | 54 | /** 55 | * Test the property 'took' 56 | */ 57 | @Test 58 | public void tookTest() { 59 | // TODO: test took 60 | } 61 | 62 | /** 63 | * Test the property 'timedOut' 64 | */ 65 | @Test 66 | public void timedOutTest() { 67 | // TODO: test timedOut 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/SuccessResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for SuccessResponse 29 | */ 30 | public class SuccessResponseTest { 31 | private final SuccessResponse model = new SuccessResponse(); 32 | 33 | /** 34 | * Model tests for SuccessResponse 35 | */ 36 | @Test 37 | public void testSuccessResponse() { 38 | // TODO: test SuccessResponse 39 | } 40 | 41 | /** 42 | * Test the property 'table' 43 | */ 44 | @Test 45 | public void tableTest() { 46 | // TODO: test table 47 | } 48 | 49 | /** 50 | * Test the property 'id' 51 | */ 52 | @Test 53 | public void idTest() { 54 | // TODO: test id 55 | } 56 | 57 | /** 58 | * Test the property 'created' 59 | */ 60 | @Test 61 | public void createdTest() { 62 | // TODO: test created 63 | } 64 | 65 | /** 66 | * Test the property 'result' 67 | */ 68 | @Test 69 | public void resultTest() { 70 | // TODO: test result 71 | } 72 | 73 | /** 74 | * Test the property 'found' 75 | */ 76 | @Test 77 | public void foundTest() { 78 | // TODO: test found 79 | } 80 | 81 | /** 82 | * Test the property 'status' 83 | */ 84 | @Test 85 | public void statusTest() { 86 | // TODO: test status 87 | } 88 | 89 | } 90 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/UpdateDocumentRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import com.manticoresearch.client.model.QueryFilter; 22 | import java.util.Arrays; 23 | import org.openapitools.jackson.nullable.JsonNullable; 24 | import com.fasterxml.jackson.annotation.JsonIgnore; 25 | import org.openapitools.jackson.nullable.JsonNullable; 26 | import java.util.NoSuchElementException; 27 | 28 | import org.junit.jupiter.api.Assertions; 29 | import org.junit.jupiter.api.Disabled; 30 | import org.junit.jupiter.api.Test; 31 | 32 | /** 33 | * Model tests for UpdateDocumentRequest 34 | */ 35 | public class UpdateDocumentRequestTest { 36 | private final UpdateDocumentRequest model = new UpdateDocumentRequest(); 37 | 38 | /** 39 | * Model tests for UpdateDocumentRequest 40 | */ 41 | @Test 42 | public void testUpdateDocumentRequest() { 43 | // TODO: test UpdateDocumentRequest 44 | } 45 | 46 | /** 47 | * Test the property 'table' 48 | */ 49 | @Test 50 | public void tableTest() { 51 | // TODO: test table 52 | } 53 | 54 | /** 55 | * Test the property 'cluster' 56 | */ 57 | @Test 58 | public void clusterTest() { 59 | // TODO: test cluster 60 | } 61 | 62 | /** 63 | * Test the property 'doc' 64 | */ 65 | @Test 66 | public void docTest() { 67 | // TODO: test doc 68 | } 69 | 70 | /** 71 | * Test the property 'id' 72 | */ 73 | @Test 74 | public void idTest() { 75 | // TODO: test id 76 | } 77 | 78 | /** 79 | * Test the property 'query' 80 | */ 81 | @Test 82 | public void queryTest() { 83 | // TODO: test query 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /src/test/java/com/manticoresearch/client/model/UpdateResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Manticore Search Client 3 | * Сlient for Manticore Search. 4 | * 5 | * The version of the OpenAPI document: 5.0.0 6 | * Contact: info@manticoresearch.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.manticoresearch.client.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonInclude; 17 | import com.fasterxml.jackson.annotation.JsonProperty; 18 | import com.fasterxml.jackson.annotation.JsonCreator; 19 | import com.fasterxml.jackson.annotation.JsonTypeName; 20 | import com.fasterxml.jackson.annotation.JsonValue; 21 | import java.util.Arrays; 22 | 23 | import org.junit.jupiter.api.Assertions; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for UpdateResponse 29 | */ 30 | public class UpdateResponseTest { 31 | private final UpdateResponse model = new UpdateResponse(); 32 | 33 | /** 34 | * Model tests for UpdateResponse 35 | */ 36 | @Test 37 | public void testUpdateResponse() { 38 | // TODO: test UpdateResponse 39 | } 40 | 41 | /** 42 | * Test the property 'table' 43 | */ 44 | @Test 45 | public void tableTest() { 46 | // TODO: test table 47 | } 48 | 49 | /** 50 | * Test the property 'updated' 51 | */ 52 | @Test 53 | public void updatedTest() { 54 | // TODO: test updated 55 | } 56 | 57 | /** 58 | * Test the property 'id' 59 | */ 60 | @Test 61 | public void idTest() { 62 | // TODO: test id 63 | } 64 | 65 | /** 66 | * Test the property 'result' 67 | */ 68 | @Test 69 | public void resultTest() { 70 | // TODO: test result 71 | } 72 | 73 | } 74 | --------------------------------------------------------------------------------