CINXE.COM
Full Text Search Improve Query Performance - Full Text Search - Couchbase Forums
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Full Text Search Improve Query Performance - Full Text Search - Couchbase Forums</title> <meta name="description" content="Hi Community, Description: I have a data set around 4 - 5 Million documents, where I need to configure Full Text Search Capability with minimum response time. I configured the FTS index as below. &quot;name&quot;: &quot;full_text_&hellip;"> <meta name="generator" content="Discourse 3.5.0.beta1-dev - https://github.com/discourse/discourse version 402ec6bf5c857ddc07be9cb9673734cc7152b7be"> <link rel="icon" type="image/png" href="https://global.discourse-cdn.com/couchbase/optimized/2X/5/5c3358874946bfe880e9bf3ffda96c2bc67451a6_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://global.discourse-cdn.com/couchbase/optimized/2X/b/b979c51a7b008edb40f4aaf42a8b8946bc100805_2_180x180.png"> <meta name="theme-color" media="all" content="#ffffff"> <meta name="color-scheme" content="light"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, viewport-fit=cover"> <meta name="discourse-base-uri" content="/forums"> <link rel="canonical" href="https://www.couchbase.com/forums/t/full-text-search-improve-query-performance/39705" /> <link rel="search" type="application/opensearchdescription+xml" href="https://www.couchbase.com/forums/opensearch.xml" title="Couchbase Forums Search"> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/color_definitions_couchbase-peach_9_5_e09a9386b9d849cc4fc85bc1c6f8c720f730d104.css?__ws=www.couchbase.com" media="all" rel="stylesheet" class="light-scheme"/> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/desktop_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="desktop" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/checklist_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="checklist" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-ai_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-ai" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-akismet_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-algolia_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-algolia" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-cakeday_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-cakeday" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-data-explorer_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-data-explorer" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-details_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-lazy-videos_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-local-dates_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-narrative-bot_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-policy_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-policy" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-presence_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-solved_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-templates_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-templates" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-topic-voting_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-topic-voting" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/footnote_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="footnote" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/hosted-site_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="hosted-site" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/poll_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="poll" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/spoiler-alert_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-ai_desktop_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-ai_desktop" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/discourse-topic-voting_desktop_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="discourse-topic-voting_desktop" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/poll_desktop_17e45fad0c2b25a50aec3c757fbd83fde1f5a2ef.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/desktop_theme_12_8f121ab2fd1351c916d8fc76e7da231ce77b3153.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="12" data-theme-name="discourse clickable topic"/> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/desktop_theme_10_472b0a7289f3f36d49f4d40ea9234e5906db528d.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="10" data-theme-name="modern category + group boxes"/> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/desktop_theme_5_cc7274153ef5da448df028cec0a98440f577d1fd.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="5" data-theme-name="mint"/> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/desktop_theme_16_2c3dfb837d0d40fbd0fe4341852a7f4e02b4f0ff.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="16" data-theme-name="couchbase 2"/> <link href="https://sea2.discourse-cdn.com/couchbase/forums/stylesheets/desktop_theme_4_1ed6f96bfa4ee88078fbe8331c99f9622b8cf8dc.css?__ws=www.couchbase.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="4" data-theme-name="header alignment fix"/> <!-- OneTrust Cookies Consent Notice start for couchbase.com --> <script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="748511ff-10bf-44bf-88b8-36382e5b5fd9" nonce="R59MALvsCQt1BsRUvdpp1BTHa"></script> <!-- OneTrust Cookies Consent Notice end for couchbase.com --><script defer="" src="https://sea2.discourse-cdn.com/couchbase/forums/theme-javascripts/87b4efff34091d9be9e0da05837c945fe6220398.js?__ws=www.couchbase.com" data-theme-id="17" nonce="R59MALvsCQt1BsRUvdpp1BTHa"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of 'Full Text Search Improve Query Performance'" href="https://www.couchbase.com/forums/t/full-text-search-improve-query-performance/39705.rss" /> <meta property="og:site_name" content="Couchbase Forums" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://global.discourse-cdn.com/couchbase/original/2X/0/01f9ae109c030e7bf64d0812eaa8a3b08cf5ce60.png" /> <meta property="og:image" content="https://global.discourse-cdn.com/couchbase/original/2X/3/3d0d79fb182d067253be4666da0e1ec321b9536b.svg" /> <meta property="og:url" content="https://www.couchbase.com/forums/t/full-text-search-improve-query-performance/39705" /> <meta name="twitter:url" content="https://www.couchbase.com/forums/t/full-text-search-improve-query-performance/39705" /> <meta property="og:title" content="Full Text Search Improve Query Performance" /> <meta name="twitter:title" content="Full Text Search Improve Query Performance" /> <meta property="og:description" content="Hi Community, Description: I have a data set around 4 - 5 Million documents, where I need to configure Full Text Search Capability with minimum response time. I configured the FTS index as below. "name": "full_text_index", "type": "fulltext-index", "params": { "mapping": { "types": { "_default.native": { "enabled": true, "dynamic": true, "default_analyzer": "standard", "properties": { "text": { "enabled": true, "dynamic": false, "fie..." /> <meta name="twitter:description" content="Hi Community, Description: I have a data set around 4 - 5 Million documents, where I need to configure Full Text Search Capability with minimum response time. I configured the FTS index as below. "name": "full_text_index", "type": "fulltext-index", "params": { "mapping": { "types": { "_default.native": { "enabled": true, "dynamic": true, "default_analyzer": "standard", "properties": { "text": { "enabled": true, "dynamic": false, "fie..." /> <meta property="og:article:section" content="Full Text Search" /> <meta property="og:article:section:color" content="81D742" /> <meta property="og:article:tag" content="fts" /> <meta property="article:published_time" content="2024-11-12T13:52:35+00:00" /> <meta property="og:ignore_canonical" content="true" /> <script type="application/ld+json">{"@context":"http://schema.org","@type":"QAPage","name":"Full Text Search Improve Query Performance","mainEntity":{"@type":"Question","name":"Full Text Search Improve Query Performance","text":"Hi Community,\n\nDescription:\n\nI have a data set around 4 - 5 Million documents, where I need to configure Full Text Search Capability with minimum response time.\n\nI configured the FTS index as below.\n\n"name": "full_text_index",\n\n"type": "fulltext-index",\n\n"params": {\n\n"mapping": {\n\n"types": {\n\n…","upvoteCount":0,"answerCount":0,"datePublished":"2024-11-12T13:52:34.999Z","author":{"@type":"Person","name":"mohithraj_kulal","url":"https://www.couchbase.com/forums/u/mohithraj_kulal"}}}</script> </head> <body class="crawler browser-update"> <header> <a href="/forums/"> Couchbase Forums </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/forums/t/full-text-search-improve-query-performance/39705">Full Text Search Improve Query Performance</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/forums/c/couchbase-full-text-search/25" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #81D742'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Full Text Search</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> <div class="topic-category"> <div class='discourse-tags list-tags'> <a href='https://www.couchbase.com/forums/tag/fts' class='discourse-tag' rel="tag">fts</a> </div> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Full Text Search Improve Query Performance'> <link itemprop='url' href='https://www.couchbase.com/forums/t/full-text-search-improve-query-performance/39705'> <meta itemprop='datePublished' content='2024-11-12T13:52:34Z'> <meta itemprop='articleSection' content='Full Text Search'> <meta itemprop='keywords' content='fts'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Couchbase Forums'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://global.discourse-cdn.com/couchbase/original/2X/0/01f9ae109c030e7bf64d0812eaa8a3b08cf5ce60.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" rel='nofollow' href='https://www.couchbase.com/forums/u/mohithraj_kulal'><span itemprop='name'>mohithraj_kulal</span></a> </span> <link itemprop="mainEntityOfPage" href="https://www.couchbase.com/forums/t/full-text-search-improve-query-performance/39705"> <span class="crawler-post-infos"> <time datetime='2024-11-12T13:52:35Z' class='post-time'> November 12, 2024, 1:52pm </time> <meta itemprop='dateModified' content='2024-11-12T14:00:04Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>Hi Community,</p> <p>Description:</p> <p>I have a data set around 4 - 5 Million documents, where I need to configure Full Text Search Capability with minimum response time.<br> I configured the FTS index as below.</p> <pre><code class="lang-auto"> "name": "full_text_index", "type": "fulltext-index", "params": { "mapping": { "types": { "_default.native": { "enabled": true, "dynamic": true, "default_analyzer": "standard", "properties": { "text": { "enabled": true, "dynamic": false, "fields": [ { "name": "text", "type": "text", "analyzer": "simple", "store": false, "index": true, "include_term_vectors": true, "include_in_all": false, "docvalues": false } ] }, "tenant": { "enabled": true, "dynamic": false, "fields": [ { "name": "tenant", "type": "text", "analyzer": "keyword", "store": false, "index": true, "include_term_vectors": false, "include_in_all": false, "docvalues": false } ] }, "status": { "enabled": true, "dynamic": false, "fields": [ { "name": "status", "type": "text", "analyzer": "keyword", "store": false, "index": true, "include_term_vectors": false, "include_in_all": false, "docvalues": false } ] }, "locale": { "enabled": true, "dynamic": false, "fields": [ { "name": "locale", "type": "text", "analyzer": "keyword", "store": false, "index": true, "include_term_vectors": false, "include_in_all": false, "docvalues": false } ] }, "lastUpdateTime": { "enabled": true, "dynamic": false, "fields": [ { "name": "lastUpdateTime", "type": "number", "store": false, "index": true, "include_term_vectors": false, "include_in_all": false, "docvalues": true } ] }, "productIds": { "enabled": true, "dynamic": false, "fields": [ { "name": "productIds", "type": "text", "analyzer": "keyword", "store": false, "index": true, "include_term_vectors": false, "include_in_all": false, "docvalues": false } ] }, "id": { "enabled": true, "dynamic": false, "fields": [ { "name": "id", "type": "text", "analyzer": "keyword", "store": false, "index": true, "include_term_vectors": false, "include_in_all": false, "docvalues": false } ] }, "summary": { "enabled": true, "dynamic": false, "fields": [ { "name": "summary", "type": "text", "analyzer": "simple", "store": false, "index": true, "include_term_vectors": true, "include_in_all": false, "docvalues": false } ] } } } }, "default_mapping": { "enabled": false, "dynamic": true }, "default_type": "_default", "default_analyzer": "standard", "default_datetime_parser": "dateTimeOptional", "default_field": "", "store_dynamic": false, "index_dynamic": false, "docvalues_dynamic": false }, "store": { "indexType": "scorch", "kvStoreName": "" }, "doc_config": { "docid_prefix_delim": "", "docid_regexp": "", "mode": "scope.collection.type_field", "type_field": "type" } }, "sourceType": "couchbase", "sourceName": "Sample", "sourceUUID": "be04daad7edfa09f20ecf781c0817483", "sourceParams": {}, "planParams": { "maxPartitionsPerPIndex": 1024, "numReplicas": 0, "indexPartitions": 12 }, "uuid": "" } </code></pre> <p>Document Description:<br> tenant, status, locale are string attributes where I need a full match, hence used keyword analyser<br> productIds is list of IDs where I need a full match, hence used keyword analyser<br> lastUpdateTime is long value where I need to query by range and sort in descending order<br> Id is a string, where I need to query for full match or a partial match as a wildcard like suffix match (Ex: *documentId)<br> text and summary are text attributes where I need to match phrases or normal word match.</p> <p>I have created index as above screenshot with index partition as 12 without using any custom analyser of filter.</p> <p>Search Query:</p> <pre><code class="lang-auto">{ "query": { "conjuncts": [ { "disjuncts": [ { "wildcard": "*{{searchText}}", "field": "id" }, { "match_phrase": "{{searchText}}", "field": "text" }, { "match_phrase": "{{searchText}}", "field": "summary" }, { "match": "{{searchText}}", "field": "prod" } ] }, { "term": "abc-123", "field": "tenant" }, { "disjuncts": [ { "term": "en", "field": "locale" } ] }, { "disjuncts": [ { "term": "Approved", "field": "status" }, { "term": "Rejected", "field": "status" } ] }, { "field": "lastUpdateTime", "min": 1603799414000, "max": 1730029814000, "inclusive_min": true, "inclusive_max": true } ] }, "sort": [ "-lastUpdateTime" ], "size": 10, "from": 0 } </code></pre> <p>My query looks above, the {{searchText}} place holder will be replaced with my dynamic input from UI and other query attributes are filled based on user type and filter params.</p> <p>Problem:<br> Currently with above index configuration and querying for 4-5 million documents I am able to get the data in 400ms - 500ms. Even though I do not store any data in index for retrieval as it increases my index size in disk.<br> I need to get response within 50ms. Is is possible to achieve such low latency. If yes, Can anyone help me here to get query data with faster retrieval.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" rel='nofollow' href='https://www.couchbase.com/forums/u/abhinav'><span itemprop='name'>abhinav</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-20T22:51:18Z' class='post-time'> November 20, 2024, 10:51pm </time> <meta itemprop='dateModified' content='2024-11-20T22:51:18Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>Hello <a class="mention" href="/forums/u/mohithraj_kulal">@mohithraj_kulal</a> ,</p> <p>Your query generally looks good for the index.</p> <p>A wildcard query could be the slower one here because it runs in two phases where first the candidate terms for the list will be determined and then a disjunction will run over all those candidate terms - you can look into moving this query-time-compute to the index time, by devising a custom analyzer that uses maybe a <code>whitespace</code> or <code>unicode</code> tokenizer but importantly an <code>ngram</code> token filter with a low enough <code>min</code> (smallest word size) and reasonable max (maybe max word length).</p> <aside class="onebox allowlistedgeneric" data-onebox-src="https://docs.couchbase.com/server/current/search/create-custom-token-filter.html#edge-ngram"> <header class="source"> <img src="https://docs.couchbase.com/_/img/favicon.svg" class="site-icon" width="16" height="16"> <a href="https://docs.couchbase.com/server/current/search/create-custom-token-filter.html#edge-ngram" target="_blank" rel="noopener nofollow ugc">docs.couchbase.com</a> </header> <article class="onebox-body"> <h3><a href="https://docs.couchbase.com/server/current/search/create-custom-token-filter.html#edge-ngram" target="_blank" rel="noopener nofollow ugc">Create a Custom Token Filter | Couchbase Docs</a></h3> <p>Create a custom token filter with the Couchbase Server Web Console to change how the Search Service creates tokens from Search index content and Search queries.</p> </article> <div class="onebox-metadata"> </div> <div style="clear: both"></div> </aside> <p>With this your index size would slightly increase (to hold more tokens for the data), but you get to replace your wildcard query with a term query instead …</p> <pre><code class="lang-auto">{ "query": { "conjuncts": [ { "disjuncts": [ {"field": "id", "term": "{{searchText}}"}, {"match_phrase": "{{searchText}}", "field": "text"}, {"match_phrase": "{{searchText}}", "field": "summary"}, {"match": "{{searchText}}", "field": "prod"} ] }, {"term": "abc-123", "field": "tenant"}, {"term": "en", "field": "locale"}, { "disjuncts": [ {"term": "Approved", "field": "status"}, {"term": "Rejected", "field": "status"} ] }, { "field": "lastUpdateTime", "min": 1603799414000, "max": 1730029814000, "inclusive_min": true, "inclusive_max": true } ] }, "sort": [ "-lastUpdateTime" ], "size": 10, "from": 0 } </code></pre> <p>Another optimization also comes to mind here …</p> <ul> <li>find a common analyzer for fields - <code>id</code>, <code>text</code>, <code>summary</code> and <code>prod</code></li> <li>set <code>include in _all</code> to true for all these fields</li> <li>set the <code>default_analyzer</code> at the top level of your index definition to this common analyzer, or maybe something better</li> <li>now you can replace the top 4 disjuncts with a single match query (uses the <code>default_analyzer</code>) that would search within the <code>_all</code> field which will be a composite of the 4 fields above …</li> </ul> <pre><code class="lang-auto">{ "query": { "conjuncts": [ {"match": "{{searchText}}"}, {"term": "abc-123", "field": "tenant"}, {"term": "en", "field": "locale"}, { "disjuncts": [ {"term": "Approved", "field": "status"}, {"term": "Rejected", "field": "status"} ] }, { "field": "lastUpdateTime", "min": 1603799414000, "max": 1730029814000, "inclusive_min": true, "inclusive_max": true } ] }, "sort": [ "-lastUpdateTime" ], "size": 10, "from": 0 } </code></pre> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> <div id="related-topics" class="more-topics__list " role="complementary" aria-labelledby="related-topics-title"> <h3 id="related-topics-title" class="more-topics__list-title"> Related topics </h3> <div class="topic-list-container" itemscope itemtype='http://schema.org/ItemList'> <meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'> <table class='topic-list'> <thead> <tr> <th>Topic</th> <th></th> <th class="replies">Replies</th> <th class="views">Views</th> <th>Activity</th> </tr> </thead> <tbody> <tr class="topic-list-item" id="topic-list-item-35256"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='1'> <span class="link-top-line"> <a itemprop='url' href='https://www.couchbase.com/forums/t/fts-seems-to-have-a-bug/35256' class='title raw-link raw-topic-link'>FTS seems to have a bug</a> </span> <div class="link-bottom-line"> <a href='/forums/c/couchbase-full-text-search/25' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #81D742'></span> <span class='badge-category clear-badge'> <span class='category-name'>Full Text Search</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>2</span> </td> <td class="views"> <span class='views' title='views'>641</span> </td> <td> January 4, 2023 </td> </tr> <tr class="topic-list-item" id="topic-list-item-29699"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='2'> <span class="link-top-line"> <a itemprop='url' href='https://www.couchbase.com/forums/t/performance-improvement-for-fts/29699' class='title raw-link raw-topic-link'>Performance Improvement for FTS</a> </span> <div class="link-bottom-line"> <a href='/forums/c/couchbase-full-text-search/25' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #81D742'></span> <span class='badge-category clear-badge'> <span class='category-name'>Full Text Search</span> </span> </a> <div class="discourse-tags"> <a href='https://www.couchbase.com/forums/tag/python' class='discourse-tag'>python</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>6</span> </td> <td class="views"> <span class='views' title='views'>1094</span> </td> <td> May 19, 2021 </td> </tr> <tr class="topic-list-item" id="topic-list-item-29369"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='3'> <span class="link-top-line"> <a itemprop='url' href='https://www.couchbase.com/forums/t/full-text-search-index-size-3-times-bigger-than-the-data-in-the-bucket/29369' class='title raw-link raw-topic-link'>Full Text Search index size 3 times bigger than the data in the bucket</a> </span> <div class="link-bottom-line"> <a href='/forums/c/couchbase-full-text-search/25' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #81D742'></span> <span class='badge-category clear-badge'> <span class='category-name'>Full Text Search</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>9</span> </td> <td class="views"> <span class='views' title='views'>1230</span> </td> <td> February 5, 2021 </td> </tr> <tr class="topic-list-item" id="topic-list-item-29625"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='4'> <span class="link-top-line"> <a itemprop='url' href='https://www.couchbase.com/forums/t/fts-term-query-not-working/29625' class='title raw-link raw-topic-link'>FTS - Term query not working</a> </span> <div class="link-bottom-line"> <a href='/forums/c/couchbase-full-text-search/25' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #81D742'></span> <span class='badge-category clear-badge'> <span class='category-name'>Full Text Search</span> </span> </a> <div class="discourse-tags"> <a href='https://www.couchbase.com/forums/tag/fts' class='discourse-tag'>fts</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>1</span> </td> <td class="views"> <span class='views' title='views'>931</span> </td> <td> February 26, 2021 </td> </tr> <tr class="topic-list-item" id="topic-list-item-25546"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='5'> <span class="link-top-line"> <a itemprop='url' href='https://www.couchbase.com/forums/t/time-taken-for-fts-query/25546' class='title raw-link raw-topic-link'>Time taken for FTS query</a> </span> <div class="link-bottom-line"> <a href='/forums/c/couchbase-full-text-search/25' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #81D742'></span> <span class='badge-category clear-badge'> <span class='category-name'>Full Text Search</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>7</span> </td> <td class="views"> <span class='views' title='views'>1468</span> </td> <td> June 15, 2021 </td> </tr> </tbody> </table> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/forums/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/forums/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/forums/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='https://www.couchbase.com/terms-of-use/' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='https://www.couchbase.com/privacy-policy/' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <!-- EXPORTED TAGS --> <!-- Tags for Couchbase oneTag --> <!-- One Tag Conditional Container: Couchbase (6792) | Couchbase oneTag (5045) --> <script defer="" src="https://sea2.discourse-cdn.com/couchbase/forums/theme-javascripts/34713efacfccdc324338cc33fc0190f9dbf12b74.js?__ws=www.couchbase.com" data-theme-id="16" nonce="R59MALvsCQt1BsRUvdpp1BTHa"></script> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>