{"id":8342,"date":"2020-03-23T12:07:56","date_gmt":"2020-03-23T19:07:56","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=8342"},"modified":"2024-03-26T09:39:54","modified_gmt":"2024-03-26T16:39:54","slug":"json-case-sensitive-insensitive-search-index-data","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/json-case-sensitive-insensitive-search-index-data\/","title":{"rendered":"JSON\uc740 \ub300\uc18c\ubb38\uc790\ub97c \uad6c\ubd84\ud569\ub2c8\ub2e4. \uaf2d \uadf8\ub7f4 \ud544\uc694\ub294 \uc5c6\uc2b5\ub2c8\ub2e4."},"content":{"rendered":"<blockquote><p>A RoSe by any other case would smell as sweet. <a href=\"https:\/\/en.wikipedia.org\/wiki\/A_rose_by_any_other_name_would_smell_as_sweet\">William Shakespeare<\/a><\/p><\/blockquote>\n<p><span style=\"font-weight: 400\">You must have learned <\/span><a href=\"https:\/\/www.grammarly.com\/blog\/capitalization-rules\/\"><span style=\"font-weight: 400\">capitalization rules<\/span><\/a><span style=\"font-weight: 400\"> in your grammar school, but the real-world search is not so sensitive to capitalization. Charles de Gaulle uses lower case for the middle \u201cde\u201d, Tony La Russa uses upper case for \u201cLa\u201d &#8211; there may be etymological reasons for it, but it&#8217;s unlikely for your customer service agent to remember.\u00a0\u00a0 <\/span><span style=\"font-weight: 400\">Databases have a variety of sensitivities.\u00a0 SQL, by default, is case insensitive to identifiers and keywords, but case sensitive to data. <\/span>JSON is case sensitive to both field names and data.\u00a0 So is N1QL.\u00a0\u00a0JSON can have the following. N1QL will select-join-project each field and value as a distinct field and value.<\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">SELECT {\"City\": \"San Francisco\", \"city\": \"san francisco\", \"citY\": \"saN fanciscO\"}\r\n\r\n[\r\n  {\r\n    \"$1\": {\r\n      \"City\": \"San Francisco\",\r\n      \"citY\": \"saN fanciscO\",\r\n      \"city\": \"san francisco\"\r\n    }\r\n  }\r\n]<\/pre>\n<p>In this article, we&#8217;ll discuss dealing with <strong>data case sensitivity<\/strong>. Your field references are still <strong>case sensitive<\/strong>. If you use the wrong case for the field name, N1QL assumes this is a missing field and assigns MISSING value to that field.<\/p>\n<p>Let&#8217;s consider a simple predicate in N1QL to lookup all permutations of cases.<\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]\r\n<\/pre>\n<p><span style=\"font-weight: 400\">This requires seven different lookups into the index.\u00a0 &#8220;John&#8221; requires more index lookups and &#8220;Fitzerald&#8221; requires even more. <\/span><span style=\"font-weight: 400\">There is a standard way to do this. Simply create an index by lowering the case of the field and the literal.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">WHERE LOWER(name) = \u201cjoe\u201d<\/pre>\n<p><span style=\"font-weight: 400\">This lookup can be made faster by creating the index with the right expression.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">CREATE INDEX i1 ON customer(LOWER(name));<\/pre>\n<p><span style=\"font-weight: 400\">Ensure that your query is picking up the right index and pushes the predicate to the index scan. And that\u2019s the idea. Queries that have predicates pushed to the index scan run much faster than the queries that won\u2019t.\u00a0 This is true for predicates and true <a href=\"https:\/\/www.couchbase.com\/blog\/understanding-index-grouping-aggregation-couchbase-n1ql-query\/\">aggregate pushdown<\/a> as well.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">EXPLAIN SELECT * FROM `customer` WHERE LOWER(name) = \"joe\";\r\n\r\n      {\r\n        \"#operator\": \"IndexScan3\",\r\n        \"index\": \"i1\",\r\n        \"index_id\": \"c117bdf583c2e276\",\r\n        \"index_projection\": {\r\n          \"primary_key\": true\r\n        },\r\n        \"keyspace\": \"customer\",\r\n        \"namespace\": \"default\",\r\n        \"spans\": [\r\n          {\r\n            \"exact\": true,\r\n            \"range\": [\r\n              {\r\n                \"high\": \"\\\"joe\\\"\",\r\n                \"inclusion\": 3,\r\n                \"low\": \"\\\"joe\\\"\"\r\n              }\r\n            ]\r\n          }\r\n        ],<\/pre>\n<h5><strong>Case insensitivity in a composite index scenario.<\/strong><\/h5>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">WHERE LOWER(name) = \u201cjoe\u201d \r\nAND zip = 94821 \r\nAND salary &gt; 500 \r\nAND join_date &lt;= \u201c2017-01-01\u201d \r\nAND LOWER(county) LIKE \u201csan%\u201d<\/pre>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">CREATE INDEX i2 ON customer(LOWER(name), \r\n                            zip, \r\n                            LOWER(county), \r\n                            join_date, \r\n                            salary)<\/pre>\n<h5><strong>Case insensitivity in Array functions.<\/strong><\/h5>\n<p><a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-language-reference\/stringfun.html\"><span style=\"font-weight: 400\">String functions<\/span><\/a><span style=\"font-weight: 400\"> like SPLIT(), SUFFIXES(), many of the <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-language-reference\/arrayfun.html\"><span style=\"font-weight: 400\">array functions<\/span><\/a><span style=\"font-weight: 400\"> and <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-language-reference\/objectfun.html\"><span style=\"font-weight: 400\">object functions<\/span><\/a><span style=\"font-weight: 400\"> do return arrays. So how do you use them in a case insensitive way?<\/span><\/p>\n<p><span style=\"font-weight: 400\">We follow the same principle as before.\u00a0 Create an expression to lower case the values first before you process them via these functions.\u00a0<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true \">SELECT SPLIT(\"Good Morning, Joe\") as splitresult;\r\n    \"splitresult\": [\r\n      \"Good\",\r\n      \"Morning,\",\r\n      \"Joe\"\r\n    ]\r\n\r\nSELECT SPLIT(LOWER(\u201cGood Morning, Joe\u201d));\r\n    \"splitresult\": [\r\n      \"good\",\r\n      \"morning,\",\r\n      \"joe\"\r\n    ]\r\n<\/pre>\n<p><span style=\"font-weight: 400\">Now, what you really want is to filter based on a value within the string.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true \">WHERE\u00a0 LOWER(xyz) LIKE \u201c%good%\u201d;<\/pre>\n<p><span style=\"font-weight: 400\">This is probably the worst predicate in SQL &#8212; in terms of performance.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true \">SELECT * FROM customer\r\nWHERE\u00a0 x IN SPLIT(LOWER(xyz)) SATISFIES x = \u201cgood\u201d END<\/pre>\n<p><span style=\"font-weight: 400\">Now, what index would you create for this?\u00a0 <a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/n1ql\/n1ql-language-reference\/advise.html\">ADVISE<\/a> comes in handy.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">CREATE INDEX adv_DISTINCT_split_lower_xyz ON `customer`\r\n           (DISTINCT ARRAY `x` FOR x in split(lower((`xyz`))) END)<\/pre>\n<p>As usual, verify your explain.<\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">        {\r\n            \"#operator\": \"DistinctScan\",\r\n            \"scan\": {\r\n                \"#operator\": \"IndexScan3\",\r\n                \"index\": \"adv_DISTINCT_split_lower_xyz\",\r\n                \"index_id\": \"552ab6c643616fbc\",\r\n                \"index_projection\": {\r\n                    \"primary_key\": true\r\n                },\r\n                \"keyspace\": \"customer\",\r\n                \"namespace\": \"default\",\r\n                \"spans\": [\r\n                    {\r\n                        \"exact\": true,\r\n                        \"range\": [\r\n                            {\r\n                                \"high\": \"\\\"good\\\"\",\r\n                                \"inclusion\": 3,\r\n                                \"low\": \"\\\"good\\\"\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n<\/pre>\n<p><span style=\"font-weight: 400\">If you\u2019d like to UNNEST and have a simple WHERE clause, use this query. Always verify your explain to ensure the predicates are pushed to index scan.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">SELECT * FROM customer\u00a0 \r\n              UNNEST SPLIT(LOWER(xyz)) AS x \r\nWHERE \u00a0 x = \"good\"<\/pre>\n<h5><strong>Using Tokens\u00a0<\/strong><\/h5>\n<p><span style=\"font-weight: 400\">TOKENS() function makes it simple to get the lower case by taking that option as an argument.\u00a0 See the article <\/span><a href=\"https:\/\/dzone.com\/articles\/more-than-like-efficient-json-search-with-couchbas\"><span style=\"font-weight: 400\">More Than LIKE: Efficient JSON Searching With N1QL<\/span><\/a><span style=\"font-weight: 400\"> for details and examples<\/span><\/p>\n<h5><strong>Complex expressions.<\/strong><\/h5>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true \">SELECT *\u00a0\r\n\r\nFROM customer\r\nWHERE lower(fname) || lower(mname) || lower(lname) = \u201cJoeMSmith\u201d<\/pre>\n<p><span style=\"font-weight: 400\">How could we optimize this?\u00a0 Index Advisor to the rescue. Again.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">CREATE INDEX adv_lower_fname_concat_lower_mname_concat_lower_lname \r\n  ON `customer`(lower((`fname`))||lower((`mname`))||lower((`lname`)))<\/pre>\n<p><span style=\"font-weight: 400\">Explain to confirm the plan:<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">       {\r\n            \"#operator\": \"IndexScan3\",\r\n            \"index\": \"adv_lower_fname_concat_lower_mname_concat_lower_lname\",\r\n            \"index_id\": \"aaa14cbdf14e9cd8\",\r\n            \"index_projection\": {\r\n                \"primary_key\": true\r\n            },\r\n            \"keyspace\": \"customer\",\r\n            \"namespace\": \"default\",\r\n            \"spans\": [\r\n                {\r\n                    \"exact\": true,\r\n                    \"range\": [\r\n                        {\r\n                            \"high\": \"\\\"JoeMSmith\\\"\",\r\n                            \"inclusion\": 3,\r\n                            \"low\": \"\\\"JoeMSmith\\\"\"\r\n                        }\r\n                    ]\r\n                }\r\n            ],\r\n            \"using\": \"gsi\"\r\n        },\r\n<\/pre>\n<h4><strong>Bringing in the Big Guns: Full-Text Search<\/strong><\/h4>\n<p>As you&#8217;ve realized, this is a text processing and querying problem. FTS can scan, store, search text in various ways.\u00a0 Case insensitive search is one of them. Let&#8217;s see the plan for a simple search query.<\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true\">select * from customer\r\nwhere search (name, \"joe\")\r\n\r\n  \"~children\": [\r\n        {\r\n            \"#operator\": \"PrimaryScan3\",\r\n            \"index\": \"#primary\",\r\n            \"index_projection\": {\r\n                \"primary_key\": true\r\n            },\r\n            \"keyspace\": \"customer\",\r\n            \"namespace\": \"default\",\r\n            \"using\": \"gsi\"\r\n        },\r\n        {\r\n            \"#operator\": \"Fetch\",\r\n            \"keyspace\": \"customer\",\r\n            \"namespace\": \"default\"\r\n        },\r\n        {\r\n            \"#operator\": \"Parallel\",\r\n            \"~child\": {\r\n                \"#operator\": \"Sequence\",\r\n                \"~children\": [\r\n                    {\r\n                        \"#operator\": \"Filter\",\r\n                        \"condition\": \"search((`customer`.`name`), \\\"joe\\\")\"\r\n                    },\r\n                    {\r\n                        \"#operator\": \"InitialProject\",\r\n                        \"result_terms\": [\r\n                            {\r\n                                \"expr\": \"self\",\r\n                                \"star\": true\r\n                         }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}\r\n<\/pre>\n<p><span style=\"font-weight: 400\">This is NOT the plan you want\u2026This is using a primary scan!<\/span><\/p>\n<p><span style=\"font-weight: 400\">After creating the text index on the bucket customer, things are much better:<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true \">select * from customer\r\nwhere search (name, \"joe\")\r\n\r\n{\r\n    \"#operator\": \"Sequence\",\r\n    \"~children\": [\r\n        {\r\n            \"#operator\": \"IndexFtsSearch\",\r\n            \"index\": \"trname\",\r\n            \"index_id\": \"3bdb61e5010e8838\",\r\n            \"keyspace\": \"customer\",\r\n            \"namespace\": \"default\",\r\n            \"search_info\": {\r\n                \"field\": \"\\\"`name`\\\"\",\r\n                \"outname\": \"out\",\r\n                \"query\": \"\\\"joe\\\"\"\r\n            },\r\n            \"using\": \"fts\"\r\n        },\r\n<\/pre>\n<p><span style=\"font-weight: 400\">The default standard analyzer lowers all the tokens and therefore you\u2019ll find all the \u201cjoe\u201ds : JOE, joe, Joe, JOe, etc.\u00a0 \u00a0You can define a custom analyzer and provide specific instruction to lowercase the tokens.\u00a0 Here&#8217;s an example.<\/span><\/p>\n<pre class=\"theme:neon font-size:17 line-height:20 lang:mysql decode:true \"> \"mapping\": {\r\n   \"analysis\": {\r\n    \"analyzers\": {\r\n     \"mylower\": {\r\n      \"token_filters\": [\r\n       \"to_lower\"\r\n      ],\r\n      \"tokenizer\": \"unicode\",\r\n      \"type\": \"custom\"\r\n     }\r\n    }\r\n   },\r\n<\/pre>\n<p>Here&#8217;s how you add it in the UI.\u00a0 See fine blog <a href=\"https:\/\/dzone.com\/articles\/8-ways-to-customize-couchbase-full-text-search-ind-1\" target=\"_blank\" rel=\"noopener noreferrer\">8 Ways to Customize Couchbase Full-Text Search Indexes<\/a> for details on various ways to customize the FTS index.<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8343 alignleft\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM-300x265.png\" alt=\"\" width=\"300\" height=\"265\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM-300x265.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM-1024x906.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM-768x679.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM-20x18.png 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM.png 1178w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A RoSe by any other case would smell as sweet. William Shakespeare You must have learned capitalization rules in your grammar school, but the real-world search is not so sensitive to capitalization. Charles de Gaulle uses lower case for the [&hellip;]<\/p>\n","protected":false},"author":55,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"ppma_author":[8929],"class_list":["post-8342","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Is JSON Case Sensitive or Not? | Upper + Lowercase Sensitivity<\/title>\n<meta name=\"description\" content=\"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.\" \/>\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.couchbase.com\/blog\/ko\/json-case-sensitive-insensitive-search-index-data\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON is Case Sensitive. You Don&#039;t Have to Be.\" \/>\n<meta property=\"og:description\" content=\"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/json-case-sensitive-insensitive-search-index-data\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-23T19:07:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T16:39:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM-300x265.png\" \/>\n<meta name=\"author\" content=\"Keshav Murthy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rkeshavmurthy\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Keshav Murthy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\"},\"author\":{\"name\":\"Keshav Murthy\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/c261644262bf98e146372fe647682636\"},\"headline\":\"JSON is Case Sensitive. You Don&#8217;t Have to Be.\",\"datePublished\":\"2020-03-23T19:07:56+00:00\",\"dateModified\":\"2024-03-26T16:39:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\"},\"wordCount\":631,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/1\\\/2022\\\/11\\\/couchbase-nosql-dbaas.png\",\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\",\"name\":\"Is JSON Case Sensitive or Not? | Upper + Lowercase Sensitivity\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/1\\\/2022\\\/11\\\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2020-03-23T19:07:56+00:00\",\"dateModified\":\"2024-03-26T16:39:54+00:00\",\"description\":\"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/1\\\/2022\\\/11\\\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/1\\\/2022\\\/11\\\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSON is Case Sensitive. You Don&#8217;t Have to Be.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/admin-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/c261644262bf98e146372fe647682636\",\"name\":\"Keshav Murthy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g4e51d72fc07c662aa791316deafffac4\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g\",\"caption\":\"Keshav Murthy\"},\"description\":\"Keshav Murthy is a Vice President at Couchbase R&amp;D. Previously, he was at MapR, IBM, Informix, Sybase, with more than 20 years of experience in database design &amp; development. He lead the SQL and NoSQL R&amp;D team at IBM Informix. He has received two President's Club awards at Couchbase, two Outstanding Technical Achievement Awards at IBM. Keshav has a bachelor's degree in Computer Science and Engineering from the University of Mysore, India, and has received twenty four US patents.\",\"sameAs\":[\"https:\\\/\\\/blog.planetnosql.com\\\/\",\"https:\\\/\\\/x.com\\\/rkeshavmurthy\"],\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/ko\\\/author\\\/keshav-murthy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Is JSON Case Sensitive or Not? | Upper + Lowercase Sensitivity","description":"\uc774 \uac8c\uc2dc\ubb3c\uc5d0\uc11c\ub294 \ud2b9\uc815 \ud544\ub4dc\uc5d0\uc11c \ub300\uc18c\ubb38\uc790\ub97c \uad6c\ubd84\ud558\ub294 \uc774\uc720\uc640 \uc774 \uad6c\ubd84\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc791\uc5c5\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc5d0\uc11c \uc720\uc6a9\ud55c \uc608\uc81c \ub4f1\uc744 \ucc3e\uc544\ubcf4\uc138\uc694.","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.couchbase.com\/blog\/ko\/json-case-sensitive-insensitive-search-index-data\/","og_locale":"ko_KR","og_type":"article","og_title":"JSON is Case Sensitive. You Don't Have to Be.","og_description":"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/json-case-sensitive-insensitive-search-index-data\/","og_site_name":"The Couchbase Blog","article_published_time":"2020-03-23T19:07:56+00:00","article_modified_time":"2024-03-26T16:39:54+00:00","og_image":[{"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM-300x265.png","type":"","width":"","height":""}],"author":"Keshav Murthy","twitter_card":"summary_large_image","twitter_creator":"@rkeshavmurthy","twitter_misc":{"Written by":"Keshav Murthy","Est. reading time":"3\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/"},"author":{"name":"Keshav Murthy","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c261644262bf98e146372fe647682636"},"headline":"JSON is Case Sensitive. You Don&#8217;t Have to Be.","datePublished":"2020-03-23T19:07:56+00:00","dateModified":"2024-03-26T16:39:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/"},"wordCount":631,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","articleSection":["Uncategorized"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/","url":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/","name":"Is JSON Case Sensitive or Not? | Upper + Lowercase Sensitivity","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2020-03-23T19:07:56+00:00","dateModified":"2024-03-26T16:39:54+00:00","description":"\uc774 \uac8c\uc2dc\ubb3c\uc5d0\uc11c\ub294 \ud2b9\uc815 \ud544\ub4dc\uc5d0\uc11c \ub300\uc18c\ubb38\uc790\ub97c \uad6c\ubd84\ud558\ub294 \uc774\uc720\uc640 \uc774 \uad6c\ubd84\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc791\uc5c5\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc5d0\uc11c \uc720\uc6a9\ud55c \uc608\uc81c \ub4f1\uc744 \ucc3e\uc544\ubcf4\uc138\uc694.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JSON is Case Sensitive. You Don&#8217;t Have to Be."}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","description":"NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4, Couchbase","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c261644262bf98e146372fe647682636","name":"\ucf00\uc0e4\ube0c \uba38\uc2dc","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g4e51d72fc07c662aa791316deafffac4","url":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g","caption":"Keshav Murthy"},"description":"\ucf00\uc0e4\ube0c \uba38\uc2dc\ub294 Couchbase R&amp;D\uc758 \ubd80\uc0ac\uc7a5\uc785\ub2c8\ub2e4. \uc774\uc804\uc5d0\ub294 MapR, IBM, Informix, Sybase\uc5d0\uc11c \uadfc\ubb34\ud588\uc73c\uba70 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc124\uacc4 \ubc0f \uac1c\ubc1c \ubd84\uc57c\uc5d0\uc11c 20\ub144 \uc774\uc0c1\uc758 \uacbd\ub825\uc744 \uc313\uc558\uc2b5\ub2c8\ub2e4. IBM Informix\uc5d0\uc11c SQL \ubc0f NoSQL R&amp;D \ud300\uc744 \uc774\ub04c\uc5c8\uc2b5\ub2c8\ub2e4. Couchbase\uc5d0\uc11c \ub450 \ubc88\uc758 President's Club \uc0c1\uc744, IBM\uc5d0\uc11c \ub450 \ubc88\uc758 \ub6f0\uc5b4\ub09c \uae30\uc220 \uc5c5\uc801\uc0c1\uc744 \uc218\uc0c1\ud588\uc2b5\ub2c8\ub2e4. \uc778\ub3c4 \ub9c8\uc774\uc18c\ub974 \ub300\ud559\uad50\uc5d0\uc11c \ucef4\ud4e8\ud130 \uacfc\ud559 \ubc0f \uacf5\ud559 \ud559\uc0ac \ud559\uc704\ub97c \ubc1b\uc558\uc73c\uba70, 24\uac1c\uc758 \ubbf8\uad6d \ud2b9\ud5c8\ub97c \ubcf4\uc720\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.","sameAs":["https:\/\/blog.planetnosql.com\/","https:\/\/x.com\/rkeshavmurthy"],"url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/keshav-murthy\/"}]}},"acf":[],"authors":[{"term_id":8929,"user_id":55,"is_guest":0,"slug":"keshav-murthy","display_name":"Keshav Murthy","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/8342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=8342"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/8342\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=8342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=8342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=8342"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=8342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}