Meta tags:
description= Learn how to configure the Redpanda Cloud Management MCP Server, including auto and manual client setup, enabling deletes, and security considerations.;
Headings (most frequently used words):
the, mcp, server, configure, claude, or, your, errors, you, this, page, let, us, redpanda, cloud, management, prerequisites, install, integration, for, code, other, clients, manually, enable, delete, operations, specify, configuration, file, paths, remove, security, considerations, troubleshooting, verify, installation, client, can, find, unauthorized, token, deletes, not, working, simple, online, edits, contribution, guide, components, highlight, hit, preview, attribute, title, what, do, think, of, know, more, contact, about, feedback, endpoint, example, on,
Text of the page (most frequently used words):
rpk (187), cloud (102), the (96), item (58), #redpanda (58), preview (54), mcp (49), api (46), cluster (42), for (41), and (39), #configure (37), html (34), server (33), state (31), your (30), return (29), data (29), registry (29), with (27), client (27), delete (26), security (26), context (24), you (24), config (23), const (22), use (22), create (22), product (21), list (21), install (20), schema (18), connect (17), components (17), claude (17), query (16), reference (16), doc (15), hit (15), attribute (15), management (15), profile (15), iceberg (15), connector (15), path (14), index (14), configuration (14), user (14), topics (14), algolia (13), sql (13), plane (12), login (12), topic (12), aws (12), manage (12), https (11), www (11), com (11), title (11), add (11), storage (11), byoc (11), gcp (11), this (10), version (10), streaming (10), set (10), objectid (10), code (10), azure (10), map (9), window (9), private (9), description (9), group (9), account (9), describe (9), shadow (9), catalog (9), show (8), method (8), let (8), get (8), new (8), componenttitle (8), platform (8), parameters (8), time (8), type (8), open (8), breadcrumbs (8), snippet (8), intro (8), command (8), yaml (8), service (8), access (8), control (8), role (8), console (8), results (7), url (7), see (7), overview (7), search (7), about (7), text (7), breadcrumb (7), highlight (7), run (7), operations (7), allow (7), using (7), secret (7), log (7), transform (7), alter (7), sink (7), link (6), exact (6), facet (6), docs (6), selected (6), titles (6), length (6), can (6), algoliabtn (6), event (6), queryid (6), positions (6), status (6), edit (6), clients (6), default (6), paths (6), enable (6), generate (6), catalogs (6), drop (6), privatelink (6), source (6), mongodb (6), bloblang (6), example (5), not (5), origin (5), all (5), match (5), sources (5), plugin (5), hits (5), nestedhits (5), docindices (5), has (5), ask (5), stoppropagation (5), clickedobjectidsaftersearch (5), eventname (5), __autocomplete_indexname (5), __autocomplete_queryid (5), objectids (5), activeitemid (5), href (5), transforms (5), quickstart (5), token (5), errors (5), jsonrpc (5), json (5), stdio (5), specify (5), file (5), system (5), from (5), troubleshoot (5), update (5), build (5), compatibility (5), mode (5), quotas (5), auth (5), monitor (5), kafka (5), currentquery (4), view (4), that (4), managed (4), home (4), filters (4), right (4), _tags (4), content (4), autocomplete (4), params (4), null (4), none (4), clickanalytics (4), true (4), are (4), matchingheading (4), tolowercase (4), function (4), click (4), verify (4), target (4), page (4), feedback (4), entry (4), permissions (4), manually (4), one (4), endpoints (4), mcpservers (4), redpandacloud (4), authentication (4), users (4), commands (4), issues (4), acl (4), txn (4), producers (4), mount (4), properties (4), http (4), dedicated (4), regions (4), serverless (4), join (4), billing (4), iam (4), peering (4), connection (4), centralized (4), egress (4), broker (4), switch (4), nats_kv (4), byovpc (4), required (3), hasendpoint (3), endpointline (3), curlexample (3), self (3), agentic (3), fallback (3), getitems (3), header (3), render (3), our (3), libraries (3), getalgoliafacets (3), queries (3), phrase (3), which (3), disables (3), false (3), getalgoliaresults (3), order (3), items (3), foreach (3), _highlightresult (3), matchedindex (3), matchedtopleveltitle (3), renderproduct (3), seen (3), supported_preview_types (3), includes (3), other (3), document (3), btn (3), addeventlistener (3), always (3), slice (3), know (3), select (3), start (3), make (3), contribution (3), read (3), such (3), auto (3), ensure (3), capabilities (3), check (3), syntax (3), messages (3), another (3), args (3), least (3), credentials (3), local (3), both (3), documentation (3), flag (3), choose (3), integration (3), develop (3), deploy (3), failover (3), subject (3), level (3), globals (3), connections (3), tiers (3), timestamp (3), distinct (3), table (3), commits (3), secrets (3), policies (3), gbac (3), rbac (3), authorization (3), gateway (3), shadowing (3), migrate (3), snowflake (3), introduction (3), debezium (3), mirrormaker2 (3), jdbc (3), connectors (3), memory (3), into (3), redis (3), gcp_cloud_storage (3), aws_s3 (3), sql_raw (3), resource (3), azure_cosmosdb (3), pipelines (3), endpoint (2), enrichment (2), try (2), catch (2), integrate (2), current (2), askaibutton (2), viewalllink (2), strict (2), typo (2), exacttoggle (2), values (2), used (2), tags (2), tagsbyfacet (2), tag (2), sourceid (2), checkbox (2), param (2), searchclient (2), indexname (2), test_redpanda (2), facetquery (2), maxfacethits (2), transformresponse (2), facethits (2), union (2), label (2), templates (2), term (2), optional (2), matching (2), __algoliatoggleexactmatch (2), exactmatch (2), exactparams (2), hitsperpage (2), attributestosnippet (2), snippetellipsistext (2), tagfilters (2), while (2), nondocitems (2), filter (2), unixtimestamp (2), infinity (2), nondocindex (2), full (2), clear (2), stale (2), array (2), navigate (2), atag (2), setcontext (2), ctx (2), custom (2), dropdown (2), its (2), without (2), references (2), notes (2), autocompleteinstance (2), button (2), action (2), var (2), queryselector (2), detachedsearchbutton (2), key (2), may (2), any (2), _blank (2), rel (2), noopener (2), noreferrer (2), openchatwithquery (2), policy (2), thanks (2), share (2), thumb_down (2), thumb_up (2), was (2), helpful (2), work (2), guide (2), issue (2), want (2), github (2), simple (2), configured (2), need (2), adjust (2), invocation (2), manual (2), operation (2), depend (2), error (2), contact (2), double (2), result (2), tools (2), name (2), sampling (2), notifications (2), own (2), installed (2), sure (2), roles (2), avoid (2), enabling (2), remove (2), disable (2), steps (2), vary (2), contains (2), keep (2), same (2), operating (2), lets (2), connecting (2), settings (2), logs (2), specific (2), compatible (2), these (2), common (2), after (2), copy (2), metrics (2), produce (2), consume (2), print (2), uninstall (2), offset (2), mountable (2), logdirs (2), proxy (2), apis (2), transactions (2), tables (2), bitwise (2), shift (2), left (2), operators (2), sum (2), min (2), max (2), count (2), bool_or (2), bool_and (2), avg (2), to_char (2), functions (2), zone (2), numeric (2), support (2), pay (2), methods (2), based (2), hub (2), throughput (2), audit (2), maintenance (2), cli (2), postgresql (2), google (2), message (2), handling (2), authenticate (2), started (2), jira (2), migrator (2), streams (2), ingest (2), real (2), amazon (2), open_telemetry_collector (2), decompress (2), avro (2), noop (2), aws_dynamodb (2), sync_response (2), sql_select (2), sql_insert (2), retry (2), qdrant (2), processors (2), gcp_bigquery_select (2), cache (2), timeplus (2), sftp (2), schema_registry (2), redpanda_migrator (2), redpanda_common (2), redis_streams (2), redis_pubsub (2), redis_list (2), otlp_http (2), otlp_grpc (2), nats_jetstream (2), nats (2), mqtt (2), kafka_franz (2), inproc (2), http_client (2), gcp_pubsub (2), azure_table_storage (2), azure_queue_storage (2), azure_blob_storage (2), aws_sqs (2), aws_kinesis (2), amqp_0_9 (2), field (2), what (2), complete (2), more (2), labs (2), txt (2), tiny, reduce, clicks, pure, touppercase, curl, assistant, compose, respects, productparams, shows, products, 20data, 20plane, toggle, forces, layout, side, footer, tips, root, define, actual, core, concepts, getsources, groupby, tagsplugin, fetch, populate, menu, raw, facets, known, happens, when, require, every, spelling, word, note, deliberately, wrap, quotes, searchable, attributes, unordered, proximity, quoted, returns, nothing, give, reliable, __algoliaexactmatch, typotolerance, removewordsifnoresults, optionalwords, maptoalgoliafilters, mixed, stay, place, non, sorted, compute, deep, best, sort, findindex, matchlevel, noresults, don, helper, deduped, badges, isarray, else, previewable, within, panel, otherwise, tab, getitemurl, onactive, expose, instance, globally, drive, capturing, across, renders, intentionally, namespaced, below, __algoliaautocompleteinstance, wire, sidebar, modal, clicking, hidden, detached, queryselectorall, keydown, enter, preventdefault, domcontentloaded, initalgolia, answers, imprecise, believe, should, close, esc, image, analytics, requires, children, checked, typeof, setisopen, cookie, preferences, trust, terms, privacy, 2026, inc, rights, reserved, group_add, mail, community, extensive, updates, prefer, locally, something, change, changes, fixing, directly, online, edits, back, top, generated, restart, deletes, working, necessary, requested, refresh, fails, admin, unauthorized, format, confirm, exists, readable, find, stop, ctrl, expected, response, shapes, examples, initialize, protocolversion, 2025, roots, elicitation, clientinfo, manualtest, initialized, send, following, newline, delimited, rpc, each, line, connectivity, again, installation, troubleshooting, regularly, review, rotate, save, deploying, part, application, shared, environment, consider, tailored, most, cases, personal, better, easier, unless, considerations, secure, never, setup, searches, files, standard, locations, depending, details, absolute, write, accept, overrides, ensures, uses, provide, permits, actions, like, restrict, prompts, deleting, clusters, destructive, also, terminal, observe, shown, follow, some, supported, exposes, available, updated, features, through, documented, release, tool, supports, machine, prerequisites, safely, reading, will, able, installing, different, customize, plain, copied, markdown, options, beta, checking, glossary, init, trim, prefix, partitions, unassign, assign, reset, rename, prompt, help, seek, shell, completion, grafana, dashboard, app, unmount, cancel, import, info, logout, javascript, rust, golang, sdks, object, virtual, information, pg_user, pg_type, pg_statio_user_tables, pg_shadow, pg_settings, pg_roles, pg_proc, pg_namespace, pg_language, pg_index, pg_description, pg_depend, pg_database, pg_constraint, pg_class, pg_authid, pg_attribute, pg_attrdef, row_number, rank, percent_rank, ntile, nth_value, lead, last_value, lag, first_value, dense_rank, cume_dist, unix_seconds, unix_millis, unix_micros, to_timestamp, timestamp_trunc, timestamp_seconds, timestamp_millis, timestamp_micros, format_timestamp, extract, date_trunc, current_timestamp, upper, substring, strpos, starts_with, replace, position, lower, ends_with, concat, regexp_replace, regexp_match, posix, regular, expressions, regex, string, shobj_description, pg_typeof, pg_total_relation_size, pg_table_size, pg_table_is_visible, pg_size_pretty, pg_relation_is_publishable, pg_get_userbyid, pg_get_statisticsobjdef_columns, pg_get_indexdef, pg_get_expr, pg_get_constraintdef, pg_encoding_to_char, pg_backend_pid, obj_description, nullif, has_schema_privilege, generate_series, current_schema, current_database, col_description, coalesce, number, sqrt, sinh, sin, sign, round, random, power, greatest, floor, exp, cosh, ceil, cbrt, abs, math, json_extract_path_text, json_extract_path, json_array_length, json_array_extract, boolean, for_min, for_max, variance, var_samp, var_pop, stddev_samp, stddev_pop, stddev, regr_syy, regr_sxy, regr_sxx, regr_slope, regr_r2, regr_intercept, regr_count, regr_avgy, regr_avgx, covar_samp, covar_pop, corr, statistics, percentile_disc, percentile_cont, ordered, aggregate, row, aliases, interval, geometry, geography, date, bytea, bool, types, where, over, limit, having, outer, intersect, except, clauses, nodes, execs, revoke, grant, statements, schemas, comment, keywords, partner, integrations, activity, payment, safety, reliability, availability, encryption, lists, acls, global, transit, cidr, ranges, network, design, ports, networking, terraform, provider, deprecation, codes, runbook, disaster, recovery, programmable, push, deserialization, validation, contexts, tune, performance, lakehouse, databricks, unity, glue, rest, sample, logging, upgrades, profiles, addresses, organization, mysql, heartbeat, checkpoint, gcs, bigquery, sizing, single, converters, serialization, test, paginate, follower, fetching, consumer, offsets, leader, pinning, idempotent, out, degraded, nested, fields, enabled, editor, dapper, npgsql, php, pdo, java, psycopg2, oltp, olap, retrieval, augmented, generation, rag, joining, filtering, workflows, dynamodb, cdc, patterns, cookbooks, unified, synchronous, responses, sensor, telemetry, aurora, web, services, arithmetic, walkthrough, guides, logger, prometheus, gcp_cloudtrace, tracers, to_the_end, tar, skip_bom, re_match, lines, json_documents, json_array, csv, chunker, scanners, system_window, buffers, rate, limits, ttlru, ristretto, multilevel, memcached, lru, caches, xml, workflow, unarchive, try_catch, text_chunker, string_split, split, sleep, slack_thread, select_parts, schema_registry_encode, schema_registry_decode, redis_script, rate_limit, protobuf, parse_log, parquet_encode, parquet_decode, parallel, openai_translation, openai_transcription, openai_speech, openai_image_generation, openai_embeddings, openai_chat_completion, ollama_moderation, ollama_embeddings, ollama_chat, nats_request_reply, mutation, metric, mapping, json_schema, jmespath, insert_part, group_by_value, group_by, google_drive_search, google_drive_list_labels, google_drive_download, gcp_vertex_ai_embeddings, gcp_vertex_ai_chat, for_each, dedupe, compress, cohere_rerank, cohere_embeddings, cohere_chat, cached, branch, bounds_check, benchmark, aws_lambda, aws_dynamodb_partiql, aws_bedrock_embeddings, aws_bedrock_chat, archive, a2a_message, splunk_hec, snowflake_streaming, snowflake_put, slack_reaction, slack_post, salesforce_sink, reject_errored, reject, redis_hash, questdb, pinecone, opensearch, gcp_bigquery_write_api, gcp_bigquery, elasticsearch_v8, drop_on, cyborgdb, azure_data_lake_gen2, aws_sns, aws_kinesis_firehose, arc, outputs, splunk, spicedb_watch, slack_users, slack, sequence, salesforce_graphql, salesforce_cdc, salesforce, redis_scan, read_until, postgres_cdc, oracledb_cdc, mysql_cdc, mongodb_cdc, microsoft_sql_server_cdc, http_server, gcp_spanner_cdc, git, batched, aws_dynamodb_cdc, aws_cloudwatch_logs, inputs, unit, testing, pipeline, resources, process, interpolation, contextual, variables, metadata, windowed, processing, batching, remote, replicas, byovnet, architecture, how, works, hundreds, deployments, infrastructure, fully, foundation, everything, agents, please, robot, before, submitting, submit, think, beep, boop, bot, here, familiar, learn, component, llms,
Text of the page (random words):
configure the redpanda cloud management mcp server after installing the redpanda cloud management mcp server you can configure it for different ai clients customize security settings and troubleshoot common issues after reading this page you will be able to configure mcp clients enable delete operations safely troubleshoot common configuration issues prerequisites at least version 25 2 3 of rpk installed on your local machine access to a redpanda cloud account an mcp compatible ai client such as claude claude code or another tool that supports mcp the mcp server exposes redpanda cloud api endpoints for both the control plane and the data plane available endpoints depend on your rpk version keep rpk updated to access new redpanda cloud features through the mcp server new mcp endpoints are documented in redpanda release notes install the integration for claude or claude code for some supported clients you can install and configure the mcp integration using the rpk cloud mcp install command for claude and claude code run one of these commands choose one rpk cloud mcp install client claude rpk cloud mcp install client claude code if you need to update the integration re run the install command for your client configure other mcp clients manually if you re using another mcp compatible client manually configure it to use the redpanda cloud management mcp server follow these steps add an mcp server entry to your client s configuration example shown in json adjust paths for your system mcpservers redpandacloud command rpk args config path to rpk yaml 1 cloud mcp stdio 1 optional the config flag lets you target a specific rpk yaml which contains the configuration for connecting to your cluster always use the same configuration path as you used for rpk cloud login to ensure it has your token default paths vary by operating system see the rpk cloud login reference for the default paths you can also start the server manually in a terminal to observe logs and troubleshoot enable delete operations the server disables destructive operations by default to allow delete operations add allow delete to the mcp server invocation enabling delete operations permits actions like deleting topics or clusters restrict access to your ai client and double check prompts auto configured clients manual configuration example choose one rpk cloud mcp install client claude allow delete rpk cloud mcp install client claude code allow delete mcpservers redpandacloud command rpk args cloud mcp stdio allow delete specify configuration file paths all rpk commands accept a config flag which lets you specify the exact rpk yaml configuration file to use for connecting to your redpanda cluster this flag overrides the default search path and ensures that the command uses the credentials and settings from the file you provide always use the same configuration path for both rpk cloud login and any mcp server setup or install commands to avoid authentication issues by default rpk searches for config files in standard locations depending on your operating system see the reference documentation for details use an absolute path and make sure your user has read and write permissions the rpk configuration file contains your redpanda cloud token keep the file secure and never share it for example if you want to use a custom config path specify it for both login and the mcp install command rpk cloud login config users user my rpk config yaml rpk cloud mcp install client claude config users user my rpk config yaml or for claude code rpk cloud login config users user my rpk config yaml rpk cloud mcp install client claude code config users user my rpk config yaml remove the mcp server to remove the mcp server delete or disable the mcpservers redpandacloud entry in your client s config steps vary by client security considerations avoid enabling allow delete unless required for most local use cases such as with claude or claude code log in with your personal redpanda cloud user account for better security and easier management if you are deploying the mcp server as part of an application or shared environment consider using a service account with tailored roles to log in as a service account use rpk cloud login client id service account client id client secret service account client secret save regularly review and rotate your credentials troubleshooting verify your installation make sure you are using at least version 25 2 3 of rpk if you see authentication errors run rpk cloud login again ensure you installed for the right client rpk cloud mcp install client claude or rpk cloud mcp install client claude code if using another mcp client verify your mcpservers redpandacloud entry paths json syntax and args order start the server manually using the rpk cloud mcp stdio command one time login required to verify connectivity to redpanda cloud endpoints rpk cloud login rpk cloud mcp stdio send the following newline delimited json rpc messages each on its own line jsonrpc 2 0 id 1 method initialize params protocolversion 2025 06 18 capabilities roots sampling elicitation clientinfo name manualtest version 0 1 0 jsonrpc 2 0 method notifications initialized jsonrpc 2 0 id 2 method tools list expected response shapes examples jsonrpc 2 0 id 1 result capabilities jsonrpc 2 0 id 2 result tools name description stop the server with ctrl c client can t find the mcp server re run the install for your mcp client confirm the path in config path to rpk yaml exists and is readable double check your client s configuration format and syntax unauthorized errors or token errors your capabilities depend on your redpanda cloud account permissions if an operation fails with a permissions error contact your account admin run rpk cloud login to refresh the token ensure your account has the necessary permissions for the requested operation deletes not working the server disables delete operations by default add allow delete to the server invocation auto or manual configuration and restart the client for auto configured clients you may need to edit the generated config or re run the install command and adjust the entry back to top simple online edits for simple changes such as fixing a typo you can edit the content directly on github edit on github or open an issue to let us know about something that you want us to change open an issue contribution guide for extensive content updates or if you prefer to work locally read our contribution guide was this helpful thumb_up thumb_down group ask in the community mail share your feedback group_add make a contribution thanks for your feedback redpanda cloud management mcp server quickstart data transforms 2026 redpanda data inc all rights reserved privacy policy terms status trust cookie preferences for api endpoint results we show a tiny example to reduce clicks this is pure ui enrichment not required by algolia const hasendpoint preview preview method preview path let endpointline let curlexample if hasendpoint const method preview method get touppercase const path preview path endpointline method path let origin try origin new url preview url origin catch e no op curlexample curl x method origin origin path path integrate ai assistant with the current query const askaibutton currentquery html if typeof window openchatwithquery function window openchatwithquery currentquery true autocompleteinstance setisopen false ask ai about currentquery compose a view all results link that respects product version context const componenttitle cloud const productparams if componenttitle cloud return product 0 cloud product 1 connect if componenttitle streaming return product 0 streaming product 1 connect if componenttitle connect return product 0 connect if componenttitle data platform return product 0 cloud product 1 streaming product 2 connect if componenttitle self managed return product 0 streaming product 1 connect if componenttitle home return home shows all products if componenttitle agentic data plane return product 0 agentic 20data 20plane return const viewalllink currentquery html view all results exact match toggle forces a strict no typo no fallback query see getitems const exacttoggle html window __algoliatoggleexactmatch e target checked exact match layout header filters ai results list right side preview footer tips render html dropdown exacttoggle askaibutton children preview html preview breadcrumbs html preview breadcrumbs map breadcrumb html event stoppropagation click analytics requires clickanalytics true and a queryid docs https www algolia com doc api reference api parameters clickanalytics aa clickedobjectidsaftersearch eventname preview selected index state context preview __autocomplete_indexname queryid state context preview __autocomplete_queryid objectids state context preview objectid positions state activeitemid 1 positions start at 1 href breadcrumb u breadcrumb t components highlight hit preview attribute title preview intro components highlight hit preview attribute intro preview description components highlight hit preview attribute description preview api html preview api hasendpoint html endpoint endpointline example curlexample preview image html supported_preview_types includes preview type tolowercase html event stoppropagation aa clickedobjectidsaftersearch eventname preview selected index state context preview __autocomplete_indexname queryid state context preview __autocomplete_queryid objectids state context preview objectid positions state activeitemid 1 href preview url preview objectid html event stoppropagation aa clickedobjectidsaftersearch eventname preview selected index state context preview __autocomplete_indexname queryid state context preview __autocomplete_queryid objectids state context preview objectid positions state activeitemid 1 target _blank rel noopener noreferrer href preview url preview objectid preview titles preview titles length 0 html on this page preview titles slice 0 15 map title html supported_preview_types includes state context preview type tolowercase html event stoppropagation aa clickedobjectidsaftersearch eventname preview selected index state context preview __autocomplete_indexname queryid state context preview __autocomplete_queryid objectids state context preview objectid positions state activeitemid 1 href preview url preview objectid title h components highlight hit title attribute t html event stoppropagation aa clickedobjectidsaftersearch eventname preview selected index state context preview __autocomplete_indexname queryid state context preview __autocomplete_queryid objectids state context preview objectid positions state activeitemid 1 target _blank rel noopener noreferrer href preview url preview objectid title h components highlight hit title attribute t to select to navigate esc to close viewalllink root define our data sources filters facet values for the _tags facet used by the tags plugin docs actual content hits sources overview https www algolia com doc ui libraries autocomplete core concepts sources getsources query state const tagsbyfacet groupby state context tagsplugin tags tag tag facet return sourceid filters getitems fetch facet values for _tags to populate the checkbox menu getalgoliafacets https www algolia com doc ui libraries autocomplete api reference sources param getalgoliafacets return getalgoliafacets searchclient queries indexname test_redpanda facet _tags params facetquery https www algolia com doc api reference api parameters facetquery maxfacethits 50 https www algolia com doc api reference api parameters maxfacethits transformresponse facethits we return raw server facets union with known selected happens in render const server facethits 0 map h label h label facet _tags return server templates header return null item return null sourceid docs getitems when exact match is on require every term exact spelling and no optional word fallback note we deliberately do not wrap the query in quotes for a phrase match the index s searchable attributes use unordered which disables phrase proximity matching so a quoted phrase returns nothing strict params give reliable exact term matching see window __algoliatoggleexactmatch const exactmatch window __algoliaexactmatch const exactparams exactmatch typotolerance false removewordsifnoresults none optionalwords getalgoliaresults https www algolia com doc ui libraries autocomplete api reference sources param getalgoliaresults return getalgoliaresults searchclient queries indexname test_redpanda query params clickanalytics true https www algolia com doc api reference api parameters clickanalytics hitsperpage 10 https www algolia com doc api reference api parameters hitsperpage attributestosnippet 25 https www algolia com doc api reference api parameters attributestosnippet snippetellipsistext https www algolia com doc api reference api parameters snippetellipsistext tagfilters maptoalgoliafilters tagsbyfacet https www algolia com doc api reference api parameters tagfilters exactparams transformresponse hits re order mixed hits so docs stay in place while non doc items are time sorted and compute a matchingheading to deep link to the best title match return hits map nestedhits const docindices new map nestedhits foreach item index if item type doc docindices set index item const nondocitems nestedhits filter item item type doc sort a b b unixtimestamp infinity a unixtimestamp infinity let nondocindex 0 docindices foreach item index if item _highlightresult item _highlightresult titles const matchedindex item _highlightresult titles findindex title title t matchlevel full if matchedindex 1 const matchedtopleveltitle item titles matchedindex if matchedtopleveltitle item matchingheading matchedtopleveltitle h nestedhits index item return nestedhits map item index docindices has index docindices get index nondocitems nondocindex templates noresults state html clear preview so we don t show stale content for a query with no hits state context preview null if state query return return html no results for state query believe this query should return results let us know header items html if items length return return html results item item components html const matchingheading item matchingheading helper render product as deduped badges const renderproduct product if array isarray product const seen new set return product filter p const k p tolowercase if seen has k return false seen add k return true map p html p else if product return html product return null if previewable navigate within the panel otherwise open a new tab const atag supported_preview_types includes item type tolowercase html components highlight hit item attribute title item text html item text components snippet hit item attribute text item intro components snippet hit item attribute intro item description components snippet hit item attribute description html item intro components snippet hit item attribute intro item description components snippet hit ...
|