Alternate Way to Query the Search Server
search cancel

Alternate Way to Query the Search Server

book

Article ID: 271461

calendar_today

Updated On:

Products

CA Service Desk Manager CA Service Management - Service Desk Manager

Issue/Introduction

The ElasticSearchHead extension for Chrome is recommended to query the search server and see if a certain keyword is reflected there. 

If installing the extension is not possible, is there another way to query the search server?

Environment

CA Service Management 17.3 and 17.4

Resolution

  1. Need a REST client, like POSTMAN, to make calls to the search server
  2. By default, Elastic Search server is installed on port 9012
  3. Get the index name using the following GET call:
    GET http://localhost:9012/_cat/indices


  4. Search for keyword on this index by making the following REST call:
    GET http://localhost:9012/catalog_index_service_offering_1690275463/_search/

Request Body (JSON):
{
  "query": {
    "regexp": {
      "options.keywords": {
        "value": "Correo",
        "flags": "ALL",
        "case_insensitive": true,
        "max_determinized_states": 10000,
        "rewrite": "constant_score"
      }
    }
  }
}

It should return list of offerings that have the keywords