openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_SEARCH_EXTERNAL:
    post:
      tags:
      - TREX_RFC_TM
      summary: Search on external search engines
      operationId: /rfc/TREX_RFC_SEARCH_EXTERNAL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INDEXSERVER_LOCATION:
                  type: string
                  format: byte
                  description: Host:Port
                RESULT_FROM:
                  type: integer
                  format: int64
                  description: from
                RESULT_TO:
                  type: integer
                  format: int64
                  description: to
                INDEX_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX_ID:
                        type: string
                        format: byte
                        description: ''
                      SEARCH_ENGINE:
                        type: string
                        format: byte
                        description: ''
                QUERY_ENTRY:
                  type: array
                  items:
                    type: object
                    properties:
                      LOCATION:
                        type: string
                        format: byte
                        description: Attribute Name
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      VALUE2:
                        type: string
                        format: byte
                        description: ''
                      ROWTYPE:
                        type: string
                        format: byte
                        description: ''
                      OPERATOR:
                        type: string
                        format: byte
                        description: ''
                      CONTENT_TYPE:
                        type: string
                        format: byte
                        description: ''
                      TERM_ACTION:
                        type: string
                        format: byte
                        description: ''
                      TERM_WEIGHT:
                        type: integer
                        format: int64
                        description: ''
                      NEAR_WIDTH:
                        type: integer
                        format: int64
                        description: ''
                      NEAR_ORDER:
                        type: integer
                        format: int64
                        description: ''
                      FUZZY_SIMILARITY:
                        type: integer
                        format: int64
                        description: ''
                      RANK_METHOD:
                        type: integer
                        format: int64
                        description: ''
                      SEARCH_FLAG:
                        type: integer
                        format: int64
                        description: ''
                      QUERY_COUNT:
                        type: integer
                        format: int64
                        description: ''
                      NODE_COUNT:
                        type: integer
                        format: int64
                        description: ''
                RESULT_DOCS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_STATUS:
                        type: integer
                        format: int64
                        description: ''
                      INDEX_ID:
                        type: string
                        format: byte
                        description: ''
                      RANK_VALUE:
                        type: integer
                        format: int64
                        description: ''
                      DOC_LANGU:
                        type: string
                        format: byte
                        description: ''
                      SEARCH_ENGINE:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                RESULT_DOC_ATTR:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      VALUE2:
                        type: string
                        format: byte
                        description: ''
                      ATTR_TYPE:
                        type: string
                        format: byte
                        description: ''
                      ATTR_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                RESULT_DOC_CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      CONTENT:
                        type: string
                        format: byte
                        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  COMPONENT_RUNTIME:
                    type: object
                    properties:
                      RFC_SERVER_TIME:
                        type: integer
                        format: int64
                        description: ''
                      TREX_CLIENT_TIME:
                        type: integer
                        format: int64
                        description: ''
                      TREX_KERNEL_TIME:
                        type: integer
                        format: int64
                        description: ''
                  NO_OF_ALL_HITS:
                    type: integer
                    format: int64
                    description: Number of all Hits in Index
                  NO_OF_HITS:
                    type: integer
                    format: int64
                    description: Number of Hits
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return text
                  INDEX_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX_ID:
                          type: string
                          format: byte
                          description: ''
                        SEARCH_ENGINE:
                          type: string
                          format: byte
                          description: ''
                  QUERY_ENTRY:
                    type: array
                    items:
                      type: object
                      properties:
                        LOCATION:
                          type: string
                          format: byte
                          description: Attribute Name
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        VALUE2:
                          type: string
                          format: byte
                          description: ''
                        ROWTYPE:
                          type: string
                          format: byte
                          description: ''
                        OPERATOR:
                          type: string
                          format: byte
                          description: ''
                        CONTENT_TYPE:
                          type: string
                          format: byte
                          description: ''
                        TERM_ACTION:
                          type: string
                          format: byte
                          description: ''
                        TERM_WEIGHT:
                          type: integer
                          format: int64
                          description: ''
                        NEAR_WIDTH:
                          type: integer
                          format: int64
                          description: ''
                        NEAR_ORDER:
                          type: integer
                          format: int64
                          description: ''
                        FUZZY_SIMILARITY:
                          type: integer
                          format: int64
                          description: ''
                        RANK_METHOD:
                          type: integer
                          format: int64
                          description: ''
                        SEARCH_FLAG:
                          type: integer
                          format: int64
                          description: ''
                        QUERY_COUNT:
                          type: integer
                          format: int64
                          description: ''
                        NODE_COUNT:
                          type: integer
                          format: int64
                          description: ''
                  RESULT_DOCS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_STATUS:
                          type: integer
                          format: int64
                          description: ''
                        INDEX_ID:
                          type: string
                          format: byte
                          description: ''
                        RANK_VALUE:
                          type: integer
                          format: int64
                          description: ''
                        DOC_LANGU:
                          type: string
                          format: byte
                          description: ''
                        SEARCH_ENGINE:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  RESULT_DOC_ATTR:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        VALUE2:
                          type: string
                          format: byte
                          description: ''
                        ATTR_TYPE:
                          type: string
                          format: byte
                          description: ''
                        ATTR_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  RESULT_DOC_CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        CONTENT:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
