{"id":24227,"date":"2023-03-31T16:12:48","date_gmt":"2023-03-31T14:12:48","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=24227"},"modified":"2023-03-31T16:12:48","modified_gmt":"2023-03-31T14:12:48","slug":"elasticsearch-is-case-sensitive-or-insensitive","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/","title":{"rendered":"Elasticsearch: is case-sensitive or insensitive?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">One more blog in the Elasticsearch series (blogs list at<strong> <\/strong>the bottom), this time we will try to learn more together about indexing and search, more specifically answer the question: is Elasticsearch case-sensitive or case-insensitive?<\/p>\n\n\n\n\n\n\n\n<p class=\"wp-block-paragraph\">To be honest, I had this question as a beginner and rapidly noticed that there are two sides to answer it. First the indexing, is it case-sensitive? How Elasticsearch behave to index a new document?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, the search, is it case-sensitive? How Elasticsearch behave to find and select document(s)?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Use case<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s first understand the default behavior, then we will see together how to adapt it to our need.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I will take the same example as my <a href=\"https:\/\/www.dbi-services.com\/blog\/elasticsearch-index-document-and-search\/\" target=\"_blank\" rel=\"noreferrer noopener\">previous blog<\/a>, I created the below document:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; notranslate\">\n{\n  &quot;title&quot;: &quot;Index data with Elastic&quot;,\n  &quot;category&quot;: &quot;User Stories&quot;,\n  &quot;author&quot;: {\n    &quot;first_name&quot;: &quot;David&quot;,\n    &quot;last_name&quot;: &quot;Diab&quot;\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Then, I searched for &#8220;Index&#8221; in the title field:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"645\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1.png\" alt=\"\" class=\"wp-image-24228\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1-300x189.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1-768x484.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s redo the same search but with &#8220;index&#8221; in lowercase, we get the same result:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-34-1024x618.png\" alt=\"\" class=\"wp-image-24229\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-34-1024x618.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-34-300x181.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-34-768x463.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-34.png 1261w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Why?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Indexing default behavior<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Based on above example, indexing and searches seem to be case-insensitive! In fact, this is due to a process called text analysis which occurs when your string fields are indexed. At index time, text strings are analyzed, by default, text analysis breaks up a text string into individual words (tokens) and lowercase those words, e.g.:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-35.png\" alt=\"\" class=\"wp-image-24230\" width=\"204\" height=\"157\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Search default behavior<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Your query string is analyzed too, it makes search case-insensitive by default. An example is more than welcome to better understand:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"313\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-36.png\" alt=\"\" class=\"wp-image-24232\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-36.png 732w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-36-300x128.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Please note that Elasticsearch calculates a score for each document found, which represent how relevant a document is in regards to the specific query. Elasticsearch uses BM25 as default scoring algorithm. We will discuss more about that in a next blog \ud83d\ude09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to change the default behavior?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Analyzers<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Text analysis is done by an analyzer, by default, Elasticsearch applies the standard analyzer. But, there are many other analyzers: whitespace, stop, pattern, language-specific analyzers, and much more.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In reality, the built-in analyzers work great for many use cases, but you may need to define your own custom analyzers which is possible with Elasticsearch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Text and Keyword<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Text analysis is great for full text search, which enables you to search for individual words in a case-insensitive manner. But, we understood from the example that some strings do not need to be analyzed, instead of &#8220;united&#8221; and &#8220;states&#8221; as separate values, we probably want to search &#8220;United States&#8221; as it is&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That is why Elasticsearch has two kinds of string data types:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>text (for full-text search): which is analyzed<\/li>\n\n\n\n<li>keyword (for exact searches): which is not analyzed<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can configure mapping depending on your need, but you have to know that Elasticsearch will give you both (text and keyword) by default. Let&#8217;s come back to our example and search for &#8220;index&#8221; in title.keyword:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"360\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-37-1024x360.png\" alt=\"\" class=\"wp-image-24233\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-37-1024x360.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-37-300x105.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-37-768x270.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-37.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">No document has been found, know let&#8217;s search for the exact content of title field:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"588\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-38-1024x588.png\" alt=\"\" class=\"wp-image-24234\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-38-1024x588.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-38-300x172.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-38-768x441.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-38.png 1090w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Our document has been found now as it match exactly the title field value!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We can now answer the question, saying that Elasticsearch is case-insensitive by default. There are many ways to change this behavior if it doesn&#8217;t match your need.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In next blogs, we will see together more about mappings and analyzers. In the meantime, don&#8217;t hesitate please ask questions and give your feedback if you are already using Elasticsearch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Related topics:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.dbi-services.com\/blog\/elasticsearch-index-document-and-search\/\" target=\"_blank\" rel=\"noreferrer noopener\">Elasticsearch \u2013 Index, document, and search<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.dbi-services.com\/blog\/elasticsearch-data-lifecycle-management\/\" target=\"_blank\" rel=\"noreferrer noopener\">Elasticsearch \u2013 Data lifecycle management<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.dbi-services.com\/blog\/elastic-elk-stack-set-up-elasticsearch\/\" target=\"_blank\" rel=\"noreferrer noopener\">Elastic (ELK) Stack \u2013 Set up Elasticsearch<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One more blog in the Elasticsearch series (blogs list at the bottom), this time we will try to learn more together about indexing and search, more specifically answer the question: is Elasticsearch case-sensitive or case-insensitive? To be honest, I had this question as a beginner and rapidly noticed that there are two sides to answer&hellip;&nbsp;<\/p>\n","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4134,1320],"tags":[86,87,91,556],"class_list":["post-24227","post","type-post","status-publish","format-standard","category-application-server","category-devops","tag-elasticsearch","tag-elk","tag-index","tag-search"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Elasticsearch: is case-sensitive or insensitive? - dbi services Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Elasticsearch: is case-sensitive or insensitive?\" \/>\n<meta property=\"og:description\" content=\"One more blog in the Elasticsearch series (blogs list at the bottom), this time we will try to learn more together about indexing and search, more specifically answer the question: is Elasticsearch case-sensitive or case-insensitive? To be honest, I had this question as a beginner and rapidly noticed that there are two sides to answer&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-31T14:12:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"645\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"David Diab\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Diab\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/\"},\"author\":{\"name\":\"David Diab\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bd645301427dc811a22ddd641e945966\"},\"headline\":\"Elasticsearch: is case-sensitive or insensitive?\",\"datePublished\":\"2023-03-31T14:12:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/\"},\"wordCount\":564,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/image-33-1024x645-1.png\",\"keywords\":[\"Elasticsearch\",\"ELK\",\"index\",\"Search\"],\"articleSection\":[\"Application Server\",\"DevOps\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/\",\"name\":\"Elasticsearch: is case-sensitive or insensitive? - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/image-33-1024x645-1.png\",\"datePublished\":\"2023-03-31T14:12:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/image-33-1024x645-1.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/image-33-1024x645-1.png\",\"width\":1024,\"height\":645},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-is-case-sensitive-or-insensitive\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elasticsearch: is case-sensitive or insensitive?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bd645301427dc811a22ddd641e945966\",\"name\":\"David Diab\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/DDI_web-min-scaled.jpg\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/DDI_web-min-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/DDI_web-min-scaled.jpg\",\"caption\":\"David Diab\"},\"description\":\"David Diab has more than 10 years of experience deploying and administering enterprise applications. His expertise spans Elastic Stack, WebLogic, JBoss, Tomcat, and Documentum, plus DevOps tooling (Kubernetes, CI\\\/CD), scheduling solutions (Control-M, Dollar Universe), backup (NetBackup, Backup Exec), and file transfer (CFT). He holds certifications including Elastic Certified Engineer, OpenText Certified Documentum Administrator, Oracle Certified Professional WebLogic Server 12c, Certified Kubernetes Administrator, and ITIL V3 Foundation. Prior to dbi services, David worked as Integration and Operations Engineer at PSA Peugeot Citro\u00ebn and at Atos. He holds an Engineering degree in Computer Science from UTBM. His industry experience covers automotive, banking, cosmetics, pharmaceutical, insurance, and chemical sectors.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/david-diab\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Elasticsearch: is case-sensitive or insensitive? - dbi services Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/","og_locale":"en_US","og_type":"article","og_title":"Elasticsearch: is case-sensitive or insensitive?","og_description":"One more blog in the Elasticsearch series (blogs list at the bottom), this time we will try to learn more together about indexing and search, more specifically answer the question: is Elasticsearch case-sensitive or case-insensitive? To be honest, I had this question as a beginner and rapidly noticed that there are two sides to answer&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2023-03-31T14:12:48+00:00","og_image":[{"width":1024,"height":645,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1.png","type":"image\/png"}],"author":"David Diab","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"David Diab","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/"},"author":{"name":"David Diab","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bd645301427dc811a22ddd641e945966"},"headline":"Elasticsearch: is case-sensitive or insensitive?","datePublished":"2023-03-31T14:12:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/"},"wordCount":564,"commentCount":1,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1.png","keywords":["Elasticsearch","ELK","index","Search"],"articleSection":["Application Server","DevOps"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/","url":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/","name":"Elasticsearch: is case-sensitive or insensitive? - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1.png","datePublished":"2023-03-31T14:12:48+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/03\/image-33-1024x645-1.png","width":1024,"height":645},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-is-case-sensitive-or-insensitive\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Elasticsearch: is case-sensitive or insensitive?"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bd645301427dc811a22ddd641e945966","name":"David Diab","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/09\/DDI_web-min-scaled.jpg","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/09\/DDI_web-min-scaled.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/09\/DDI_web-min-scaled.jpg","caption":"David Diab"},"description":"David Diab has more than 10 years of experience deploying and administering enterprise applications. His expertise spans Elastic Stack, WebLogic, JBoss, Tomcat, and Documentum, plus DevOps tooling (Kubernetes, CI\/CD), scheduling solutions (Control-M, Dollar Universe), backup (NetBackup, Backup Exec), and file transfer (CFT). He holds certifications including Elastic Certified Engineer, OpenText Certified Documentum Administrator, Oracle Certified Professional WebLogic Server 12c, Certified Kubernetes Administrator, and ITIL V3 Foundation. Prior to dbi services, David worked as Integration and Operations Engineer at PSA Peugeot Citro\u00ebn and at Atos. He holds an Engineering degree in Computer Science from UTBM. His industry experience covers automotive, banking, cosmetics, pharmaceutical, insurance, and chemical sectors.","url":"https:\/\/www.dbi-services.com\/blog\/author\/david-diab\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/24227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=24227"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/24227\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=24227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=24227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=24227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}