Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This REST Handler contains general/utility functionality:

  • Endpoints that return Saga configuration and build information
  • Endpoints to process text and return the interpretation graph

Table of Contents
maxLevel2

Saga_rest_endpoint
EndpointpreviewprocessText
  • Will return
Sagainterpretation graph. At the moment it is HTML based but eventually the user will be able to choose the format.
  • a Saga interpretation graph in the format specified
  • By default, it returns the graph in HTML format which is used by the UI
  • It also can return JSON or plain text

Parameters

  • Parameter
    summaryThis is the text to process
    nameq
    requiredtrue
  • Parameter
    summaryList of tags to use to process the text
    nametags
    typestring array
    requiredtrue
  • Parameter
    summarySpecifies the regex Tag to use to split process the text into sentences
    nametag
  • Parameter
    summaryPipeline or pipeline stage to use to process the text
    nameprocessor
  • Parameter
    summarySpecifies the regex to use to split text into TEXT_BLOCKs
    default[\r\n ]+
    name
    default[\r |\n ]+
    namesplitRegex
  • Parameter
    summaryUsed to pretty format the JSON resultIf true, it will combine all the SEMANTIC_TAGs, which has same matching text and same confidence value
    defaultfalse
    nameprettycombine
    typeboolean

    • The combination includes the metadata, of every SEMANTIC_TAG
  • Parameter
    summaryIf true, it will also add the components from the highest route confidence tokens.
    defaulttrue
    nameaddComponents
    typeboolean
  • Parameter
    summaryApplicable when addComponents is true. Indicates which components to add to the response
    namecompFields
    typestring array

    • If missing all the components will be added
  • Parameter
    summaryIf true, it will add the metadata of the entities found in every SEMANTIC_TAG
    defaultfalse
    namemetadata
    typeboolean
  • Parameter
    summarySpecifies the format of the results. It could be one of these values: "ux", "text" or "json"
    defaultux
    nametype
    • ux - Returns an output useful for Saga to show the graph on a web display.
    • text - Returns a "line" with the highest confidence route and a text representation of the graph.
    • json - Returns all the semantic tags on the graph.
  • Parameter
    summaryUsed to pretty format the JSON result
    defaultfalse
    namepretty
    typeboolean
Note

The parameters tags, tag and processor are mutually exclusive, only one is required, and the priority order is:

  1. tags
  2. tag
  3. processor


Request Examples

Code Block
languagepowershell
themeFadeToGrey
curl -X ${method} \
  http://localhost:${port}/${url} \
  -H 'Content-Type: application/json' \
  -d '
{
    "q": "I like traveling with Air Paris",
	"tags": ["airline"],
    "combine": true,
    "addComponents": true,
    "compFields": "paris",
	"splitRegex": "[\r\n]+",
	"type": "text",
	"pretty": true
}'

Response

Saga_json
{
  "_success": true,
  "data": {
    "line": [
      {
        "stage": "WhitespaceTokenizer",
        "confidence": 0.5,
        "match": "I",
        "flags": [
          "ORIGINAL",
          "ALL_UPPER_CASE",
          "TOKEN"
        ],
        "text": "I",
        "startPos": 0,
        "endPos": 1
      },
      {
        "stage": "WhitespaceTokenizer",
        "confidence": 0.5,
        "match": "like",
        "flags": [
          "ORIGINAL",
          "TOKEN",
          "ALL_LOWER_CASE"
        ],
        "text": "like",
        "startPos": 2,
        "endPos": 6
      },
      {
        "stage": "WhitespaceTokenizer",
        "confidence": 0.5,
        "match": "traveling",
        "flags": [
          "ORIGINAL",
          "TOKEN",
          "ALL_LOWER_CASE"
        ],
        "text": "traveling",
        "startPos": 7,
        "endPos": 16
      },
      {
        "stage": "WhitespaceTokenizer",
        "confidence": 0.4,
        "match": "with",
        "flags": [
          "ORIGINAL",
          "STOP_WORD",
          "TOKEN",
          "ALL_LOWER_CASE"
        ],
        "text": "with",
        "startPos": 17,
        "endPos": 21
      },
      {
        "components": [
          {
            "stage": "CaseAnalysis",
            "confidence": 0.45,
            "match": "Paris",
            "flags": [
              "ORIGINAL",
              "LOWERED",
              "TOKEN",
              "ALL_LOWER_CASE"
            ],
            "text": "paris",
            "startPos": 26,
            "endPos": 31
          }
        ],
        "stage": "DictionaryTagger",
        "confidence": 0.6975,
        "display": "Air Paris",
        "match": "Air Paris",
        "flags": [
          "SEMANTIC_TAG",
          "ENTITY"
        ],
        "text": "{airline}",
        "id": "34365531",
        "startPos": 22,
        "endPos": 31,
        "tags": [
          "airline"
        ]
      }
    ],
    "graph": " V-----------[I like traveling with Air Paris]-----------V \n ^-[I]-V-[like]-V-[traveling]-V-[with]-V-[Air]-V-[Paris]-^ \n ^-[i]-^                               ^-[air]-^-[paris]-^ \n                                       ^---[{airline}]---^ \n"
  }
}
Saga_rest_endpoint_legacy
EndpointprocessBatch
  • Will return a Saga interpretation graph in the format specified
  • By default, it returns the graph in HTML format which is used by the UI
  • It also can return JSON or plain text

Parameters

  • Parameter
    summaryList of texts to process
    namebatch
    typestring array
    requiredtrue
  • Parameter
    summaryList of tags to use to process the text
    nametags
    typestring array
    requiredtrue
  • Parameter
    summaryTag to use to process the text
    nametag
  • Parameter
    summaryPipeline or pipeline stage to use to process the text
    nameprocessor
  • Parameter
    summarySpecifies the regex to use to split text into TEXT_BLOCKs
    default[\r\n ]+
    namesplitRegex
  • Parameter
    summaryIf true, it will combine all the SEMANTIC_TAGs, which has same matching text and same confidence value
    defaultfalse
    namecombine
    typeboolean

    • The combination includes the metadata, of every SEMANTIC_TAG
  • Parameter
    summaryIf true, it will also add the components from the highest route confidence tokens.
    defaulttrue
    nameaddComponents
    typeboolean
  • Parameter
    summaryApplicable when addComponents is true. Indicates which components to add to the response
    namecompFields
    typestring array

    • If missing all the components will be added
  • Parameter
    summaryIf true, it will add the metadata of the entities found in every SEMANTIC_TAG
    defaultfalse
    namemetadata
    typeboolean
Note

The parameters tags, tag and processor are mutually exclusive, only one is required, and the priority order is:

  1. tags
  2. tag
  3. processor


Request Examples

Code Block
languagepowershell
themeFadeToGrey
curl -X ${method} \
  http://localhost:${port}/${url} \
  -H 'Content-Type: application/json' \
  -d '
{
    "batch": ["I like traveling with Air Paris", "I enjoy traveling with Delta"],
	"tags": ["airline"],
    "combine": true,
    "addComponents": true,
    "compFields": "paris"
}'

Response

Saga_json
[
    {
        "data": {
            "line": [
                {
                    "stage": "WhitespaceTokenizer",
                    "confidence": 0.5,
                    "match": "I",
                    "flags": [
                        "ORIGINAL",
                        "ALL_UPPER_CASE",
                        "TOKEN"
                    ],
                    "text": "I",
                    "startPos": 0,
                    "endPos": 1
                },
                {
                    "stage": "WhitespaceTokenizer",
                    "confidence": 0.5,
                    "match": "like",
                    "flags": [
                        "ORIGINAL",
                        "ALL_LOWER_CASE",
                        "TOKEN"
                    ],
                    "text": "like",
                    "startPos": 2,
                    "endPos": 6
                },
                {
                    "stage": "WhitespaceTokenizer",
                    "confidence": 0.5,
                    "match": "traveling",
                    "flags": [
                        "ORIGINAL",
                        "ALL_LOWER_CASE",
        

Request Examples

Code Block
languagepowershell
themeFadeToGrey
curl -X ${method} \
  http://localhost:${port}/${url} \
  -H 'Content-Type: application/json' \
  -d '
{
    "q": "who is morgan freeman",
	"tags": ["human"],
	"splitRegex": "[\r|\n]+",
	"pretty": true
}'

Response

Saga_json
    "_success": true,
    "data": {
        "line": [
            {
                "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>who</span><span class=\"field\"><b>Characters: </b>0:3</span><span class=\"field\"><b>Confidence: </b>0.5</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ORIGINAL</span><span class=\"flag\">TOKEN</span><span class=\"flag\">ALL_LOWER_CASE</span></div></div>",
TOKEN"
                    ],
                    "text": "[who]traveling",
                    "typestartPos": "item"7,
                    "hashendPos": 185160841316
                },
                {
                    "tooltipstage": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>is</span><span class=\"field\"><b>Characters: </b>4:6</span><span class=\"field\"><b>Confidence: </b>0.4</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ORIGINAL</span><span class=\"flag\">SKIP</span><span class=\"flag\">TOKEN</span><span class=\"flag\">ALL_LOWER_CASE</span></div></div>",
"WhitespaceTokenizer",
                    "confidence": 0.4,
                    "match": "with",
                    "textflags": "[is]",
 [
                        "ORIGINAL",
                      "type":  "itemSTOP_WORD",
                        "hash": 1221679425ALL_LOWER_CASE",
            },
            {
"TOKEN"
                    "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>morgan</span><span class=\"field\"><b>Characters: </b>7:13</span><span class=\"field\"><b>Confidence: </b>0.5</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ORIGINAL</span><span class=\"flag\">PROCESSED</span><span class=\"flag\">TOKEN</span><span class=\"flag\">ALL_LOWER_CASE</span></div></div>",
],
                    "text": "with",
                    "startPos": 17,
                    "textendPos": "[morgan]",
 21
                },
                {
   "type": "item",
                "hashcomponents": 1927964688[
            },
            {
                 "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>freeman</span><span class=\"field\"><b>Characters: </b>14:21</span><span class=\"field\"><b>Confidence: </b>0.5</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ORIGINAL</span><span class=\"flag\">PROCESSED</span><span class=\"flag\">TOKEN</span><span class=\"flag\">ALL_LOWER_CASE</span></div></div>",
   "stage": "CaseAnalysis",
                            "confidence": 0.45,
                            "textmatch": "[freeman]Paris",
                            "typeflags": "item",[
                "hash": 439037856
                }
"ORIGINAL",
           ],
        "graph": [
            ["ALL_LOWER_CASE",
                {
                "LOWERED",
           "text": " ",
                    "type": "paddingTOKEN"
                },
                {],
                    "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b><b>null</b></span><span class=\"field\"><b>Characters: </b>0:0</span><span class=\"field\text"><b>Stage: </b>null</span>"paris",
                            "textstartPos": "V"26,
                            "typeendPos": "vertex",
31
                       "hash": 305419896}
                    }],
                {    "stage": "DictionaryTagger",
                    "textconfidence": "-------"0.6975,
                    "typedisplay": "paddingAir Paris",
                },
         "match": "Air Paris",
       {
             "flags": [
      "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>who is morgan freeman</span><span class=\"field\"><b>Characters: </b>0:21</span><span class=\"field\"><b>Confidence: </b>0.5</span><span class=\"field\"><b>Stage: </b>SimpleReader</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">TEXT_BLOCK</span><span class=\"flag\">SENTENCE</span></div></div>",
      "ENTITY",
                        "text": "[who is morgan freeman]"SEMANTIC_TAG"
                    ],
                    "typetext": "item{airline}",
                    "hashid": 0
"34365531",
                    "startPos": }22,
                     {"endPos": 31,
                    "texttags": "-------",
[
                      "type":  "paddingairline"
                },
    ]
            {
    }
            ],
    "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b>\"\"</span><span class=\"field\"><b>Characters: </b>21:21</span><span class=\"field\"><b>Stage: </b>SimpleReader</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">TEXT_BLOCK_SPLIT</span><span class=\"flag\">OVERFLOW_SPLIT</span><span class=\"flag\">SENTENCE_SPLIT</span></div></div>",    "matches": [
                {
                    "textcomponents": "V",
[
                       "type": "vertex",
 {
                            "hashstage": 305419896"CaseAnalysis",
                },
            "confidence": 0.45,
       {
                     "textmatch": " Paris",
                            "typeflags": "padding"
[
                                "ORIGINAL",
   }
            ],
            [
     "ALL_LOWER_CASE",
           {
                    "text": " LOWERED",
                           "type": "padding"
    "TOKEN"
            },
                {],
                    "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b><b>null</b></span><span class=\"field\"><b>Characters: </b>0:0</span><span class=\"field\text"><b>Stage: </b>null</span>"paris",
                            "textstartPos": "^"26,
                     "type": "vertex",
       "endPos": 31
                        }
                     "hash": 305419896
],
                     }"stage": "DictionaryTagger",
                    { "confidence": 0.6975,
                    "textdisplay": "-Air Paris",
                    "typematch": "paddingAir Paris",
                },
    "flags": [
           {
             "ENTITY",
       "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>who</span><span class=\"field\"><b>Characters: </b>0:3</span><span class=\"field\"><b>Confidence: </b>0.5</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ORIGINAL</span><span class=\"flag\">TOKEN</span><span class=\"flag\">ALL_LOWER_CASE</span></div></div>",
               "SEMANTIC_TAG"
                   "text": "[who]",
                    "typetext": "item{airline}",
                    "hashid": 1851608413
"34365531",
                    "startPos": }22,
                    { "endPos": 31,
                    "texttags": "-",
[
                       "type": "paddingairline"
                },
    ]
            {
    }
                "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b>\" \"</span><span class=\"field\"><b>Characters: </b>3:4</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ALL_WHITESPACE</span></div></div>",]
        }
    },
    {
        "data": {
            "textline": "V", [
                {
                    "typestage": "vertexWhitespaceTokenizer",
                    "hashconfidence": 610839760
0.5,
                     }"match": "I",
                    "flags": {[
                      "text":  "-ORIGINAL",
                    "type":    "paddingALL_UPPER_CASE",
                },
        "TOKEN"
        {
            ],
        "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>is</span><span class=\"field\"><b>Characters: </b>4:6</span><span class=\"field\"><b>Confidence: </b>0.4</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ORIGINAL</span><span class=\"flag\">SKIP</span><span class=\"flag\">TOKEN</span><span class=\"flag\">ALL_LOWER_CASE</span></div></div>"    "text": "I",
                    "startPos": 0,
                    "textendPos": "[is]",1
                },
    "type": "item",
           {
         "hash": 1221679425
          "stage": "WhitespaceTokenizer",
     },
                {"confidence": 0.5,
                    "textmatch": "-enjoy",
                    "typeflags": "padding"
[
                       } "ORIGINAL",
                       {
 "ALL_LOWER_CASE",
                     "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b>\" \"</span><span class=\"field\"><b>Characters: </b>6:7</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ALL_WHITESPACE</span></div></div>"TOKEN"
                    ],
                    "text": "Venjoy",
                    "typestartPos": "vertex"2,
                    "hashendPos": 6108397607
                },
                {
                    "stage": "WhitespaceTokenizer",
                    "textconfidence": 0.5,
                    "match": "-traveling",
                    "flags": [
       "type": "padding"
                }"ORIGINAL",
                 {
       "ALL_LOWER_CASE",
              "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>morgan</span><span class=\"field\"><b>Characters: </b>7:13</span><span class=\"field\"><b>Confidence: </b>0.5</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ORIGINAL</span><span class=\"flag\">PROCESSED</span><span class=\"flag\">TOKEN</span><span class=\"flag\">ALL_LOWER_CASE</span></div></div>"TOKEN"
                    ],
                    "text": "[morgan]traveling",
                    "typestartPos": "item"8,
                    "hashendPos": 192796468817
                },
                {
                    "textstage": "-WhitespaceTokenizer",
                    "typeconfidence": "padding"0.4,
                },
    "match": "with",
            {
        "flags": [
           "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b>\" \"</span><span class=\"field\"><b>Characters: </b>13:14</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ALL_WHITESPACE</span></div></div>",
       "ORIGINAL",
                      "text":  "VSTOP_WORD",
                       "type": "vertexALL_LOWER_CASE",
                        "hash": 610839760
TOKEN"
                    ],
     },
                {"text": "with",
                    "textstartPos": "-"18,
                    "typeendPos": "padding"22
                },
                {
                    "tooltipstage": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Matching: </b>freeman</span><span class=\"field\"><b>Characters: </b>14:21</span><span class=\"field\"><b>Confidence: </b>0.5</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ORIGINAL</span><span class=\"flag\">PROCESSED</span><span class=\"flag\">TOKEN</span><span class=\"flag\">ALL_LOWER_CASE</span></div></div>"WhitespaceTokenizer",
                    "confidence": 0.5,
                    "match": "Delta",
                    "textflags": "[freeman]",

                       "type": "itemORIGINAL",
                        "hash": 439037856
TOKEN",
                        },
"TITLE_CASE"
                    {],
                    "text": "-Delta",
                    "typestartPos": "padding"23,
                },
    "endPos": 28
            {
    }
            ],
    "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b>\"\"</span><span class=\"field\"><b>Characters: </b>21:21</span><span class=\"field\"><b>Stage: </b>SimpleReader</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">TEXT_BLOCK_SPLIT</span><span class=\"flag\">OVERFLOW_SPLIT</span><span class=\"flag\">SENTENCE_SPLIT</span></div></div>",       "matches": [
                {
                    "textstage": "^DictionaryTagger",
                    "typeconfidence": "vertex"0.44999999999999996,
                    "hashdisplay": 305419896
 "Delta Air Lines",
                     }"match": "Delta",
                {    "flags": [
                        "textENTITY":,
  " ",
                    "type": "paddingSEMANTIC_TAG"
                    }],
              ],
      "text": "{airline}",
     [
                {"id": "188920",
                    "textstartPos": "23,
                    "endPos": 28,
                    "typetags": "padding"[
                },
        "airline"
        {
                ]
    "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b>\" \"</span><span class=\"field\"><b>Characters: </b>6:7</span><span class=\"field\"><b>Stage: </b>WhitespaceTokenizer</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">ALL_WHITESPACE</span></div></div>",             }
             ]
       "text": "^", }
    }
]



Saga_rest_endpoint_legacy
Endpointsolution
MethodGET
  • Returns the information of the solution currently being used.
  • A solution is basically the set of Elasticsearch indices in use

Request Examples

Code Block
languagepowershell
themeFadeToGrey
curl --location --request GET 'http://localhost:${port}/${url}'

Response

Saga_json
        "_success": true,
    "typeelasticSearch": "vertex",{
            "retries": 3,
        "hashdelay": 6108397605,
                }"scheme": "http",
                {
       "hostnamesAndPorts": [
             "text": "------",localhost:9200"
         ],
           "typeindexName": "paddingpii",
                }"encryptionKey": "f123123##c#$#4GGVqFk7L9123123@*^",
        "timeout": 30
    },
   {
                    "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">LexItem</span><span class=\"field\"><b>Id: "display": "Saga"
Saga_rest_endpoint_legacy
Endpointinfo
MethodGET
  • Returns build-specific and configuration information about Saga
  • Build information contains title, vendor, version, build revision and date
  • Configuration information contains the solution (Elastic index) and providers configured at the moment

Request Examples

Code Block
languagepowershell
themeFadeToGrey
curl --location --request GET 'http://localhost:${port}/${url}'


Response

Saga_json
    "msg": "Saga API online",
    "_success": true,
    "buildInfo": {
        "Implementation-Title": "Saga Server",
        "Implementation-Build": "6b79d916e8ff9ad9efd742d4fbc8ce186f77c02d",
        "Implementation-Version": "1.2.2",
        "Implementation-Timestamp": "1609253821444",
        "Implementation-Vendor-Id": "com.accenture.saga",
</b>Q48337</span><span class=\"field\"><b>Display: </b>Morgan Freeman</span><span class=\"field\"><b>Patterns: </b>Morgan Freeman</span><span class=\"field\"><b>Matching: </b>morgan freeman</span><span class=\"field\"><b>Characters: </b>7:21</span><span class=\"field\"><b>Confidence: </b>0.004424129621858132</span><span class=\"field\"><b>Stage: </b>DictionaryTagger</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">SEMANTIC_TAG</span><span class=\"flag\">ENTITY</span></div><div class=\"fieldset\"><b>Tags</b><span class=\"tag\">human</span></div></div>",
            "Built-By": "mauricio.rizo.sandi",
        "textBuild-Jdk": "[{human}]11",
        "Implementation-Branch": "develop"
    },
       "typesolutions": "item",[
        {
            "hashelasticSearch": 439036637{
                }"retries": 3,
                 {
    "delay": 5,
                "textscheme": "-------http",
                    "typehostnamesAndPorts": "padding"[
                },
     "localhost:9200"
           {
     ],
               "tooltip": "<div class=\"li-tooltip\"><span class=\"type\">Vertex</span><span class=\"field\"><b>Text: </b>\"\"</span><span class=\"field\"><b>Characters: </b>21:21</span><span class=\"field\"><b>Stage: </b>SimpleReader</span><div class=\"fieldset\"><b>Flags</b><span class=\"flag\">TEXT_BLOCK_SPLIT</span><span class=\"flag\">OVERFLOW_SPLIT</span><span class=\"flag\">SENTENCE_SPLIT</span></div></div>",
       "indexName": "pii",
                "encryptionKey": "f123123##c#$#4GGVqFk7L9123123@*^",
                "texttimeout": "^",
30
            },
            "typedisplay": "vertexSaga",
        }
    ],
    "exportSettings": {
        "hashmaxSize": 30541989640,
        "batchSize": 5000
    },
    "ssl": }false,
    "providers": [
        {
    {
        "baseDir": "./config",
            "textname": " filesystem-provider",
                    "typeencryptionKey": "paddingf123123##c#$#4GGVqFk7L9123123@*^",
            "type": "FileSystem"
    }
    },
        ]{
        ]
     }

Saga_rest_endpoint
Endpointsolution
MethodGET

Returns the information of the solution currently being used. A solution is basically the set of Elasticsearch indices in use.

Request Examples

Code Block
languagepowershell
themeFadeToGrey
curl -X ${method} \
  http://localhost:${port}/${url} \
  -H 'Content-Type: application/json' \
  -d '
{
}'

Response

Saga_json
    "_success": true,
    "elasticSearch": {
"scheme": "http",
            "hostnamesAndPorts": [
                "localhost:9200"
            ],
            "scrollTimeoutname": "1msaga-provider",
            "hostnameexclude": "localhost",
[
                "debugupdatedAt": false,
              "scheme":  "httpcreatedAt",
           "size": 100],
            "portencryptionKey": 9200"f123123##c#$#4GGVqFk7L9123123@*^",
            "maxResultstype": 100000"Elastic",
            "indexNametimestamp": "saga"
updatedAt"
        },
    "display": "Saga - EN"]

Saga_rest_endpoint_legacy
EndpointstopServer
MethodGET
  • Stops the Saga Server
Warning

If you stop the server via HTTP request, it can only be restarted on-premise


Request Examples

Code Block
languagepowershell
themeFadeToGrey
curl --location --request GET 'http://localhost:${port}/${url}'


Response