{"id":698,"date":"2023-05-30T22:13:33","date_gmt":"2023-05-30T22:13:33","guid":{"rendered":"https:\/\/baldsolutions.com\/?p=698"},"modified":"2023-06-13T21:57:02","modified_gmt":"2023-06-13T21:57:02","slug":"elasticsearcher-quick-querying-the-elasticsearch","status":"publish","type":"post","link":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/","title":{"rendered":"ElasticSearcher &#8211; quick-querying the Elasticsearch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Introduction<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/index.html\" target=\"_blank\" rel=\"noopener\" title=\"\">Elasticsearch<\/a> is a powerful search engine and as a software engineer I have that pleasure to use it regularly.  Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great to have a lightweight CLI tool to query the Elasticsearch just for basic stuff like e.g. document content or aliases for a given index. For this reason I created and published the CLI tool for quick-querying the Elasticsearch &#8211; ElasticSearcher. <\/p>\n\n\n\n<h1 class=\"wp-block-heading\">ElasticSearcher<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">The ElasticSearcher tool is available on my <a href=\"https:\/\/github.com\/tglowka\/elasticsearcher\" target=\"_blank\" rel=\"noopener\" title=\"\">GitHub<\/a> &#8211; there is a README.md file so if you are interested in reading a bit more about the tool please refer to the repository. You can install the tool from the <a href=\"https:\/\/www.nuget.org\/packages\/BaldSolutions.ElasticSearcher\" target=\"_blank\" rel=\"noopener\" title=\"\">NuGet<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main advantage of the tool is that it can be easily used from the terminal &#8211; no need to open browser or any other additional window. From my perspective the terminal is always up during my worktime so having such a tool on hand seems to be quite handy.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Conclusion<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Unless I find the tool pointless, I plan to add more and more stuff to the tool over time. <br>I would be grateful for any suggestions\/ideas or contribution in general. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have a nice day, bye!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/\">Continue reading<span class=\"screen-reader-text\">ElasticSearcher &#8211; quick-querying the Elasticsearch<\/span><\/a><\/div>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,12,14],"tags":[],"class_list":["post-698","post","type-post","status-publish","format-standard","hentry","category-net","category-elasticsearch","category-elasticsearcher","entry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tomasz\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Bald Solutions -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"ElasticSearcher \u2013 quick-querying the Elasticsearch - Bald Solutions\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-05-30T22:13:33+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-06-13T21:57:02+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"ElasticSearcher \u2013 quick-querying the Elasticsearch - Bald Solutions\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#blogposting\",\"name\":\"ElasticSearcher \\u2013 quick-querying the Elasticsearch - Bald Solutions\",\"headline\":\"ElasticSearcher &#8211; quick-querying the Elasticsearch\",\"author\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/author\\\/tomasz3396\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/#organization\"},\"datePublished\":\"2023-05-30T22:13:33+00:00\",\"dateModified\":\"2023-06-13T21:57:02+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#webpage\"},\"articleSection\":\".NET, Elasticsearch, ElasticSearcher\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/baldsolutions.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/baldsolutions.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/category\\\/net\\\/#listItem\",\"name\":\".NET\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/category\\\/net\\\/#listItem\",\"position\":2,\"name\":\".NET\",\"item\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/category\\\/net\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#listItem\",\"name\":\"ElasticSearcher &#8211; quick-querying the Elasticsearch\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/baldsolutions.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#listItem\",\"position\":3,\"name\":\"ElasticSearcher &#8211; quick-querying the Elasticsearch\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/category\\\/net\\\/#listItem\",\"name\":\".NET\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/#organization\",\"name\":\"Bald Solutions\",\"url\":\"https:\\\/\\\/baldsolutions.com\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/author\\\/tomasz3396\\\/#author\",\"url\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/author\\\/tomasz3396\\\/\",\"name\":\"Tomasz\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d72f2f7f389921b820e5ef7c2880172fc2b9ae47698a933356df224581de0cc7?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tomasz\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#webpage\",\"url\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/\",\"name\":\"ElasticSearcher \\u2013 quick-querying the Elasticsearch - Bald Solutions\",\"description\":\"Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/2023\\\/05\\\/30\\\/elasticsearcher-quick-querying-the-elasticsearch\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/author\\\/tomasz3396\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/index.php\\\/author\\\/tomasz3396\\\/#author\"},\"datePublished\":\"2023-05-30T22:13:33+00:00\",\"dateModified\":\"2023-06-13T21:57:02+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/#website\",\"url\":\"https:\\\/\\\/baldsolutions.com\\\/\",\"name\":\"Bald Solutions\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/baldsolutions.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"ElasticSearcher \u2013 quick-querying the Elasticsearch - Bald Solutions","description":"Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great","canonical_url":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#blogposting","name":"ElasticSearcher \u2013 quick-querying the Elasticsearch - Bald Solutions","headline":"ElasticSearcher &#8211; quick-querying the Elasticsearch","author":{"@id":"https:\/\/baldsolutions.com\/index.php\/author\/tomasz3396\/#author"},"publisher":{"@id":"https:\/\/baldsolutions.com\/#organization"},"datePublished":"2023-05-30T22:13:33+00:00","dateModified":"2023-06-13T21:57:02+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#webpage"},"isPartOf":{"@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#webpage"},"articleSection":".NET, Elasticsearch, ElasticSearcher"},{"@type":"BreadcrumbList","@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/baldsolutions.com#listItem","position":1,"name":"Home","item":"https:\/\/baldsolutions.com","nextItem":{"@type":"ListItem","@id":"https:\/\/baldsolutions.com\/index.php\/category\/net\/#listItem","name":".NET"}},{"@type":"ListItem","@id":"https:\/\/baldsolutions.com\/index.php\/category\/net\/#listItem","position":2,"name":".NET","item":"https:\/\/baldsolutions.com\/index.php\/category\/net\/","nextItem":{"@type":"ListItem","@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#listItem","name":"ElasticSearcher &#8211; quick-querying the Elasticsearch"},"previousItem":{"@type":"ListItem","@id":"https:\/\/baldsolutions.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#listItem","position":3,"name":"ElasticSearcher &#8211; quick-querying the Elasticsearch","previousItem":{"@type":"ListItem","@id":"https:\/\/baldsolutions.com\/index.php\/category\/net\/#listItem","name":".NET"}}]},{"@type":"Organization","@id":"https:\/\/baldsolutions.com\/#organization","name":"Bald Solutions","url":"https:\/\/baldsolutions.com\/"},{"@type":"Person","@id":"https:\/\/baldsolutions.com\/index.php\/author\/tomasz3396\/#author","url":"https:\/\/baldsolutions.com\/index.php\/author\/tomasz3396\/","name":"Tomasz","image":{"@type":"ImageObject","@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d72f2f7f389921b820e5ef7c2880172fc2b9ae47698a933356df224581de0cc7?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tomasz"}},{"@type":"WebPage","@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#webpage","url":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/","name":"ElasticSearcher \u2013 quick-querying the Elasticsearch - Bald Solutions","description":"Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/baldsolutions.com\/#website"},"breadcrumb":{"@id":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/#breadcrumblist"},"author":{"@id":"https:\/\/baldsolutions.com\/index.php\/author\/tomasz3396\/#author"},"creator":{"@id":"https:\/\/baldsolutions.com\/index.php\/author\/tomasz3396\/#author"},"datePublished":"2023-05-30T22:13:33+00:00","dateModified":"2023-06-13T21:57:02+00:00"},{"@type":"WebSite","@id":"https:\/\/baldsolutions.com\/#website","url":"https:\/\/baldsolutions.com\/","name":"Bald Solutions","inLanguage":"en-US","publisher":{"@id":"https:\/\/baldsolutions.com\/#organization"}}]},"og:locale":"en_US","og:site_name":"Bald Solutions -","og:type":"article","og:title":"ElasticSearcher \u2013 quick-querying the Elasticsearch - Bald Solutions","og:description":"Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great","og:url":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/","article:published_time":"2023-05-30T22:13:33+00:00","article:modified_time":"2023-06-13T21:57:02+00:00","twitter:card":"summary","twitter:title":"ElasticSearcher \u2013 quick-querying the Elasticsearch - Bald Solutions","twitter:description":"Introduction Elasticsearch is a powerful search engine and as a software engineer I have that pleasure to use it regularly. Few weeks ago I had an implementation to do related to the communication with Elasticsearch and I had to query it quite often. Once I finished the task I realised that it would be great"},"aioseo_meta_data":{"post_id":"698","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":0,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-05-30 22:05:33","updated":"2025-06-04 05:28:42","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/baldsolutions.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/baldsolutions.com\/index.php\/category\/net\/\" title=\".NET\">.NET<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tElasticSearcher \u2013 quick-querying the Elasticsearch\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/baldsolutions.com"},{"label":".NET","link":"https:\/\/baldsolutions.com\/index.php\/category\/net\/"},{"label":"ElasticSearcher &#8211; quick-querying the Elasticsearch","link":"https:\/\/baldsolutions.com\/index.php\/2023\/05\/30\/elasticsearcher-quick-querying-the-elasticsearch\/"}],"_links":{"self":[{"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/posts\/698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/comments?post=698"}],"version-history":[{"count":5,"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/posts\/698\/revisions"}],"predecessor-version":[{"id":703,"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/posts\/698\/revisions\/703"}],"wp:attachment":[{"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/media?parent=698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/categories?post=698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/baldsolutions.com\/index.php\/wp-json\/wp\/v2\/tags?post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}