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.
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-searchRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kibana/src/platform/packages/shared/kbn-search-agent/.elasticsearch-agent/skills/recipes/keyword-search ~/.gemini/antigravity-cli/skills/keyword-searchAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Box lets an AI assistant search, read, upload, download, move, rename, delete, restore and share Box content. It also manages comments and metadata. It suits people who work with files stored in Box.
Guides AI assistants in using n8n-mcp MCP tools to search nodes, validate configs, browse templates and manage n8n workflows. Aimed at people building n8n workflows through MCP.
Manages citations across the research and writing process. It covers searching Google Scholar and PubMed, converting DOIs, PMIDs and arXiv IDs to BibTeX, and validating bibliographies. It is for researchers building bibliographies for manuscripts or theses.
Exa Search is a skill that guides an AI assistant to use the Exa MCP server for neural search. It covers web pages, code, companies, and people, and is for users who need current information or research during development tasks.
Runs recent community and social trend research over the last 30 days. It suits teams who need to know what people are saying now about a topic or launch.
seo-flow adds the FLOW SEO framework to Claude SEO. It surfaces stage-specific AI prompts from the FLOW knowledge base across the Find, Leverage, Optimize and Win stages. It is for SEO practitioners who want evidence-led prompts.
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.
