Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

keyword-search

Skill by elastic

Guides developers through building keyword and full-text search with Elasticsearch, covering mappings, bulk ingestion, queries, autocomplete and relevance tuning.

  • Score 81
  • 21k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install keyword-search

Built from the published package, never by AI.

git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.claude/skills && cp -r /tmp/kibana/src/platform/packages/shared/kbn-search-agent/.elasticsearch-agent/skills/recipes/keyword-search ~/.claude/skills/keyword-search

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install keyword-search in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The keyword-search skill is a guide for building full-text keyword search with Elasticsearch. It covers index mappings that use text, keyword and completion fields, bulk ingestion with the Python client, and Query DSL patterns such as match, multi_match, bool filters, fuzzy matching, highlighting and pagination. It also includes a Flask search endpoint and relevance tuning with field boosting, function_score and synonym filters.

The skill is aimed at developers who need text matching, filters, faceting, autocomplete or traditional search bar behavior on structured data. It states that it is not the main conversation driver and points to the elasticsearch-onboarding flow. It recommends vector or hybrid search when natural language queries perform poorly, when content is multilingual, or when users want similar items.

Written from the project's SKILL.md and checked against it.

What it can do

  • Index mappingCreates mappings with text, keyword and completion fields.
  • Bulk ingestionIndexes documents in batches with the bulk API and error handling.
  • Match and multi-match queriesSearches titles and descriptions with field boosting.
  • Filtered queriesApplies term and range filters inside a bool query.
  • Fuzzy matchingAdds typo tolerance using fuzziness set to AUTO.
  • AutocompleteReturns completion suggestions through the suggest API.
  • HighlightingHighlights matched terms in title and description fields.
  • PaginationUses from and size, with search_after for deep pagination.
  • Flask search endpointWraps search with query, category and price parameters.
  • Relevance tuningBoosts results with function_score and synonym filters.

What you need

  • Elasticsearch cluster with Cloud ID and API key
  • Python with the elasticsearch client
  • Flask for the endpoint example

Try asking

  • Create a products index with title, description and price fields for keyword search
  • Add autocomplete to my product search using a completion suggester
  • Add typo tolerance and price range filters to my search query

Good to know

  • ES|QL does not yet support full-text, match or fuzzy queries, so Query DSL is needed.
  • Not suited to semantic or multilingual matching; the source points to vector-hybrid-search instead.
  • Conversation flow is controlled by the elasticsearch-onboarding skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: src/platform/packages/shared/kbn-search-agent/.elasticsearch-agent/skills/recipes/keyword-search/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB

Alternatives to keyword-search

All alternatives →

Compare with box, n8n-mcp-tools-expert or citation-management

keyword-search: common questions

When should I not use keyword search?

The source says not to use it when natural language queries return poor results, when users expect meaning-based matching, or when multilingual semantic similarity is needed. It points to the vector-hybrid-search approach instead.

Can ES|QL handle full-text search?

According to the source, not yet. ES|QL supports filtering and sorting, while full-text, match and fuzzy queries require Query DSL.

How does autocomplete work with this skill?

A completion field is added to the index mapping and populated during indexing. The completion suggester then returns matching prefixes through the suggest API.

How do I install keyword-search?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is keyword-search free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is keyword-search safe to use?

It scores 81 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to keyword-search?

Similar skills: box, n8n-mcp-tools-expert, citation-management, exa-search.

keyword-search Install

Add to stack

Loading.